templates

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package templates provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateTemplateRequest

func NewCreateTemplateRequest(server string, body CreateTemplateJSONRequestBody) (*http.Request, error)

NewCreateTemplateRequest calls the generic CreateTemplate builder with application/json body

func NewCreateTemplateRequestWithBody

func NewCreateTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateTemplateRequestWithBody constructs an http.Request for the CreateTemplate method, with any body, and a specified content type

func NewDeleteTemplateRequest

func NewDeleteTemplateRequest(server string, id string) (*http.Request, error)

NewDeleteTemplateRequest constructs an http.Request for the DeleteTemplate method

func NewGetTemplateRequest

func NewGetTemplateRequest(server string, id string) (*http.Request, error)

NewGetTemplateRequest constructs an http.Request for the GetTemplate method

func NewListTemplatesRequest

func NewListTemplatesRequest(server string, params *ListTemplatesParams) (*http.Request, error)

NewListTemplatesRequest constructs an http.Request for the ListTemplates method

func NewUpdateTemplateRequest

func NewUpdateTemplateRequest(server string, id string, body UpdateTemplateJSONRequestBody) (*http.Request, error)

NewUpdateTemplateRequest calls the generic UpdateTemplate builder with application/json body

func NewUpdateTemplateRequestWithBody

func NewUpdateTemplateRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateTemplateRequestWithBody constructs an http.Request for the UpdateTemplate method, with any body, and a specified content type

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateTemplate

func (c *Client) CreateTemplate(ctx context.Context, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateTemplate Create a template

Creates a reusable container-configuration preset — image, disk, ports, env, registry, and mount settings — for pods and serverless endpoints. Pass its ID as `templateId` to `createPod` or `createEndpoint`, or spread its fields into the request body directly. Returns the created template.

Takes a body of the `application/json` content type.

Corresponds with POST /v2/templates (the `CreateTemplate` operationId).

func (*Client) CreateTemplateWithBody

func (c *Client) CreateTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateTemplateWithBody Create a template

Creates a reusable container-configuration preset — image, disk, ports, env, registry, and mount settings — for pods and serverless endpoints. Pass its ID as `templateId` to `createPod` or `createEndpoint`, or spread its fields into the request body directly. Returns the created template.

Takes any type of body and a specified content type.

Corresponds with POST /v2/templates (the `CreateTemplate` operationId).

func (*Client) DeleteTemplate

func (c *Client) DeleteTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteTemplate Delete a template

Permanently deletes a template by ID. Only the template's owner can delete it — public catalog templates return `404` here. Rejected if the template is currently referenced by a pod (see that pod's `template` field) or bound to a serverless endpoint.

Corresponds with DELETE /v2/templates/{id} (the `DeleteTemplate` operationId).

func (*Client) GetTemplate

func (c *Client) GetTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTemplate Get a template

Returns the full configuration of a single template by ID. Serves both templates you own and public catalog templates — everything you can read. Updates and deletes remain restricted to templates you own.

Corresponds with GET /v2/templates/{id} (the `GetTemplate` operationId).

func (*Client) ListTemplates

