tags

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 10 Imported by: ? modules, 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 tags 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 NewAttachTagResourceRequest

func NewAttachTagResourceRequest(server string, id string, resourceType externalRef0.ResourceType, resourceId string) (*http.Request, error)

NewAttachTagResourceRequest constructs an http.Request for the AttachTagResource method

func NewCreateTagRequest

func NewCreateTagRequest(server string, body CreateTagJSONRequestBody) (*http.Request, error)

NewCreateTagRequest calls the generic CreateTag builder with application/json body

func NewCreateTagRequestWithBody

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

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

func NewDeleteTagRequest

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

NewDeleteTagRequest constructs an http.Request for the DeleteTag method

func NewDetachTagResourceRequest

func NewDetachTagResourceRequest(server string, id string, resourceType externalRef0.ResourceType, resourceId string) (*http.Request, error)

NewDetachTagResourceRequest constructs an http.Request for the DetachTagResource method

func NewGetTagRequest

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

NewGetTagRequest constructs an http.Request for the GetTag method

func NewListTagResourcesRequest

func NewListTagResourcesRequest(server string, id string, params *ListTagResourcesParams) (*http.Request, error)

NewListTagResourcesRequest constructs an http.Request for the ListTagResources method

func NewListTagsRequest

func NewListTagsRequest(server string, params *ListTagsParams) (*http.Request, error)

NewListTagsRequest constructs an http.Request for the ListTags method

func NewUpdateTagRequest

func NewUpdateTagRequest(server string, id string, body UpdateTagJSONRequestBody) (*http.Request, error)

NewUpdateTagRequest calls the generic UpdateTag builder with application/json body

func NewUpdateTagRequestWithBody

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

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

Types

type AttachTagResourceResult

type AttachTagResourceResult 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
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *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
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *AttachTagResourceResult204Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *AttachTagResourceResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *AttachTagResourceResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *AttachTagResourceResult404Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *AttachTagResourceResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *AttachTagResourceResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *AttachTagResourceResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *AttachTagResourceResultDefaultHeaders
}

func ParseAttachTagResourceResult

func ParseAttachTagResourceResult(rsp *http.Response) (*AttachTagResourceResult, error)

ParseAttachTagResourceResult parses an HTTP response from a AttachTagResourceWithResponse call

func (AttachTagResourceResult) ContentType

func (r AttachTagResourceResult) ContentType() string

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

func (AttachTagResourceResult) GetApplicationproblemJSON400

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

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

func (AttachTagResourceResult) GetApplicationproblemJSON401

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

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

func (AttachTagResourceResult) GetApplicationproblemJSON403

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

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

func (AttachTagResourceResult) GetApplicationproblemJSON404

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

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

func (AttachTagResourceResult) GetApplicationproblemJSON409

func (r AttachTagResourceResult) GetApplicationproblemJSON409() *externalRef0.ErrorResponse

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (AttachTagResourceResult) GetApplicationproblemJSON413

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

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

func (AttachTagResourceResult) GetApplicationproblemJSON422

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

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

func (AttachTagResourceResult) GetApplicationproblemJSON429

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

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

func (AttachTagResourceResult) GetApplicationproblemJSONDefault

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

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

func (AttachTagResourceResult) GetBody

func (r AttachTagResourceResult) GetBody() []byte

GetBody returns the raw response body bytes

func (AttachTagResourceResult) Status

func (r AttachTagResourceResult) Status() string

Status returns HTTPResponse.Status

func (AttachTagResourceResult) StatusCode

func (r AttachTagResourceResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AttachTagResourceResult204Headers

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

AttachTagResourceResult204Headers the declared response headers of an HTTP 204 response for AttachTagResource

type AttachTagResourceResult400Headers

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

AttachTagResourceResult400Headers the declared response headers of an HTTP 400 response for AttachTagResource

type AttachTagResourceResult403Headers

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

AttachTagResourceResult403Headers the declared response headers of an HTTP 403 response for AttachTagResource

type AttachTagResourceResult404Headers

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

AttachTagResourceResult404Headers the declared response headers of an HTTP 404 response for AttachTagResource

type AttachTagResourceResult413Headers

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

AttachTagResourceResult413Headers the declared response headers of an HTTP 413 response for AttachTagResource

type AttachTagResourceResult422Headers

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

AttachTagResourceResult422Headers the declared response headers of an HTTP 422 response for AttachTagResource

type AttachTagResourceResult429Headers

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

AttachTagResourceResult429Headers the declared response headers of an HTTP 429 response for AttachTagResource

type AttachTagResourceResultDefaultHeaders

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

AttachTagResourceResultDefaultHeaders the declared response headers of an HTTP default response for AttachTagResource

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) AttachTagResource