func (c *Client) ListTemplates(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListTemplates List templates

Returns templates owned by the authenticated user (including team/organization-scoped ones), cursor-paginated; an omitted `limit` defaults to 1000. Follow `pagination.nextCursor` until `hasNextPage` is false.

Corresponds with GET /v2/templates (the `ListTemplates` operationId).

func (*Client) UpdateTemplate

func (c *Client) UpdateTemplate(ctx context.Context, id string, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateTemplate Update a template

Partially updates a template. This is a PATCH: only the fields present in the body are changed; omitted fields are left untouched. See `UpdateTemplateRequest` for the full body.

Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`, `registry`, `mounts`, `serverless`, `public`, and `category`.

Only the template's owner can update it (authenticated via the request's API key); public catalog templates are readable via GET but return `404` here. Returns `200` with the full updated template. Pods and endpoints already created from this template are not changed retroactively — the template is a snapshot applied at creation time.

Takes a body of the `application/json` content type.

Corresponds with PATCH /v2/templates/{id} (the `UpdateTemplate` operationId).

func (*Client) UpdateTemplateWithBody

func (c *Client) UpdateTemplateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateTemplateWithBody Update a template

Partially updates a template. This is a PATCH: only the fields present in the body are changed; omitted fields are left untouched. See `UpdateTemplateRequest` for the full body.

Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`, `registry`, `mounts`, `serverless`, `public`, and `category`.

Only the template's owner can update it (authenticated via the request's API key); public catalog templates are readable via GET but return `404` here. Returns `200` with the full updated template. Pods and endpoints already created from this template are not changed retroactively — the template is a snapshot applied at creation time.

Takes any type of body and a specified content type.

Corresponds with PATCH /v2/templates/{id} (the `UpdateTemplate` operationId).

type ClientInterface

type ClientInterface interface {

	// ListTemplates List templates
	//
	// Returns templates owned by the authenticated user (including
	// team/organization-scoped ones), cursor-paginated; an omitted `limit`
	// defaults to 1000. Follow `pagination.nextCursor` until `hasNextPage`
	// is false.
	//
	// Corresponds with GET /v2/templates (the `ListTemplates` operationId).
	ListTemplates(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTemplateWithBody Create a template
	//
	// Creates a reusable container-configuration preset — image, disk,
	// ports, env, registry, and mount settings — for pods and serverless
	// endpoints. Pass its ID as `templateId` to `createPod` or
	// `createEndpoint`, or spread its fields into the request body
	// directly. Returns the created template.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v2/templates (the `CreateTemplate` operationId).
	CreateTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTemplate Create a template
	//
	// Creates a reusable container-configuration preset — image, disk,
	// ports, env, registry, and mount settings — for pods and serverless
	// endpoints. Pass its ID as `templateId` to `createPod` or
	// `createEndpoint`, or spread its fields into the request body
	// directly. Returns the created template.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v2/templates (the `CreateTemplate` operationId).
	CreateTemplate(ctx context.Context, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteTemplate Delete a template
	//
	// Permanently deletes a template by ID. Only the template's owner can
	// delete it — public catalog templates return `404` here. Rejected if
	// the template is currently referenced by a pod (see that pod's
	// `template` field) or bound to a serverless endpoint.
	//
	// Corresponds with DELETE /v2/templates/{id} (the `DeleteTemplate` operationId).
	DeleteTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTemplate Get a template
	//
	// Returns the full configuration of a single template by ID. Serves
	// both templates you own and public catalog templates — everything you
	// can read. Updates and deletes remain restricted to templates you own.
	//
	// Corresponds with GET /v2/templates/{id} (the `GetTemplate` operationId).
	GetTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTemplateWithBody Update a template
	//
	// Partially updates a template. This is a PATCH: only the fields
	// present in the body are changed; omitted fields are left untouched.
	// See `UpdateTemplateRequest` for the full body.
	//
	// Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`,
	// `registry`, `mounts`, `serverless`, `public`, and `category`.
	//
	// Only the template's owner can update it (authenticated via the
	// request's API key); public catalog templates are readable via GET
	// but return `404` here. Returns `200` with the full updated template. Pods and
	// endpoints already created from this template are not changed
	// retroactively — the template is a snapshot applied at creation time.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v2/templates/{id} (the `UpdateTemplate` operationId).
	UpdateTemplateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTemplate Update a template
	//
	// Partially updates a template. This is a PATCH: only the fields
	// present in the body are changed; omitted fields are left untouched.
	// See `UpdateTemplateRequest` for the full body.
	//
	// Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`,
	// `registry`, `mounts`, `serverless`, `public`, and `category`.
	//
	// Only the template's owner can update it (authenticated via the
	// request's API key); public catalog templates are readable via GET
	// but return `404` here. Returns `200` with the full updated template. Pods and
	// endpoints already created from this template are not changed
	// retroactively — the template is a snapshot applied at creation time.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v2/templates/{id} (the `UpdateTemplate` operationId).
	UpdateTemplate(ctx context.Context, id string, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateTemplateWithBodyWithResponse

func (c *ClientWithResponses) CreateTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTemplateResult, error)

CreateTemplateWithBodyWithResponse Create a template

Creates a reusable container-configuration preset — image, disk, ports, env, registry, and mount settings — for pods and serverless endpoints. Pass its ID as `templateId` to `createPod` or `createEndpoint`, or spread its fields into the request body directly. Returns the created template.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v2/templates (the `CreateTemplate` operationId).

func (*ClientWithResponses) CreateTemplateWithResponse

func (c *ClientWithResponses) CreateTemplateWithResponse(ctx context.Context, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateResult, error)

CreateTemplateWithResponse Create a template

Creates a reusable container-configuration preset — image, disk, ports, env, registry, and mount settings — for pods and serverless endpoints. Pass its ID as `templateId` to `createPod` or `createEndpoint`, or spread its fields into the request body directly. Returns the created template.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v2/templates (the `CreateTemplate` operationId).

func (*ClientWithResponses) DeleteTemplateWithResponse

func (c *ClientWithResponses) DeleteTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteTemplateResult, error)

DeleteTemplateWithResponse Delete a template

Permanently deletes a template by ID. Only the template's owner can delete it — public catalog templates return `404` here. Rejected if the template is currently referenced by a pod (see that pod's `template` field) or bound to a serverless endpoint.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /v2/templates/{id} (the `DeleteTemplate` operationId).

func (*ClientWithResponses) GetTemplateWithResponse

func (c *ClientWithResponses) GetTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetTemplateResult, error)

GetTemplateWithResponse Get a template

Returns the full configuration of a single template by ID. Serves both templates you own and public catalog templates — everything you can read. Updates and deletes remain restricted to templates you own.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v2/templates/{id} (the `GetTemplate` operationId).

func (*ClientWithResponses) ListTemplatesWithResponse

func (c *ClientWithResponses) ListTemplatesWithResponse(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*ListTemplatesResult, error)

ListTemplatesWithResponse List templates

Returns templates owned by the authenticated user (including team/organization-scoped ones), cursor-paginated; an omitted `limit` defaults to 1000. Follow `pagination.nextCursor` until `hasNextPage` is false.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v2/templates (the `ListTemplates` operationId).

func (*ClientWithResponses) UpdateTemplateWithBodyWithResponse

func (c *ClientWithResponses) UpdateTemplateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateResult, error)