func (c *Client) AttachTagResource(ctx context.Context, id string, resourceType externalRef0.ResourceType, resourceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

AttachTagResource Attach a tag to a resource

Attaches a tag to a resource. Repeating the request is a no-op. A resource can carry several tags. Returns 404 when the tag or the resource does not exist or is not the caller's; the detail names a missing resource as `{resourceType}/{resourceId}`.

Corresponds with PUT /v2/tags/{id}/resources/{resourceType}/{resourceId} (the `AttachTagResource` operationId).

func (*Client) CreateTag

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

CreateTag Create a tag

Creates a tag. Pass `resources` to attach it at creation time; the tag is created and attached in one step, so if any resource cannot be attached, no tag is created.

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

Corresponds with POST /v2/tags (the `CreateTag` operationId).

func (*Client) CreateTagWithBody

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

CreateTagWithBody Create a tag

Creates a tag. Pass `resources` to attach it at creation time; the tag is created and attached in one step, so if any resource cannot be attached, no tag is created.

Takes any type of body and a specified content type.

Corresponds with POST /v2/tags (the `CreateTag` operationId).

func (*Client) DeleteTag

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

DeleteTag Delete a tag

Deletes a tag and removes it from every resource it is attached to. The resources themselves are unchanged, and nothing needs to be detached first. Returns 404 when the tag does not exist, is already deleted, is not the caller's, or is reserved: a cost center ID is a reserved tag, so delete it through `DELETE /v2/cost-centers/{id}`.

Corresponds with DELETE /v2/tags/{id} (the `DeleteTag` operationId).

func (*Client) DetachTagResource

func (c *Client) DetachTagResource(ctx context.Context, id string, resourceType externalRef0.ResourceType, resourceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

DetachTagResource Remove a tag from a resource

Removes a tag from one resource. The tag, the resource and the tag's other attachments are untouched. Returns 404 when the tag does not exist, is not the caller's, or is reserved (a cost center); when the resource does not carry it, so repeating a DELETE that succeeded returns 404; or when the resource is not the caller's to change. The detail names that last resource as `{resourceType}/{resourceId}`.

Corresponds with DELETE /v2/tags/{id}/resources/{resourceType}/{resourceId} (the `DetachTagResource` operationId).

func (*Client) GetTag

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

GetTag Get a tag

Returns one tag. Its ID stays the same when the key or value changes. Returns 404 when the tag does not exist, is deleted, is not the caller's, or is reserved: a cost center ID is a reserved tag, so read it through `GET /v2/cost-centers/{id}`.

Corresponds with GET /v2/tags/{id} (the `GetTag` operationId).

func (*Client) ListTagResources

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

ListTagResources List a tag's resources

Returns the resources a tag is attached to, newest attachment first, cursor-paginated. Each entry is the `{type}/{id}` pair `/v2/tags/{id}/resources/{resourceType}/{resourceId}` takes. A tag attached to nothing returns an empty list; one that does not exist, is deleted, is not the caller's, or is reserved returns 404.

Corresponds with GET /v2/tags/{id}/resources (the `ListTagResources` operationId).

func (*Client) ListTags

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

ListTags List tags

Returns the caller's tags, newest first, cursor-paginated. Tags under the reserved `runpod:` prefix, such as cost centers, are never listed. Follow `pagination.nextCursor` until `hasNextPage` is false.

Corresponds with GET /v2/tags (the `ListTags` operationId).

func (*Client) UpdateTag

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

UpdateTag Update a tag

Changes a tag's key, value, or both. The tag keeps its ID and stays attached to the same resources. Returns 404 when the tag does not exist or is not the caller's.

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

Corresponds with PATCH /v2/tags/{id} (the `UpdateTag` operationId).

func (*Client) UpdateTagWithBody

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

UpdateTagWithBody Update a tag

Changes a tag's key, value, or both. The tag keeps its ID and stays attached to the same resources. Returns 404 when the tag does not exist or is not the caller's.

Takes any type of body and a specified content type.

Corresponds with PATCH /v2/tags/{id} (the `UpdateTag` operationId).

type ClientInterface

type ClientInterface interface {

	// ListTags List tags
	//
	// Returns the caller's tags, newest first, cursor-paginated. Tags under
	// the reserved `runpod:` prefix, such as cost centers, are never listed.
	// Follow `pagination.nextCursor` until `hasNextPage` is false.
	//
	// Corresponds with GET /v2/tags (the `ListTags` operationId).
	ListTags(ctx context.Context, params *ListTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTagWithBody Create a tag
	//
	// Creates a tag. Pass `resources` to attach it at creation time; the tag is created and attached in one step, so if any resource cannot be attached, no tag is created.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v2/tags (the `CreateTag` operationId).
	CreateTagWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTag Create a tag
	//
	// Creates a tag. Pass `resources` to attach it at creation time; the tag is created and attached in one step, so if any resource cannot be attached, no tag is created.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v2/tags (the `CreateTag` operationId).
	CreateTag(ctx context.Context, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteTag Delete a tag
	//
	// Deletes a tag and removes it from every resource it is attached to. The resources themselves are unchanged, and nothing needs to be detached first. Returns 404 when the tag does not exist, is already deleted, is not the caller's, or is reserved: a cost center ID is a reserved tag, so delete it through `DELETE /v2/cost-centers/{id}`.
	//
	// Corresponds with DELETE /v2/tags/{id} (the `DeleteTag` operationId).
	DeleteTag(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTag Get a tag
	//
	// Returns one tag. Its ID stays the same when the key or value changes. Returns 404 when the tag does not exist, is deleted, is not the caller's, or is reserved: a cost center ID is a reserved tag, so read it through `GET /v2/cost-centers/{id}`.
	//
	// Corresponds with GET /v2/tags/{id} (the `GetTag` operationId).
	GetTag(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTagWithBody Update a tag
	//
	// Changes a tag's key, value, or both. The tag keeps its ID and stays attached to the same resources. Returns 404 when the tag does not exist or is not the caller's.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v2/tags/{id} (the `UpdateTag` operationId).
	UpdateTagWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTag Update a tag
	//
	// Changes a tag's key, value, or both. The tag keeps its ID and stays attached to the same resources. Returns 404 when the tag does not exist or is not the caller's.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v2/tags/{id} (the `UpdateTag` operationId).
	UpdateTag(ctx context.Context, id string, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTagResources List a tag's resources
	//
	// Returns the resources a tag is attached to, newest attachment first,
	// cursor-paginated. Each entry is the `{type}/{id}` pair
	// `/v2/tags/{id}/resources/{resourceType}/{resourceId}` takes. A tag
	// attached to nothing returns an empty list; one that does not exist, is
	// deleted, is not the caller's, or is reserved returns 404.
	//
	// Corresponds with GET /v2/tags/{id}/resources (the `ListTagResources` operationId).
	ListTagResources(ctx context.Context, id string, params *ListTagResourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DetachTagResource Remove a tag from a resource
	//
	// Removes a tag from one resource. The tag, the resource and the tag's other attachments are untouched. Returns 404 when the tag does not exist, is not the caller's, or is reserved (a cost center); when the resource does not carry it, so repeating a DELETE that succeeded returns 404; or when the resource is not the caller's to change. The detail names that last resource as `{resourceType}/{resourceId}`.
	//
	// Corresponds with DELETE /v2/tags/{id}/resources/{resourceType}/{resourceId} (the `DetachTagResource` operationId).
	DetachTagResource(ctx context.Context, id string, resourceType externalRef0.ResourceType, resourceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AttachTagResource Attach a tag to a resource
	//
	// Attaches a tag to a resource. Repeating the request is a no-op. A resource can carry several tags. Returns 404 when the tag or the resource does not exist or is not the caller's; the detail names a missing resource as `{resourceType}/{resourceId}`.
	//
	// Corresponds with PUT /v2/tags/{id}/resources/{resourceType}/{resourceId} (the `AttachTagResource` operationId).
	AttachTagResource(ctx context.Context, id string, resourceType externalRef0.ResourceType, resourceId string, 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) AttachTagResourceWithResponse

func (c *ClientWithResponses) AttachTagResourceWithResponse(ctx context.Context, id string, resourceType externalRef0.ResourceType, resourceId string, reqEditors ...RequestEditorFn) (*AttachTagResourceResult, error)

AttachTagResourceWithResponse Attach a tag to a resource

Attaches a tag to a resource. Repeating the request is a no-op. A resource can carry several tags. Returns 404 when the tag or the resource does not exist or is not the caller's; the detail names a missing resource as `{resourceType}/{resourceId}`.

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

Corresponds with PUT /v2/tags/{id}/resources/{resourceType}/{resourceId} (the `AttachTagResource` operationId).

func (*ClientWithResponses) CreateTagWithBodyWithResponse

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

CreateTagWithBodyWithResponse Create a tag

Creates a tag. Pass `resources` to attach it at creation time; the tag is created and attached in one step, so if any resource cannot be attached, no tag is created.

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/tags (the `CreateTag` operationId).

func (*ClientWithResponses) CreateTagWithResponse

func (c *ClientWithResponses) CreateTagWithResponse(ctx context.Context, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTagResult, error)

CreateTagWithResponse Create a tag

Creates a tag. Pass `resources` to attach it at creation time; the tag is created and attached in one step, so if any resource cannot be attached, no tag is created.

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/tags (the `CreateTag` operationId).

func (*ClientWithResponses) DeleteTagWithResponse

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

DeleteTagWithResponse Delete a tag

Deletes a tag and removes it from every resource it is attached to. The resources themselves are unchanged, and nothing needs to be detached first. Returns 404 when the tag does not exist, is already deleted, is not the caller's, or is reserved: a cost center ID is a reserved tag, so delete it through `DELETE /v2/cost-centers/{id}`.

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

Corresponds with DELETE /v2/tags/{id} (the `DeleteTag` operationId).

func (*ClientWithResponses) DetachTagResourceWithResponse

func (c *ClientWithResponses) DetachTagResourceWithResponse(ctx context.Context, id string, resourceType externalRef0.ResourceType, resourceId string, reqEditors ...RequestEditorFn) (*DetachTagResourceResult, error)

DetachTagResourceWithResponse Remove a tag from a resource

Removes a tag from one resource. The tag, the resource and the tag's other attachments are untouched. Returns 404 when the tag does not exist, is not the caller's, or is reserved (a cost center); when the resource does not carry it, so repeating a DELETE that succeeded returns 404; or when the resource is not the caller's to change. The detail names that last resource as `{resourceType}/{resourceId}`.

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

Corresponds with DELETE /v2/tags/{id}/resources/{resourceType}/{resourceId} (the `DetachTagResource` operationId).

func (*ClientWithResponses) GetTagWithResponse

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

GetTagWithResponse Get a tag

Returns one tag. Its ID stays the same when the key or value changes. Returns 404 when the tag does not exist, is deleted, is not the caller's, or is reserved: a cost center ID is a reserved tag, so read it through `GET /v2/cost-centers/{id}`.

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

Corresponds with GET /v2/tags/{id} (the `GetTag` operationId).

func (*ClientWithResponses) ListTagResourcesWithResponse

func (c *ClientWithResponses) ListTagResourcesWithResponse(ctx context.Context, id string, params *ListTagResourcesParams, reqEditors ...RequestEditorFn) (*ListTagResourcesResult, error)

ListTagResourcesWithResponse List a tag's resources

Returns the resources a tag is attached to, newest attachment first, cursor-paginated. Each entry is the `{type}/{id}` pair `/v2/tags/{id}/resources/{resourceType}/{resourceId}` takes. A tag attached to nothing returns an empty list; one that does not exist, is deleted, is not the caller's, or is reserved returns 404.

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

Corresponds with GET /v2/tags/{id}/resources (the `ListTagResources` operationId).

func (*ClientWithResponses) ListTagsWithResponse

func (c *ClientWithResponses) ListTagsWithResponse(ctx context.Context, params *ListTagsParams, reqEditors ...RequestEditorFn) (*ListTagsResult, error)

ListTagsWithResponse List tags

Returns the caller's tags, newest first, cursor-paginated. Tags under the reserved `runpod:` prefix, such as cost centers, are never listed. Follow `pagination.nextCursor` until `hasNextPage` is false.

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

Corresponds with GET /v2/tags (the `ListTags` operationId).

func (*ClientWithResponses) UpdateTagWithBodyWithResponse

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

UpdateTagWithBodyWithResponse Update a tag

Changes a tag's key, value, or both. The tag keeps its ID and stays attached to the same resources. Returns 404 when the tag does not exist or is not the caller's.

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/tags/{id} (the `UpdateTag` operationId).

func (*ClientWithResponses) UpdateTagWithResponse

func (c *ClientWithResponses) UpdateTagWithResponse(ctx context.Context, id string, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagResult, error)

UpdateTagWithResponse Update a tag

Changes a tag's key, value, or both. The tag keeps its ID and stays attached to the same resources. Returns 404 when the tag does not exist or is not the caller's.

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/tags/{id} (the `UpdateTag` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ListTagsWithResponse List tags
	//
	// Returns the caller's tags, newest first, cursor-paginated. Tags under
	// the reserved `runpod:` prefix, such as cost centers, are never listed.
	// Follow `pagination.nextCursor` until `hasNextPage` is false.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/tags (the `ListTags` operationId).
	ListTagsWithResponse(ctx context.Context, params *ListTagsParams, reqEditors ...RequestEditorFn) (*ListTagsResult, error)

	// CreateTagWithBodyWithResponse Create a tag
	//
	// Creates a tag. Pass `resources` to attach it at creation time; the tag is created and attached in one step, so if any resource cannot be attached, no tag is created.
	//
	// 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/tags (the `CreateTag` operationId).
	CreateTagWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTagResult, error)

	// CreateTagWithResponse Create a tag
	//
	// Creates a tag. Pass `resources` to attach it at creation time; the tag is created and attached in one step, so if any resource cannot be attached, no tag is created.
	//
	// 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/tags (the `CreateTag` operationId).
	CreateTagWithResponse(ctx context.Context, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTagResult, error)

	// DeleteTagWithResponse Delete a tag
	//
	// Deletes a tag and removes it from every resource it is attached to. The resources themselves are unchanged, and nothing needs to be detached first. Returns 404 when the tag does not exist, is already deleted, is not the caller's, or is reserved: a cost center ID is a reserved tag, so delete it through `DELETE /v2/cost-centers/{id}`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v2/tags/{id} (the `DeleteTag` operationId).
	DeleteTagWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteTagResult, error)

	// GetTagWithResponse Get a tag
	//
	// Returns one tag. Its ID stays the same when the key or value changes. Returns 404 when the tag does not exist, is deleted, is not the caller's, or is reserved: a cost center ID is a reserved tag, so read it through `GET /v2/cost-centers/{id}`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/tags/{id} (the `GetTag` operationId).
	GetTagWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetTagResult, error)

	// UpdateTagWithBodyWithResponse Update a tag
	//
	// Changes a tag's key, value, or both. The tag keeps its ID and stays attached to the same resources. Returns 404 when the tag does not exist or is not the caller's.
	//
	// 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/tags/{id} (the `UpdateTag` operationId).
	UpdateTagWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagResult, error)

	// UpdateTagWithResponse Update a tag
	//
	// Changes a tag's key, value, or both. The tag keeps its ID and stays attached to the same resources. Returns 404 when the tag does not exist or is not the caller's.
	//
	// 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/tags/{id} (the `UpdateTag` operationId).
	UpdateTagWithResponse(ctx context.Context, id string, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagResult, error)

	// ListTagResourcesWithResponse List a tag's resources
	//
	// Returns the resources a tag is attached to, newest attachment first,
	// cursor-paginated. Each entry is the `{type}/{id}` pair
	// `/v2/tags/{id}/resources/{resourceType}/{resourceId}` takes. A tag
	// attached to nothing returns an empty list; one that does not exist, is
	// deleted, is not the caller's, or is reserved returns 404.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/tags/{id}/resources (the `ListTagResources` operationId).
	ListTagResourcesWithResponse(ctx context.Context, id string, params *ListTagResourcesParams, reqEditors ...RequestEditorFn) (*ListTagResourcesResult, error)

	// DetachTagResourceWithResponse Remove a tag from a resource
	//
	// Removes a tag from one resource. The tag, the resource and the tag's other attachments are untouched. Returns 404 when the tag does not exist, is not the caller's, or is reserved (a cost center); when the resource does not carry it, so repeating a DELETE that succeeded returns 404; or when the resource is not the caller's to change. The detail names that last resource as `{resourceType}/{resourceId}`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v2/tags/{id}/resources/{resourceType}/{resourceId} (the `DetachTagResource` operationId).
	DetachTagResourceWithResponse(ctx context.Context, id string, resourceType externalRef0.ResourceType, resourceId string, reqEditors ...RequestEditorFn) (*DetachTagResourceResult, error)

	// AttachTagResourceWithResponse Attach a tag to a resource
	//
	// Attaches a tag to a resource. Repeating the request is a no-op. A resource can carry several tags. Returns 404 when the tag or the resource does not exist or is not the caller's; the detail names a missing resource as `{resourceType}/{resourceId}`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /v2/tags/{id}/resources/{resourceType}/{resourceId} (the `AttachTagResource` operationId).
	AttachTagResourceWithResponse(ctx context.Context, id string, resourceType externalRef0.ResourceType, resourceId string, reqEditors ...RequestEditorFn) (*AttachTagResourceResult, error)
}

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

type CreateTagJSONRequestBody

type CreateTagJSONRequestBody = externalRef0.CreateTagRequest

CreateTagJSONRequestBody defines body for CreateTag for application/json ContentType.

type CreateTagResult

type CreateTagResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *externalRef0.Tag
	// 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
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *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 *CreateTagResult201Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *CreateTagResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *CreateTagResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *CreateTagResult404Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *CreateTagResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *CreateTagResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateTagResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *CreateTagResultDefaultHeaders
}

func ParseCreateTagResult

func ParseCreateTagResult(rsp *http.Response) (*CreateTagResult, error)

ParseCreateTagResult parses an HTTP response from a CreateTagWithResponse call

func (CreateTagResult) ContentType

func (r CreateTagResult) ContentType() string

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

func (CreateTagResult) GetApplicationproblemJSON400

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

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

func (CreateTagResult) GetApplicationproblemJSON401

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

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

func (CreateTagResult) GetApplicationproblemJSON403

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

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

func (CreateTagResult) GetApplicationproblemJSON404

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

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

func (CreateTagResult) GetApplicationproblemJSON409

func (r CreateTagResult) GetApplicationproblemJSON409() *externalRef0.ErrorResponse

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateTagResult) GetApplicationproblemJSON413

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

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

func (CreateTagResult) GetApplicationproblemJSON422

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

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

func (CreateTagResult) GetApplicationproblemJSON429

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

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

func (CreateTagResult) GetApplicationproblemJSONDefault

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

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

func (CreateTagResult) GetBody

func (r CreateTagResult) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateTagResult) GetJSON201

func (r CreateTagResult) GetJSON201() *externalRef0.Tag

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

func (CreateTagResult) Status

func (r CreateTagResult) Status() string

Status returns HTTPResponse.Status

func (CreateTagResult) StatusCode

func (r CreateTagResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTagResult201Headers

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

CreateTagResult201Headers the declared response headers of an HTTP 201 response for CreateTag

type CreateTagResult400Headers

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

CreateTagResult400Headers the declared response headers of an HTTP 400 response for CreateTag

type CreateTagResult403Headers

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

CreateTagResult403Headers the declared response headers of an HTTP 403 response for CreateTag

type CreateTagResult404Headers

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

CreateTagResult404Headers the declared response headers of an HTTP 404 response for CreateTag

type CreateTagResult413Headers

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

CreateTagResult413Headers the declared response headers of an HTTP 413 response for CreateTag

type CreateTagResult422Headers

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

CreateTagResult422Headers the declared response headers of an HTTP 422 response for CreateTag

type CreateTagResult429Headers

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

CreateTagResult429Headers the declared response headers of an HTTP 429 response for CreateTag

type CreateTagResultDefaultHeaders

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

CreateTagResultDefaultHeaders the declared response headers of an HTTP default response for CreateTag

type DeleteTagResult

type DeleteTagResult 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 *DeleteTagResult204Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *DeleteTagResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *DeleteTagResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *DeleteTagResult404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteTagResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *DeleteTagResultDefaultHeaders
}

func ParseDeleteTagResult

func ParseDeleteTagResult(rsp *http.Response) (*DeleteTagResult, error)

ParseDeleteTagResult parses an HTTP response from a DeleteTagWithResponse call

func (DeleteTagResult) ContentType

func (r DeleteTagResult) ContentType() string

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

func (DeleteTagResult) GetApplicationproblemJSON400

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

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

func (DeleteTagResult) GetApplicationproblemJSON401

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

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

func (DeleteTagResult) GetApplicationproblemJSON403

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

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

func (DeleteTagResult) GetApplicationproblemJSON404

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

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

func (DeleteTagResult) GetApplicationproblemJSON429

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

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

func (DeleteTagResult) GetApplicationproblemJSONDefault

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

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

func (DeleteTagResult) GetBody

func (r DeleteTagResult) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteTagResult) Status

func (r DeleteTagResult) Status() string

Status returns HTTPResponse.Status

func (DeleteTagResult) StatusCode

func (r DeleteTagResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteTagResult204Headers

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

DeleteTagResult204Headers the declared response headers of an HTTP 204 response for DeleteTag

type DeleteTagResult400Headers

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

DeleteTagResult400Headers the declared response headers of an HTTP 400 response for DeleteTag

type DeleteTagResult403Headers

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

DeleteTagResult403Headers the declared response headers of an HTTP 403 response for DeleteTag

type DeleteTagResult404Headers

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

DeleteTagResult404Headers the declared response headers of an HTTP 404 response for DeleteTag

type DeleteTagResult429Headers

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

DeleteTagResult429Headers the declared response headers of an HTTP 429 response for DeleteTag

type DeleteTagResultDefaultHeaders

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

DeleteTagResultDefaultHeaders the declared response headers of an HTTP default response for DeleteTag

type DetachTagResourceResult

type DetachTagResourceResult 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
	// 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
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *DetachTagResourceResult204Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *DetachTagResourceResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *DetachTagResourceResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *DetachTagResourceResult404Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *DetachTagResourceResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DetachTagResourceResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *DetachTagResourceResultDefaultHeaders
}

func ParseDetachTagResourceResult

func ParseDetachTagResourceResult(rsp *http.Response) (*DetachTagResourceResult, error)

ParseDetachTagResourceResult parses an HTTP response from a DetachTagResourceWithResponse call

func (DetachTagResourceResult) ContentType

func (r DetachTagResourceResult) ContentType() string

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

func (DetachTagResourceResult) GetApplicationproblemJSON400

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

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

func (DetachTagResourceResult) GetApplicationproblemJSON401

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

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

func (DetachTagResourceResult) GetApplicationproblemJSON403

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

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

func (DetachTagResourceResult) GetApplicationproblemJSON404

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

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

func (DetachTagResourceResult) GetApplicationproblemJSON422

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

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

func (DetachTagResourceResult) GetApplicationproblemJSON429

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

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

func (DetachTagResourceResult) GetApplicationproblemJSONDefault

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

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

func (DetachTagResourceResult) GetBody

func (r DetachTagResourceResult) GetBody() []byte

GetBody returns the raw response body bytes

func (DetachTagResourceResult) Status

func (r DetachTagResourceResult) Status() string

Status returns HTTPResponse.Status

func (DetachTagResourceResult) StatusCode

func (r DetachTagResourceResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DetachTagResourceResult204Headers

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

DetachTagResourceResult204Headers the declared response headers of an HTTP 204 response for DetachTagResource

type DetachTagResourceResult400Headers

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

DetachTagResourceResult400Headers the declared response headers of an HTTP 400 response for DetachTagResource

type DetachTagResourceResult403Headers

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

DetachTagResourceResult403Headers the declared response headers of an HTTP 403 response for DetachTagResource

type DetachTagResourceResult404Headers

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

DetachTagResourceResult404Headers the declared response headers of an HTTP 404 response for DetachTagResource

type DetachTagResourceResult422Headers

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

DetachTagResourceResult422Headers the declared response headers of an HTTP 422 response for DetachTagResource

type DetachTagResourceResult429Headers

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

DetachTagResourceResult429Headers the declared response headers of an HTTP 429 response for DetachTagResource

type DetachTagResourceResultDefaultHeaders

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

DetachTagResourceResultDefaultHeaders the declared response headers of an HTTP default response for DetachTagResource

type GetTagResult

type GetTagResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.Tag
	// 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 *GetTagResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetTagResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetTagResult404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetTagResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetTagResultDefaultHeaders
}

func ParseGetTagResult

func ParseGetTagResult(rsp *http.Response) (*GetTagResult, error)

ParseGetTagResult parses an HTTP response from a GetTagWithResponse call

func (GetTagResult) ContentType

func (r GetTagResult) ContentType() string

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

func (GetTagResult) GetApplicationproblemJSON401

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

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

func (GetTagResult) GetApplicationproblemJSON403

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

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

func (GetTagResult) GetApplicationproblemJSON404

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

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

func (GetTagResult) GetApplicationproblemJSON429

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

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

func (GetTagResult) GetApplicationproblemJSONDefault

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

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

func (GetTagResult) GetBody

func (r GetTagResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTagResult) GetJSON200

func (r GetTagResult) GetJSON200() *externalRef0.Tag

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

func (GetTagResult) Status

func (r GetTagResult) Status() string

Status returns HTTPResponse.Status

func (GetTagResult) StatusCode

func (r GetTagResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTagResult200Headers

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

GetTagResult200Headers the declared response headers of an HTTP 200 response for GetTag

type GetTagResult403Headers

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

GetTagResult403Headers the declared response headers of an HTTP 403 response for GetTag

type GetTagResult404Headers

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

GetTagResult404Headers the declared response headers of an HTTP 404 response for GetTag

type GetTagResult429Headers

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

GetTagResult429Headers the declared response headers of an HTTP 429 response for GetTag

type GetTagResultDefaultHeaders

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

GetTagResultDefaultHeaders the declared response headers of an HTTP default response for GetTag

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListTagResourcesParams

type ListTagResourcesParams 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"`
}

ListTagResourcesParams defines parameters for ListTagResources.

type ListTagResourcesResult

type ListTagResourcesResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.ListTagResourcesResponse
	// 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 *ListTagResourcesResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListTagResourcesResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *ListTagResourcesResult404Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *ListTagResourcesResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *ListTagResourcesResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListTagResourcesResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListTagResourcesResultDefaultHeaders
}

func ParseListTagResourcesResult

func ParseListTagResourcesResult(rsp *http.Response) (*ListTagResourcesResult, error)

ParseListTagResourcesResult parses an HTTP response from a ListTagResourcesWithResponse call

func (ListTagResourcesResult) ContentType

func (r ListTagResourcesResult) ContentType() string

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

func (ListTagResourcesResult) GetApplicationproblemJSON401

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

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

func (ListTagResourcesResult) GetApplicationproblemJSON403

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

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

func (ListTagResourcesResult) GetApplicationproblemJSON404

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

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

func (ListTagResourcesResult) GetApplicationproblemJSON413

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

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

func (ListTagResourcesResult) GetApplicationproblemJSON422

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

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

func (ListTagResourcesResult) GetApplicationproblemJSON429

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

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

func (ListTagResourcesResult) GetApplicationproblemJSONDefault

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

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

func (ListTagResourcesResult) GetBody

func (r ListTagResourcesResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListTagResourcesResult) GetJSON200

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

func (ListTagResourcesResult) Status

func (r ListTagResourcesResult) Status() string

Status returns HTTPResponse.Status

func (ListTagResourcesResult) StatusCode

func (r ListTagResourcesResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTagResourcesResult200Headers

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

ListTagResourcesResult200Headers the declared response headers of an HTTP 200 response for ListTagResources

type ListTagResourcesResult403Headers

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

ListTagResourcesResult403Headers the declared response headers of an HTTP 403 response for ListTagResources

type ListTagResourcesResult404Headers

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

ListTagResourcesResult404Headers the declared response headers of an HTTP 404 response for ListTagResources

type ListTagResourcesResult413Headers

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

ListTagResourcesResult413Headers the declared response headers of an HTTP 413 response for ListTagResources

type ListTagResourcesResult422Headers

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

ListTagResourcesResult422Headers the declared response headers of an HTTP 422 response for ListTagResources

type ListTagResourcesResult429Headers

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

ListTagResourcesResult429Headers the declared response headers of an HTTP 429 response for ListTagResources

type ListTagResourcesResultDefaultHeaders

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

ListTagResourcesResultDefaultHeaders the declared response headers of an HTTP default response for ListTagResources

type ListTagsParams

type ListTagsParams 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"`
}

ListTagsParams defines parameters for ListTags.

type ListTagsResult

type ListTagsResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.ListTagsResponse
	// 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
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListTagsResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListTagsResult403Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *ListTagsResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *ListTagsResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListTagsResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListTagsResultDefaultHeaders
}

func ParseListTagsResult

func ParseListTagsResult(rsp *http.Response) (*ListTagsResult, error)

ParseListTagsResult parses an HTTP response from a ListTagsWithResponse call

func (ListTagsResult) ContentType

func (r ListTagsResult) ContentType() string

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

func (ListTagsResult) GetApplicationproblemJSON401

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

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

func (ListTagsResult) GetApplicationproblemJSON403

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

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

func (ListTagsResult) GetApplicationproblemJSON413

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

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

func (ListTagsResult) GetApplicationproblemJSON422

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

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

func (ListTagsResult) GetApplicationproblemJSON429

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

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

func (ListTagsResult) GetApplicationproblemJSONDefault

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

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

func (ListTagsResult) GetBody

func (r ListTagsResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListTagsResult) GetJSON200

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

func (ListTagsResult) Status

func (r ListTagsResult) Status() string

Status returns HTTPResponse.Status

func (ListTagsResult) StatusCode

func (r ListTagsResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTagsResult200Headers

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

ListTagsResult200Headers the declared response headers of an HTTP 200 response for ListTags

type ListTagsResult403Headers

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

ListTagsResult403Headers the declared response headers of an HTTP 403 response for ListTags

type ListTagsResult413Headers

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

ListTagsResult413Headers the declared response headers of an HTTP 413 response for ListTags

type ListTagsResult422Headers

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

ListTagsResult422Headers the declared response headers of an HTTP 422 response for ListTags

type ListTagsResult429Headers

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

ListTagsResult429Headers the declared response headers of an HTTP 429 response for ListTags

type ListTagsResultDefaultHeaders

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

ListTagsResultDefaultHeaders the declared response headers of an HTTP default response for ListTags

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type UpdateTagJSONRequestBody

type UpdateTagJSONRequestBody = externalRef0.UpdateTagRequest

UpdateTagJSONRequestBody defines body for UpdateTag for application/json ContentType.

type UpdateTagResult

type UpdateTagResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.Tag
	// 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
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *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 *UpdateTagResult200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *UpdateTagResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *UpdateTagResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *UpdateTagResult404Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *UpdateTagResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *UpdateTagResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateTagResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *UpdateTagResultDefaultHeaders
}

func ParseUpdateTagResult

func ParseUpdateTagResult(rsp *http.Response) (*UpdateTagResult, error)

ParseUpdateTagResult parses an HTTP response from a UpdateTagWithResponse call

func (UpdateTagResult) ContentType

func (r UpdateTagResult) ContentType() string

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

func (UpdateTagResult) GetApplicationproblemJSON400

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

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

func (UpdateTagResult) GetApplicationproblemJSON401

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

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

func (UpdateTagResult) GetApplicationproblemJSON403

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

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

func (UpdateTagResult) GetApplicationproblemJSON404

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

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

func (UpdateTagResult) GetApplicationproblemJSON409

func (r UpdateTagResult) GetApplicationproblemJSON409() *externalRef0.ErrorResponse

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdateTagResult) GetApplicationproblemJSON413

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

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

func (UpdateTagResult) GetApplicationproblemJSON422

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

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

func (UpdateTagResult) GetApplicationproblemJSON429

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

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

func (UpdateTagResult) GetApplicationproblemJSONDefault

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

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

func (UpdateTagResult) GetBody

func (r UpdateTagResult) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateTagResult) GetJSON200

func (r UpdateTagResult) GetJSON200() *externalRef0.Tag

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

func (UpdateTagResult) Status

func (r UpdateTagResult) Status() string

Status returns HTTPResponse.Status

func (UpdateTagResult) StatusCode

func (r UpdateTagResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateTagResult200Headers

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

UpdateTagResult200Headers the declared response headers of an HTTP 200 response for UpdateTag

type UpdateTagResult400Headers

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

UpdateTagResult400Headers the declared response headers of an HTTP 400 response for UpdateTag

type UpdateTagResult403Headers

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

UpdateTagResult403Headers the declared response headers of an HTTP 403 response for UpdateTag

type UpdateTagResult404Headers

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

UpdateTagResult404Headers the declared response headers of an HTTP 404 response for UpdateTag

type UpdateTagResult413Headers

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

UpdateTagResult413Headers the declared response headers of an HTTP 413 response for UpdateTag

type UpdateTagResult422Headers

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

UpdateTagResult422Headers the declared response headers of an HTTP 422 response for UpdateTag

type UpdateTagResult429Headers

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

UpdateTagResult429Headers the declared response headers of an HTTP 429 response for UpdateTag

type UpdateTagResultDefaultHeaders

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

UpdateTagResultDefaultHeaders the declared response headers of an HTTP default response for UpdateTag

Jump to

Keyboard shortcuts

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