UpdateTemplateWithBodyWithResponse Update a template

Partially updates a template. This is a PATCH: only the fields present in the body are changed; omitted fields are left untouched. See `UpdateTemplateRequest` for the full body.

Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`, `registry`, `mounts`, `serverless`, `public`, and `category`.

Only the template's owner can update it (authenticated via the request's API key); public catalog templates are readable via GET but return `404` here. Returns `200` with the full updated template. Pods and endpoints already created from this template are not changed retroactively — the template is a snapshot applied at creation time.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v2/templates/{id} (the `UpdateTemplate` operationId).

func (*ClientWithResponses) UpdateTemplateWithResponse

func (c *ClientWithResponses) UpdateTemplateWithResponse(ctx context.Context, id string, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateResult, error)

UpdateTemplateWithResponse Update a template

Partially updates a template. This is a PATCH: only the fields present in the body are changed; omitted fields are left untouched. See `UpdateTemplateRequest` for the full body.

Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`, `registry`, `mounts`, `serverless`, `public`, and `category`.

Only the template's owner can update it (authenticated via the request's API key); public catalog templates are readable via GET but return `404` here. Returns `200` with the full updated template. Pods and endpoints already created from this template are not changed retroactively — the template is a snapshot applied at creation time.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v2/templates/{id} (the `UpdateTemplate` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ListTemplatesWithResponse List templates
	//
	// Returns templates owned by the authenticated user (including
	// team/organization-scoped ones), cursor-paginated; an omitted `limit`
	// defaults to 1000. Follow `pagination.nextCursor` until `hasNextPage`
	// is false.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/templates (the `ListTemplates` operationId).
	ListTemplatesWithResponse(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*ListTemplatesResult, error)

	// CreateTemplateWithBodyWithResponse Create a template
	//
	// Creates a reusable container-configuration preset — image, disk,
	// ports, env, registry, and mount settings — for pods and serverless
	// endpoints. Pass its ID as `templateId` to `createPod` or
	// `createEndpoint`, or spread its fields into the request body
	// directly. Returns the created template.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v2/templates (the `CreateTemplate` operationId).
	CreateTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTemplateResult, error)

	// CreateTemplateWithResponse Create a template
	//
	// Creates a reusable container-configuration preset — image, disk,
	// ports, env, registry, and mount settings — for pods and serverless
	// endpoints. Pass its ID as `templateId` to `createPod` or
	// `createEndpoint`, or spread its fields into the request body
	// directly. Returns the created template.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v2/templates (the `CreateTemplate` operationId).
	CreateTemplateWithResponse(ctx context.Context, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateResult, error)

	// DeleteTemplateWithResponse Delete a template
	//
	// Permanently deletes a template by ID. Only the template's owner can
	// delete it — public catalog templates return `404` here. Rejected if
	// the template is currently referenced by a pod (see that pod's
	// `template` field) or bound to a serverless endpoint.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v2/templates/{id} (the `DeleteTemplate` operationId).
	DeleteTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteTemplateResult, error)

	// GetTemplateWithResponse Get a template
	//
	// Returns the full configuration of a single template by ID. Serves
	// both templates you own and public catalog templates — everything you
	// can read. Updates and deletes remain restricted to templates you own.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/templates/{id} (the `GetTemplate` operationId).
	GetTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetTemplateResult, error)

	// UpdateTemplateWithBodyWithResponse Update a template
	//
	// Partially updates a template. This is a PATCH: only the fields
	// present in the body are changed; omitted fields are left untouched.
	// See `UpdateTemplateRequest` for the full body.
	//
	// Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`,
	// `registry`, `mounts`, `serverless`, `public`, and `category`.
	//
	// Only the template's owner can update it (authenticated via the
	// request's API key); public catalog templates are readable via GET
	// but return `404` here. Returns `200` with the full updated template. Pods and
	// endpoints already created from this template are not changed
	// retroactively — the template is a snapshot applied at creation time.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v2/templates/{id} (the `UpdateTemplate` operationId).
	UpdateTemplateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateResult, error)

	// UpdateTemplateWithResponse Update a template
	//
	// Partially updates a template. This is a PATCH: only the fields
	// present in the body are changed; omitted fields are left untouched.
	// See `UpdateTemplateRequest` for the full body.
	//
	// Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`,
	// `registry`, `mounts`, `serverless`, `public`, and `category`.
	//
	// Only the template's owner can update it (authenticated via the
	// request's API key); public catalog templates are readable via GET
	// but return `404` here. Returns `200` with the full updated template. Pods and
	// endpoints already created from this template are not changed
	// retroactively — the template is a snapshot applied at creation time.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v2/templates/{id} (the `UpdateTemplate` operationId).
	UpdateTemplateWithResponse(ctx context.Context, id string, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateResult, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateTemplateJSONRequestBody

type CreateTemplateJSONRequestBody = externalRef0.CreateTemplateRequest

CreateTemplateJSONRequestBody defines body for CreateTemplate for application/json ContentType.

type CreateTemplateResult

type CreateTemplateResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *externalRef0.Template
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *externalRef0.ErrorResponse
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *externalRef0.ErrorResponse
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *externalRef0.ErrorResponse
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *externalRef0.ErrorResponse
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *externalRef0.ErrorResponse
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *externalRef0.ErrorResponse
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *externalRef0.ErrorResponse
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateTemplateResult201Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *CreateTemplateResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *CreateTemplateResult403Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *CreateTemplateResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *CreateTemplateResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateTemplateResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *CreateTemplateResultDefaultHeaders
}

func ParseCreateTemplateResult

func ParseCreateTemplateResult(rsp *http.Response) (*CreateTemplateResult, error)

ParseCreateTemplateResult parses an HTTP response from a CreateTemplateWithResponse call

func (CreateTemplateResult) ContentType

func (r CreateTemplateResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateTemplateResult) GetApplicationproblemJSON400

func (r CreateTemplateResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateTemplateResult) GetApplicationproblemJSON401

func (r CreateTemplateResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateTemplateResult) GetApplicationproblemJSON403

func (r CreateTemplateResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateTemplateResult) GetApplicationproblemJSON413 added in v2.1.0

func (r CreateTemplateResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (CreateTemplateResult) GetApplicationproblemJSON422

func (r CreateTemplateResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateTemplateResult) GetApplicationproblemJSON429

func (r CreateTemplateResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (CreateTemplateResult) GetApplicationproblemJSONDefault

func (r CreateTemplateResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (CreateTemplateResult) GetBody

func (r CreateTemplateResult) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateTemplateResult) GetJSON201

func (r CreateTemplateResult) GetJSON201() *externalRef0.Template

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateTemplateResult) Status

func (r CreateTemplateResult) Status() string

Status returns HTTPResponse.Status

func (CreateTemplateResult) StatusCode

func (r CreateTemplateResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTemplateResult201Headers

type CreateTemplateResult201Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

CreateTemplateResult201Headers the declared response headers of an HTTP 201 response for CreateTemplate

type CreateTemplateResult400Headers

type CreateTemplateResult400Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

CreateTemplateResult400Headers the declared response headers of an HTTP 400 response for CreateTemplate

type CreateTemplateResult403Headers

type CreateTemplateResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

CreateTemplateResult403Headers the declared response headers of an HTTP 403 response for CreateTemplate

type CreateTemplateResult413Headers added in v2.1.0

type CreateTemplateResult413Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

CreateTemplateResult413Headers the declared response headers of an HTTP 413 response for CreateTemplate

type CreateTemplateResult422Headers

type CreateTemplateResult422Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

CreateTemplateResult422Headers the declared response headers of an HTTP 422 response for CreateTemplate

type CreateTemplateResult429Headers

type CreateTemplateResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

CreateTemplateResult429Headers the declared response headers of an HTTP 429 response for CreateTemplate

type CreateTemplateResultDefaultHeaders

type CreateTemplateResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

CreateTemplateResultDefaultHeaders the declared response headers of an HTTP default response for CreateTemplate

type DeleteTemplateResult

type DeleteTemplateResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *externalRef0.ErrorResponse
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *externalRef0.ErrorResponse
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *externalRef0.ErrorResponse
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *externalRef0.ErrorResponse
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *externalRef0.ErrorResponse
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *externalRef0.ErrorResponse
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *DeleteTemplateResult204Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *DeleteTemplateResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *DeleteTemplateResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *DeleteTemplateResult404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteTemplateResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *DeleteTemplateResultDefaultHeaders
}

func ParseDeleteTemplateResult

func ParseDeleteTemplateResult(rsp *http.Response) (*DeleteTemplateResult, error)

ParseDeleteTemplateResult parses an HTTP response from a DeleteTemplateWithResponse call

func (DeleteTemplateResult) ContentType

func (r DeleteTemplateResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteTemplateResult) GetApplicationproblemJSON400

func (r DeleteTemplateResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (DeleteTemplateResult) GetApplicationproblemJSON401

func (r DeleteTemplateResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteTemplateResult) GetApplicationproblemJSON403

func (r DeleteTemplateResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteTemplateResult) GetApplicationproblemJSON404

func (r DeleteTemplateResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteTemplateResult) GetApplicationproblemJSON429

func (r DeleteTemplateResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (DeleteTemplateResult) GetApplicationproblemJSONDefault

func (r DeleteTemplateResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (DeleteTemplateResult) GetBody

func (r DeleteTemplateResult) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteTemplateResult) Status

func (r DeleteTemplateResult) Status() string

Status returns HTTPResponse.Status

func (DeleteTemplateResult) StatusCode

func (r DeleteTemplateResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteTemplateResult204Headers

type DeleteTemplateResult204Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

DeleteTemplateResult204Headers the declared response headers of an HTTP 204 response for DeleteTemplate

type DeleteTemplateResult400Headers

type DeleteTemplateResult400Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

DeleteTemplateResult400Headers the declared response headers of an HTTP 400 response for DeleteTemplate

type DeleteTemplateResult403Headers

type DeleteTemplateResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

DeleteTemplateResult403Headers the declared response headers of an HTTP 403 response for DeleteTemplate

type DeleteTemplateResult404Headers

type DeleteTemplateResult404Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

DeleteTemplateResult404Headers the declared response headers of an HTTP 404 response for DeleteTemplate

type DeleteTemplateResult429Headers

type DeleteTemplateResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

DeleteTemplateResult429Headers the declared response headers of an HTTP 429 response for DeleteTemplate

type DeleteTemplateResultDefaultHeaders

type DeleteTemplateResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

DeleteTemplateResultDefaultHeaders the declared response headers of an HTTP default response for DeleteTemplate

type GetTemplateResult

type GetTemplateResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.Template
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *externalRef0.ErrorResponse
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *externalRef0.ErrorResponse
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *externalRef0.ErrorResponse
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *externalRef0.ErrorResponse
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *externalRef0.ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetTemplateResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetTemplateResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetTemplateResult404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetTemplateResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetTemplateResultDefaultHeaders
}

func ParseGetTemplateResult

func ParseGetTemplateResult(rsp *http.Response) (*GetTemplateResult, error)

ParseGetTemplateResult parses an HTTP response from a GetTemplateWithResponse call

func (GetTemplateResult) ContentType

func (r GetTemplateResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTemplateResult) GetApplicationproblemJSON401

func (r GetTemplateResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetTemplateResult) GetApplicationproblemJSON403

func (r GetTemplateResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetTemplateResult) GetApplicationproblemJSON404

func (r GetTemplateResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetTemplateResult) GetApplicationproblemJSON429

func (r GetTemplateResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetTemplateResult) GetApplicationproblemJSONDefault

func (r GetTemplateResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (GetTemplateResult) GetBody

func (r GetTemplateResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTemplateResult) GetJSON200

func (r GetTemplateResult) GetJSON200() *externalRef0.Template

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetTemplateResult) Status

func (r GetTemplateResult) Status() string

Status returns HTTPResponse.Status

func (GetTemplateResult) StatusCode

func (r GetTemplateResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTemplateResult200Headers

type GetTemplateResult200Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetTemplateResult200Headers the declared response headers of an HTTP 200 response for GetTemplate

type GetTemplateResult403Headers

type GetTemplateResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetTemplateResult403Headers the declared response headers of an HTTP 403 response for GetTemplate

type GetTemplateResult404Headers

type GetTemplateResult404Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetTemplateResult404Headers the declared response headers of an HTTP 404 response for GetTemplate

type GetTemplateResult429Headers

type GetTemplateResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

GetTemplateResult429Headers the declared response headers of an HTTP 429 response for GetTemplate

type GetTemplateResultDefaultHeaders

type GetTemplateResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetTemplateResultDefaultHeaders the declared response headers of an HTTP default response for GetTemplate

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListTemplatesParams

type ListTemplatesParams struct {
	// Cursor Opaque resume cursor — pass the previous response's `pagination.nextCursor` through verbatim; omit for the first page. A cursor is only valid for the operation and parameters that issued it; a malformed or foreign cursor is rejected with 422.
	Cursor *externalRef0.PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size, 1–1000. Defaults to 1000 when omitted.
	Limit *externalRef0.PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
}

ListTemplatesParams defines parameters for ListTemplates.

type ListTemplatesResult

type ListTemplatesResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.ListTemplatesResponse
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *externalRef0.ErrorResponse
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *externalRef0.ErrorResponse
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *externalRef0.ErrorResponse
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *externalRef0.ErrorResponse
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *externalRef0.ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListTemplatesResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListTemplatesResult403Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *ListTemplatesResult413Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListTemplatesResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListTemplatesResultDefaultHeaders
}

func ParseListTemplatesResult

func ParseListTemplatesResult(rsp *http.Response) (*ListTemplatesResult, error)

ParseListTemplatesResult parses an HTTP response from a ListTemplatesWithResponse call

func (ListTemplatesResult) ContentType

func (r ListTemplatesResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListTemplatesResult) GetApplicationproblemJSON401

func (r ListTemplatesResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListTemplatesResult) GetApplicationproblemJSON403

func (r ListTemplatesResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListTemplatesResult) GetApplicationproblemJSON413 added in v2.1.0

func (r ListTemplatesResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (ListTemplatesResult) GetApplicationproblemJSON429

func (r ListTemplatesResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListTemplatesResult) GetApplicationproblemJSONDefault

func (r ListTemplatesResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (ListTemplatesResult) GetBody

func (r ListTemplatesResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListTemplatesResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListTemplatesResult) Status

func (r ListTemplatesResult) Status() string

Status returns HTTPResponse.Status

func (ListTemplatesResult) StatusCode

func (r ListTemplatesResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTemplatesResult200Headers

type ListTemplatesResult200Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListTemplatesResult200Headers the declared response headers of an HTTP 200 response for ListTemplates

type ListTemplatesResult403Headers

type ListTemplatesResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListTemplatesResult403Headers the declared response headers of an HTTP 403 response for ListTemplates

type ListTemplatesResult413Headers added in v2.1.0

type ListTemplatesResult413Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListTemplatesResult413Headers the declared response headers of an HTTP 413 response for ListTemplates

type ListTemplatesResult429Headers

type ListTemplatesResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

ListTemplatesResult429Headers the declared response headers of an HTTP 429 response for ListTemplates

type ListTemplatesResultDefaultHeaders

type ListTemplatesResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListTemplatesResultDefaultHeaders the declared response headers of an HTTP default response for ListTemplates

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type UpdateTemplateJSONRequestBody

type UpdateTemplateJSONRequestBody = externalRef0.UpdateTemplateRequest

UpdateTemplateJSONRequestBody defines body for UpdateTemplate for application/json ContentType.

type UpdateTemplateResult

type UpdateTemplateResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.Template
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *externalRef0.ErrorResponse
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *externalRef0.ErrorResponse
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *externalRef0.ErrorResponse
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *externalRef0.ErrorResponse
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *externalRef0.ErrorResponse
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *externalRef0.ErrorResponse
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *externalRef0.ErrorResponse
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *externalRef0.ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateTemplateResult200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *UpdateTemplateResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *UpdateTemplateResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *UpdateTemplateResult404Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *UpdateTemplateResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *UpdateTemplateResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateTemplateResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *UpdateTemplateResultDefaultHeaders
}

func ParseUpdateTemplateResult

func ParseUpdateTemplateResult(rsp *http.Response) (*UpdateTemplateResult, error)

ParseUpdateTemplateResult parses an HTTP response from a UpdateTemplateWithResponse call

func (UpdateTemplateResult) ContentType

func (r UpdateTemplateResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateTemplateResult) GetApplicationproblemJSON400

func (r UpdateTemplateResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateTemplateResult) GetApplicationproblemJSON401

func (r UpdateTemplateResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateTemplateResult) GetApplicationproblemJSON403

func (r UpdateTemplateResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateTemplateResult) GetApplicationproblemJSON404

func (r UpdateTemplateResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateTemplateResult) GetApplicationproblemJSON413 added in v2.1.0

func (r UpdateTemplateResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (UpdateTemplateResult) GetApplicationproblemJSON422

func (r UpdateTemplateResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdateTemplateResult) GetApplicationproblemJSON429

func (r UpdateTemplateResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (UpdateTemplateResult) GetApplicationproblemJSONDefault

func (r UpdateTemplateResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (UpdateTemplateResult) GetBody

func (r UpdateTemplateResult) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateTemplateResult) GetJSON200

func (r UpdateTemplateResult) GetJSON200() *externalRef0.Template

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateTemplateResult) Status

func (r UpdateTemplateResult) Status() string

Status returns HTTPResponse.Status

func (UpdateTemplateResult) StatusCode

func (r UpdateTemplateResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateTemplateResult200Headers

type UpdateTemplateResult200Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateTemplateResult200Headers the declared response headers of an HTTP 200 response for UpdateTemplate

type UpdateTemplateResult400Headers

type UpdateTemplateResult400Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateTemplateResult400Headers the declared response headers of an HTTP 400 response for UpdateTemplate

type UpdateTemplateResult403Headers

type UpdateTemplateResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateTemplateResult403Headers the declared response headers of an HTTP 403 response for UpdateTemplate

type UpdateTemplateResult404Headers

type UpdateTemplateResult404Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateTemplateResult404Headers the declared response headers of an HTTP 404 response for UpdateTemplate

type UpdateTemplateResult413Headers added in v2.1.0

type UpdateTemplateResult413Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateTemplateResult413Headers the declared response headers of an HTTP 413 response for UpdateTemplate

type UpdateTemplateResult422Headers

type UpdateTemplateResult422Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateTemplateResult422Headers the declared response headers of an HTTP 422 response for UpdateTemplate

type UpdateTemplateResult429Headers

type UpdateTemplateResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

UpdateTemplateResult429Headers the declared response headers of an HTTP 429 response for UpdateTemplate

type UpdateTemplateResultDefaultHeaders

type UpdateTemplateResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

UpdateTemplateResultDefaultHeaders the declared response headers of an HTTP default response for UpdateTemplate

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL