client

package
v0.0.0-...-96b82b1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 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 client 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

View Source
const DefaultHTTPTimeout = 10 * time.Second

Variables

This section is empty.

Functions

func APIBaseURL

func APIBaseURL(baseURL string) (string, error)

APIBaseURL appends the catalog API version path to a service base URL.

func DefaultHTTPClient

func DefaultHTTPClient(timeout time.Duration) *http.Client

DefaultHTTPClient returns an HTTP client with a request timeout.

func NewCreateCatalogItemInstanceRequest

func NewCreateCatalogItemInstanceRequest(server string, params *CreateCatalogItemInstanceParams, body CreateCatalogItemInstanceJSONRequestBody) (*http.Request, error)

NewCreateCatalogItemInstanceRequest calls the generic CreateCatalogItemInstance builder with application/json body

func NewCreateCatalogItemInstanceRequestWithBody

func NewCreateCatalogItemInstanceRequestWithBody(server string, params *CreateCatalogItemInstanceParams, contentType string, body io.Reader) (*http.Request, error)

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

func NewCreateCatalogItemRequest

func NewCreateCatalogItemRequest(server string, params *CreateCatalogItemParams, body CreateCatalogItemJSONRequestBody) (*http.Request, error)

NewCreateCatalogItemRequest calls the generic CreateCatalogItem builder with application/json body

func NewCreateCatalogItemRequestWithBody

func NewCreateCatalogItemRequestWithBody(server string, params *CreateCatalogItemParams, contentType string, body io.Reader) (*http.Request, error)

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

func NewCreateServiceTypeRequest

func NewCreateServiceTypeRequest(server string, params *CreateServiceTypeParams, body CreateServiceTypeJSONRequestBody) (*http.Request, error)

NewCreateServiceTypeRequest calls the generic CreateServiceType builder with application/json body

func NewCreateServiceTypeRequestWithBody

func NewCreateServiceTypeRequestWithBody(server string, params *CreateServiceTypeParams, contentType string, body io.Reader) (*http.Request, error)

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

func NewDeleteCatalogItemInstanceRequest

func NewDeleteCatalogItemInstanceRequest(server string, catalogItemInstanceId CatalogItemInstanceIdPath) (*http.Request, error)

NewDeleteCatalogItemInstanceRequest constructs an http.Request for the DeleteCatalogItemInstance method

func NewDeleteCatalogItemRequest

func NewDeleteCatalogItemRequest(server string, catalogItemId CatalogItemIdPath) (*http.Request, error)

NewDeleteCatalogItemRequest constructs an http.Request for the DeleteCatalogItem method

func NewGetCatalogItemInstanceRequest

func NewGetCatalogItemInstanceRequest(server string, catalogItemInstanceId CatalogItemInstanceIdPath) (*http.Request, error)

NewGetCatalogItemInstanceRequest constructs an http.Request for the GetCatalogItemInstance method

func NewGetCatalogItemRequest

func NewGetCatalogItemRequest(server string, catalogItemId CatalogItemIdPath) (*http.Request, error)

NewGetCatalogItemRequest constructs an http.Request for the GetCatalogItem method

func NewGetServiceTypeRequest

func NewGetServiceTypeRequest(server string, serviceTypeId ServiceTypeIdPath) (*http.Request, error)

NewGetServiceTypeRequest constructs an http.Request for the GetServiceType method

func NewListCatalogItemInstancesRequest

func NewListCatalogItemInstancesRequest(server string, params *ListCatalogItemInstancesParams) (*http.Request, error)

NewListCatalogItemInstancesRequest constructs an http.Request for the ListCatalogItemInstances method

func NewListCatalogItemsRequest

func NewListCatalogItemsRequest(server string, params *ListCatalogItemsParams) (*http.Request, error)

NewListCatalogItemsRequest constructs an http.Request for the ListCatalogItems method

func NewListServiceTypesRequest

func NewListServiceTypesRequest(server string, params *ListServiceTypesParams) (*http.Request, error)

NewListServiceTypesRequest constructs an http.Request for the ListServiceTypes method

func NewRehydrateCatalogItemInstanceRequest

func NewRehydrateCatalogItemInstanceRequest(server string, catalogItemInstanceId CatalogItemInstanceIdPath) (*http.Request, error)

NewRehydrateCatalogItemInstanceRequest constructs an http.Request for the RehydrateCatalogItemInstance method

func NewUpdateCatalogItemRequestWithApplicationMergePatchPlusJSONBody

func NewUpdateCatalogItemRequestWithApplicationMergePatchPlusJSONBody(server string, catalogItemId CatalogItemIdPath, body UpdateCatalogItemApplicationMergePatchPlusJSONRequestBody) (*http.Request, error)

NewUpdateCatalogItemRequestWithApplicationMergePatchPlusJSONBody calls the generic UpdateCatalogItem builder with application/merge-patch+json body

func NewUpdateCatalogItemRequestWithBody

func NewUpdateCatalogItemRequestWithBody(server string, catalogItemId CatalogItemIdPath, contentType string, body io.Reader) (*http.Request, error)

NewUpdateCatalogItemRequestWithBody constructs an http.Request for the UpdateCatalogItem 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) CreateCatalogItem

func (c *Client) CreateCatalogItem(ctx context.Context, params *CreateCatalogItemParams, body CreateCatalogItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateCatalogItem Create a catalog item

Creates a new catalog item.

Supports user-specified IDs via the 'id' query parameter for idempotency.

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

Corresponds with POST /catalog-items (the `CreateCatalogItem` operationId).

func (*Client) CreateCatalogItemInstance

func (c *Client) CreateCatalogItemInstance(ctx context.Context, params *CreateCatalogItemInstanceParams, body CreateCatalogItemInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateCatalogItemInstance Create a catalog item instance

Creates a new catalog item instance.

Supports user-specified IDs via the 'catalog_item_instance_id' query parameter for idempotency.

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

Corresponds with POST /catalog-item-instances (the `CreateCatalogItemInstance` operationId).

func (*Client) CreateCatalogItemInstanceWithBody

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

CreateCatalogItemInstanceWithBody Create a catalog item instance

Creates a new catalog item instance.

Supports user-specified IDs via the 'catalog_item_instance_id' query parameter for idempotency.

Takes any type of body and a specified content type.

Corresponds with POST /catalog-item-instances (the `CreateCatalogItemInstance` operationId).

func (*Client) CreateCatalogItemWithBody

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

CreateCatalogItemWithBody Create a catalog item

Creates a new catalog item.

Supports user-specified IDs via the 'id' query parameter for idempotency.

Takes any type of body and a specified content type.

Corresponds with POST /catalog-items (the `CreateCatalogItem` operationId).

func (*Client) CreateServiceType

func (c *Client) CreateServiceType(ctx context.Context, params *CreateServiceTypeParams, body CreateServiceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateServiceType Create a service type

Creates a new service type definition.

Supports user-specified IDs via the 'id' query parameter for idempotency. If the ID is not provided, the server will generate one.

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

Corresponds with POST /service-types (the `CreateServiceType` operationId).

func (*Client) CreateServiceTypeWithBody

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

CreateServiceTypeWithBody Create a service type

Creates a new service type definition.

Supports user-specified IDs via the 'id' query parameter for idempotency. If the ID is not provided, the server will generate one.

Takes any type of body and a specified content type.

Corresponds with POST /service-types (the `CreateServiceType` operationId).

func (*Client) DeleteCatalogItem

func (c *Client) DeleteCatalogItem(ctx context.Context, catalogItemId CatalogItemIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteCatalogItem Delete a catalog item

Deletes a catalog item.

Corresponds with DELETE /catalog-items/{catalogItemId} (the `DeleteCatalogItem` operationId).

func (*Client) DeleteCatalogItemInstance

func (c *Client) DeleteCatalogItemInstance(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteCatalogItemInstance Delete a catalog item instance

Deletes a catalog item instance.

Corresponds with DELETE /catalog-item-instances/{catalogItemInstanceId} (the `DeleteCatalogItemInstance` operationId).

func (*Client) GetCatalogItem

func (c *Client) GetCatalogItem(ctx context.Context, catalogItemId CatalogItemIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

GetCatalogItem Get a catalog item

Retrieves a single catalog item by its ID.

Corresponds with GET /catalog-items/{catalogItemId} (the `GetCatalogItem` operationId).

func (*Client) GetCatalogItemInstance

func (c *Client) GetCatalogItemInstance(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

GetCatalogItemInstance Get a catalog item instance

Retrieves a single catalog item instance by its ID.

Corresponds with GET /catalog-item-instances/{catalogItemInstanceId} (the `GetCatalogItemInstance` operationId).

func (*Client) GetServiceType

func (c *Client) GetServiceType(ctx context.Context, serviceTypeId ServiceTypeIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

GetServiceType Get a service type

Retrieves a single service type by its ID.

Corresponds with GET /service-types/{serviceTypeId} (the `GetServiceType` operationId).

func (*Client) ListCatalogItemInstances

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

ListCatalogItemInstances List catalog item instances

Retrieves a paginated list of catalog item instances. Supports filtering by catalog item instance ID.

Corresponds with GET /catalog-item-instances (the `ListCatalogItemInstances` operationId).

func (*Client) ListCatalogItems

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

ListCatalogItems List catalog items

Retrieves a paginated list of catalog items. Supports filtering by service type.

Corresponds with GET /catalog-items (the `ListCatalogItems` operationId).

func (*Client) ListServiceTypes

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

ListServiceTypes List service types

Retrieves a paginated list of service type definitions. Supports standard pagination using page tokens.

Corresponds with GET /service-types (the `ListServiceTypes` operationId).

func (*Client) RehydrateCatalogItemInstance

func (c *Client) RehydrateCatalogItemInstance(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

RehydrateCatalogItemInstance Rehydrate a catalog item instance

Triggers rehydration of an existing CatalogItemInstance. Generates a new resource ID and delegates to the Placement Manager.

Corresponds with POST /catalog-item-instances/{catalogItemInstanceId}:rehydrate (the `RehydrateCatalogItemInstance` operationId).

func (*Client) UpdateCatalogItemWithApplicationMergePatchPlusJSONBody

func (c *Client) UpdateCatalogItemWithApplicationMergePatchPlusJSONBody(ctx context.Context, catalogItemId CatalogItemIdPath, body UpdateCatalogItemApplicationMergePatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateCatalogItemWithApplicationMergePatchPlusJSONBody Update a catalog item

Updates specific fields of a catalog item using JSON Merge Patch (RFC 7396).

Note that api_version and resource structure (resource names, service types, requires_resources) are immutable after creation.

Takes a body of the `application/merge-patch+json` content type.

Corresponds with PATCH /catalog-items/{catalogItemId} (the `UpdateCatalogItem` operationId).

func (*Client) UpdateCatalogItemWithBody

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

UpdateCatalogItemWithBody Update a catalog item

Updates specific fields of a catalog item using JSON Merge Patch (RFC 7396).

Note that api_version and resource structure (resource names, service types, requires_resources) are immutable after creation.

Takes any type of body and a specified content type.

Corresponds with PATCH /catalog-items/{catalogItemId} (the `UpdateCatalogItem` operationId).

type ClientInterface

type ClientInterface interface {

	// ListCatalogItemInstances List catalog item instances
	//
	// Retrieves a paginated list of catalog item instances.
	// Supports filtering by catalog item instance ID.
	//
	// Corresponds with GET /catalog-item-instances (the `ListCatalogItemInstances` operationId).
	ListCatalogItemInstances(ctx context.Context, params *ListCatalogItemInstancesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCatalogItemInstanceWithBody Create a catalog item instance
	//
	// Creates a new catalog item instance.
	//
	// Supports user-specified IDs via the 'catalog_item_instance_id' query parameter for idempotency.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /catalog-item-instances (the `CreateCatalogItemInstance` operationId).
	CreateCatalogItemInstanceWithBody(ctx context.Context, params *CreateCatalogItemInstanceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCatalogItemInstance Create a catalog item instance
	//
	// Creates a new catalog item instance.
	//
	// Supports user-specified IDs via the 'catalog_item_instance_id' query parameter for idempotency.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /catalog-item-instances (the `CreateCatalogItemInstance` operationId).
	CreateCatalogItemInstance(ctx context.Context, params *CreateCatalogItemInstanceParams, body CreateCatalogItemInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCatalogItemInstance Delete a catalog item instance
	//
	// Deletes a catalog item instance.
	//
	// Corresponds with DELETE /catalog-item-instances/{catalogItemInstanceId} (the `DeleteCatalogItemInstance` operationId).
	DeleteCatalogItemInstance(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCatalogItemInstance Get a catalog item instance
	//
	// Retrieves a single catalog item instance by its ID.
	//
	// Corresponds with GET /catalog-item-instances/{catalogItemInstanceId} (the `GetCatalogItemInstance` operationId).
	GetCatalogItemInstance(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RehydrateCatalogItemInstance Rehydrate a catalog item instance
	//
	// Triggers rehydration of an existing CatalogItemInstance.
	// Generates a new resource ID and delegates to the Placement Manager.
	//
	// Corresponds with POST /catalog-item-instances/{catalogItemInstanceId}:rehydrate (the `RehydrateCatalogItemInstance` operationId).
	RehydrateCatalogItemInstance(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListCatalogItems List catalog items
	//
	// Retrieves a paginated list of catalog items.
	// Supports filtering by service type.
	//
	// Corresponds with GET /catalog-items (the `ListCatalogItems` operationId).
	ListCatalogItems(ctx context.Context, params *ListCatalogItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCatalogItemWithBody Create a catalog item
	//
	// Creates a new catalog item.
	//
	// Supports user-specified IDs via the 'id' query parameter for idempotency.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /catalog-items (the `CreateCatalogItem` operationId).
	CreateCatalogItemWithBody(ctx context.Context, params *CreateCatalogItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCatalogItem Create a catalog item
	//
	// Creates a new catalog item.
	//
	// Supports user-specified IDs via the 'id' query parameter for idempotency.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /catalog-items (the `CreateCatalogItem` operationId).
	CreateCatalogItem(ctx context.Context, params *CreateCatalogItemParams, body CreateCatalogItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCatalogItem Delete a catalog item
	//
	// Deletes a catalog item.
	//
	// Corresponds with DELETE /catalog-items/{catalogItemId} (the `DeleteCatalogItem` operationId).
	DeleteCatalogItem(ctx context.Context, catalogItemId CatalogItemIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCatalogItem Get a catalog item
	//
	// Retrieves a single catalog item by its ID.
	//
	// Corresponds with GET /catalog-items/{catalogItemId} (the `GetCatalogItem` operationId).
	GetCatalogItem(ctx context.Context, catalogItemId CatalogItemIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateCatalogItemWithBody Update a catalog item
	//
	// Updates specific fields of a catalog item using JSON Merge Patch (RFC 7396).
	//
	// Note that api_version and resource structure (resource names,
	// service types, requires_resources) are immutable after creation.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /catalog-items/{catalogItemId} (the `UpdateCatalogItem` operationId).
	UpdateCatalogItemWithBody(ctx context.Context, catalogItemId CatalogItemIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateCatalogItemWithApplicationMergePatchPlusJSONBody Update a catalog item
	//
	// Updates specific fields of a catalog item using JSON Merge Patch (RFC 7396).
	//
	// Note that api_version and resource structure (resource names,
	// service types, requires_resources) are immutable after creation.
	//
	// Takes a body of the `application/merge-patch+json` content type.
	//
	// Corresponds with PATCH /catalog-items/{catalogItemId} (the `UpdateCatalogItem` operationId).
	UpdateCatalogItemWithApplicationMergePatchPlusJSONBody(ctx context.Context, catalogItemId CatalogItemIdPath, body UpdateCatalogItemApplicationMergePatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListServiceTypes List service types
	//
	// Retrieves a paginated list of service type definitions.
	// Supports standard pagination using page tokens.
	//
	// Corresponds with GET /service-types (the `ListServiceTypes` operationId).
	ListServiceTypes(ctx context.Context, params *ListServiceTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateServiceTypeWithBody Create a service type
	//
	// Creates a new service type definition.
	//
	// Supports user-specified IDs via the 'id' query parameter for idempotency.
	// If the ID is not provided, the server will generate one.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /service-types (the `CreateServiceType` operationId).
	CreateServiceTypeWithBody(ctx context.Context, params *CreateServiceTypeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateServiceType Create a service type
	//
	// Creates a new service type definition.
	//
	// Supports user-specified IDs via the 'id' query parameter for idempotency.
	// If the ID is not provided, the server will generate one.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /service-types (the `CreateServiceType` operationId).
	CreateServiceType(ctx context.Context, params *CreateServiceTypeParams, body CreateServiceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetServiceType Get a service type
	//
	// Retrieves a single service type by its ID.
	//
	// Corresponds with GET /service-types/{serviceTypeId} (the `GetServiceType` operationId).
	GetServiceType(ctx context.Context, serviceTypeId ServiceTypeIdPath, 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) CreateCatalogItemInstanceWithBodyWithResponse

func (c *ClientWithResponses) CreateCatalogItemInstanceWithBodyWithResponse(ctx context.Context, params *CreateCatalogItemInstanceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCatalogItemInstanceResponse, error)

CreateCatalogItemInstanceWithBodyWithResponse Create a catalog item instance

Creates a new catalog item instance.

Supports user-specified IDs via the 'catalog_item_instance_id' query parameter for idempotency.

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 /catalog-item-instances (the `CreateCatalogItemInstance` operationId).

func (*ClientWithResponses) CreateCatalogItemInstanceWithResponse

func (c *ClientWithResponses) CreateCatalogItemInstanceWithResponse(ctx context.Context, params *CreateCatalogItemInstanceParams, body CreateCatalogItemInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCatalogItemInstanceResponse, error)

CreateCatalogItemInstanceWithResponse Create a catalog item instance

Creates a new catalog item instance.

Supports user-specified IDs via the 'catalog_item_instance_id' query parameter for idempotency.

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

Corresponds with POST /catalog-item-instances (the `CreateCatalogItemInstance` operationId).

func (*ClientWithResponses) CreateCatalogItemWithBodyWithResponse

func (c *ClientWithResponses) CreateCatalogItemWithBodyWithResponse(ctx context.Context, params *CreateCatalogItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCatalogItemResponse, error)

CreateCatalogItemWithBodyWithResponse Create a catalog item

Creates a new catalog item.

Supports user-specified IDs via the 'id' query parameter for idempotency.

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 /catalog-items (the `CreateCatalogItem` operationId).

func (*ClientWithResponses) CreateCatalogItemWithResponse

func (c *ClientWithResponses) CreateCatalogItemWithResponse(ctx context.Context, params *CreateCatalogItemParams, body CreateCatalogItemJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCatalogItemResponse, error)

CreateCatalogItemWithResponse Create a catalog item

Creates a new catalog item.

Supports user-specified IDs via the 'id' query parameter for idempotency.

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

Corresponds with POST /catalog-items (the `CreateCatalogItem` operationId).

func (*ClientWithResponses) CreateServiceTypeWithBodyWithResponse

func (c *ClientWithResponses) CreateServiceTypeWithBodyWithResponse(ctx context.Context, params *CreateServiceTypeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceTypeResponse, error)

CreateServiceTypeWithBodyWithResponse Create a service type

Creates a new service type definition.

Supports user-specified IDs via the 'id' query parameter for idempotency. If the ID is not provided, the server will generate one.

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 /service-types (the `CreateServiceType` operationId).

func (*ClientWithResponses) CreateServiceTypeWithResponse

func (c *ClientWithResponses) CreateServiceTypeWithResponse(ctx context.Context, params *CreateServiceTypeParams, body CreateServiceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceTypeResponse, error)

CreateServiceTypeWithResponse Create a service type

Creates a new service type definition.

Supports user-specified IDs via the 'id' query parameter for idempotency. If the ID is not provided, the server will generate one.

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

Corresponds with POST /service-types (the `CreateServiceType` operationId).

func (*ClientWithResponses) DeleteCatalogItemInstanceWithResponse

func (c *ClientWithResponses) DeleteCatalogItemInstanceWithResponse(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*DeleteCatalogItemInstanceResponse, error)

DeleteCatalogItemInstanceWithResponse Delete a catalog item instance

Deletes a catalog item instance.

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

Corresponds with DELETE /catalog-item-instances/{catalogItemInstanceId} (the `DeleteCatalogItemInstance` operationId).

func (*ClientWithResponses) DeleteCatalogItemWithResponse

func (c *ClientWithResponses) DeleteCatalogItemWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, reqEditors ...RequestEditorFn) (*DeleteCatalogItemResponse, error)

DeleteCatalogItemWithResponse Delete a catalog item

Deletes a catalog item.

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

Corresponds with DELETE /catalog-items/{catalogItemId} (the `DeleteCatalogItem` operationId).

func (*ClientWithResponses) GetCatalogItemInstanceWithResponse

func (c *ClientWithResponses) GetCatalogItemInstanceWithResponse(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*GetCatalogItemInstanceResponse, error)

GetCatalogItemInstanceWithResponse Get a catalog item instance

Retrieves a single catalog item instance by its ID.

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

Corresponds with GET /catalog-item-instances/{catalogItemInstanceId} (the `GetCatalogItemInstance` operationId).

func (*ClientWithResponses) GetCatalogItemWithResponse

func (c *ClientWithResponses) GetCatalogItemWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, reqEditors ...RequestEditorFn) (*GetCatalogItemResponse, error)

GetCatalogItemWithResponse Get a catalog item

Retrieves a single catalog item by its ID.

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

Corresponds with GET /catalog-items/{catalogItemId} (the `GetCatalogItem` operationId).

func (*ClientWithResponses) GetServiceTypeWithResponse

func (c *ClientWithResponses) GetServiceTypeWithResponse(ctx context.Context, serviceTypeId ServiceTypeIdPath, reqEditors ...RequestEditorFn) (*GetServiceTypeResponse, error)

GetServiceTypeWithResponse Get a service type

Retrieves a single service type by its ID.

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

Corresponds with GET /service-types/{serviceTypeId} (the `GetServiceType` operationId).

func (*ClientWithResponses) ListCatalogItemInstancesWithResponse

func (c *ClientWithResponses) ListCatalogItemInstancesWithResponse(ctx context.Context, params *ListCatalogItemInstancesParams, reqEditors ...RequestEditorFn) (*ListCatalogItemInstancesResponse, error)

ListCatalogItemInstancesWithResponse List catalog item instances

Retrieves a paginated list of catalog item instances. Supports filtering by catalog item instance ID.

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

Corresponds with GET /catalog-item-instances (the `ListCatalogItemInstances` operationId).

func (*ClientWithResponses) ListCatalogItemsWithResponse

func (c *ClientWithResponses) ListCatalogItemsWithResponse(ctx context.Context, params *ListCatalogItemsParams, reqEditors ...RequestEditorFn) (*ListCatalogItemsResponse, error)

ListCatalogItemsWithResponse List catalog items

Retrieves a paginated list of catalog items. Supports filtering by service type.

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

Corresponds with GET /catalog-items (the `ListCatalogItems` operationId).

func (*ClientWithResponses) ListServiceTypesWithResponse

func (c *ClientWithResponses) ListServiceTypesWithResponse(ctx context.Context, params *ListServiceTypesParams, reqEditors ...RequestEditorFn) (*ListServiceTypesResponse, error)

ListServiceTypesWithResponse List service types

Retrieves a paginated list of service type definitions. Supports standard pagination using page tokens.

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

Corresponds with GET /service-types (the `ListServiceTypes` operationId).

func (*ClientWithResponses) RehydrateCatalogItemInstanceWithResponse

func (c *ClientWithResponses) RehydrateCatalogItemInstanceWithResponse(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*RehydrateCatalogItemInstanceResponse, error)

RehydrateCatalogItemInstanceWithResponse Rehydrate a catalog item instance

Triggers rehydration of an existing CatalogItemInstance. Generates a new resource ID and delegates to the Placement Manager.

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

Corresponds with POST /catalog-item-instances/{catalogItemInstanceId}:rehydrate (the `RehydrateCatalogItemInstance` operationId).

func (*ClientWithResponses) UpdateCatalogItemWithApplicationMergePatchPlusJSONBodyWithResponse

func (c *ClientWithResponses) UpdateCatalogItemWithApplicationMergePatchPlusJSONBodyWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, body UpdateCatalogItemApplicationMergePatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCatalogItemResponse, error)

UpdateCatalogItemWithApplicationMergePatchPlusJSONBodyWithResponse Update a catalog item

Updates specific fields of a catalog item using JSON Merge Patch (RFC 7396).

Note that api_version and resource structure (resource names, service types, requires_resources) are immutable after creation.

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

Corresponds with PATCH /catalog-items/{catalogItemId} (the `UpdateCatalogItem` operationId).

func (*ClientWithResponses) UpdateCatalogItemWithBodyWithResponse

func (c *ClientWithResponses) UpdateCatalogItemWithBodyWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCatalogItemResponse, error)

UpdateCatalogItemWithBodyWithResponse Update a catalog item

Updates specific fields of a catalog item using JSON Merge Patch (RFC 7396).

Note that api_version and resource structure (resource names, service types, requires_resources) are immutable after creation.

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 /catalog-items/{catalogItemId} (the `UpdateCatalogItem` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ListCatalogItemInstancesWithResponse List catalog item instances
	//
	// Retrieves a paginated list of catalog item instances.
	// Supports filtering by catalog item instance ID.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /catalog-item-instances (the `ListCatalogItemInstances` operationId).
	ListCatalogItemInstancesWithResponse(ctx context.Context, params *ListCatalogItemInstancesParams, reqEditors ...RequestEditorFn) (*ListCatalogItemInstancesResponse, error)

	// CreateCatalogItemInstanceWithBodyWithResponse Create a catalog item instance
	//
	// Creates a new catalog item instance.
	//
	// Supports user-specified IDs via the 'catalog_item_instance_id' query parameter for idempotency.
	//
	// 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 /catalog-item-instances (the `CreateCatalogItemInstance` operationId).
	CreateCatalogItemInstanceWithBodyWithResponse(ctx context.Context, params *CreateCatalogItemInstanceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCatalogItemInstanceResponse, error)

	// CreateCatalogItemInstanceWithResponse Create a catalog item instance
	//
	// Creates a new catalog item instance.
	//
	// Supports user-specified IDs via the 'catalog_item_instance_id' query parameter for idempotency.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /catalog-item-instances (the `CreateCatalogItemInstance` operationId).
	CreateCatalogItemInstanceWithResponse(ctx context.Context, params *CreateCatalogItemInstanceParams, body CreateCatalogItemInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCatalogItemInstanceResponse, error)

	// DeleteCatalogItemInstanceWithResponse Delete a catalog item instance
	//
	// Deletes a catalog item instance.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /catalog-item-instances/{catalogItemInstanceId} (the `DeleteCatalogItemInstance` operationId).
	DeleteCatalogItemInstanceWithResponse(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*DeleteCatalogItemInstanceResponse, error)

	// GetCatalogItemInstanceWithResponse Get a catalog item instance
	//
	// Retrieves a single catalog item instance by its ID.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /catalog-item-instances/{catalogItemInstanceId} (the `GetCatalogItemInstance` operationId).
	GetCatalogItemInstanceWithResponse(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*GetCatalogItemInstanceResponse, error)

	// RehydrateCatalogItemInstanceWithResponse Rehydrate a catalog item instance
	//
	// Triggers rehydration of an existing CatalogItemInstance.
	// Generates a new resource ID and delegates to the Placement Manager.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /catalog-item-instances/{catalogItemInstanceId}:rehydrate (the `RehydrateCatalogItemInstance` operationId).
	RehydrateCatalogItemInstanceWithResponse(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*RehydrateCatalogItemInstanceResponse, error)

	// ListCatalogItemsWithResponse List catalog items
	//
	// Retrieves a paginated list of catalog items.
	// Supports filtering by service type.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /catalog-items (the `ListCatalogItems` operationId).
	ListCatalogItemsWithResponse(ctx context.Context, params *ListCatalogItemsParams, reqEditors ...RequestEditorFn) (*ListCatalogItemsResponse, error)

	// CreateCatalogItemWithBodyWithResponse Create a catalog item
	//
	// Creates a new catalog item.
	//
	// Supports user-specified IDs via the 'id' query parameter for idempotency.
	//
	// 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 /catalog-items (the `CreateCatalogItem` operationId).
	CreateCatalogItemWithBodyWithResponse(ctx context.Context, params *CreateCatalogItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCatalogItemResponse, error)

	// CreateCatalogItemWithResponse Create a catalog item
	//
	// Creates a new catalog item.
	//
	// Supports user-specified IDs via the 'id' query parameter for idempotency.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /catalog-items (the `CreateCatalogItem` operationId).
	CreateCatalogItemWithResponse(ctx context.Context, params *CreateCatalogItemParams, body CreateCatalogItemJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCatalogItemResponse, error)

	// DeleteCatalogItemWithResponse Delete a catalog item
	//
	// Deletes a catalog item.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /catalog-items/{catalogItemId} (the `DeleteCatalogItem` operationId).
	DeleteCatalogItemWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, reqEditors ...RequestEditorFn) (*DeleteCatalogItemResponse, error)

	// GetCatalogItemWithResponse Get a catalog item
	//
	// Retrieves a single catalog item by its ID.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /catalog-items/{catalogItemId} (the `GetCatalogItem` operationId).
	GetCatalogItemWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, reqEditors ...RequestEditorFn) (*GetCatalogItemResponse, error)

	// UpdateCatalogItemWithBodyWithResponse Update a catalog item
	//
	// Updates specific fields of a catalog item using JSON Merge Patch (RFC 7396).
	//
	// Note that api_version and resource structure (resource names,
	// service types, requires_resources) are immutable after creation.
	//
	// 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 /catalog-items/{catalogItemId} (the `UpdateCatalogItem` operationId).
	UpdateCatalogItemWithBodyWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCatalogItemResponse, error)

	// UpdateCatalogItemWithApplicationMergePatchPlusJSONBodyWithResponse Update a catalog item
	//
	// Updates specific fields of a catalog item using JSON Merge Patch (RFC 7396).
	//
	// Note that api_version and resource structure (resource names,
	// service types, requires_resources) are immutable after creation.
	//
	// Takes a body of the `application/merge-patch+json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /catalog-items/{catalogItemId} (the `UpdateCatalogItem` operationId).
	UpdateCatalogItemWithApplicationMergePatchPlusJSONBodyWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, body UpdateCatalogItemApplicationMergePatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCatalogItemResponse, error)

	// ListServiceTypesWithResponse List service types
	//
	// Retrieves a paginated list of service type definitions.
	// Supports standard pagination using page tokens.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /service-types (the `ListServiceTypes` operationId).
	ListServiceTypesWithResponse(ctx context.Context, params *ListServiceTypesParams, reqEditors ...RequestEditorFn) (*ListServiceTypesResponse, error)

	// CreateServiceTypeWithBodyWithResponse Create a service type
	//
	// Creates a new service type definition.
	//
	// Supports user-specified IDs via the 'id' query parameter for idempotency.
	// If the ID is not provided, the server will generate one.
	//
	// 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 /service-types (the `CreateServiceType` operationId).
	CreateServiceTypeWithBodyWithResponse(ctx context.Context, params *CreateServiceTypeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceTypeResponse, error)

	// CreateServiceTypeWithResponse Create a service type
	//
	// Creates a new service type definition.
	//
	// Supports user-specified IDs via the 'id' query parameter for idempotency.
	// If the ID is not provided, the server will generate one.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /service-types (the `CreateServiceType` operationId).
	CreateServiceTypeWithResponse(ctx context.Context, params *CreateServiceTypeParams, body CreateServiceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceTypeResponse, error)

	// GetServiceTypeWithResponse Get a service type
	//
	// Retrieves a single service type by its ID.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /service-types/{serviceTypeId} (the `GetServiceType` operationId).
	GetServiceTypeWithResponse(ctx context.Context, serviceTypeId ServiceTypeIdPath, reqEditors ...RequestEditorFn) (*GetServiceTypeResponse, error)
}

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

type CreateCatalogItemInstanceResponse

type CreateCatalogItemInstanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *CatalogItemInstance
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *Error
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *PolicyRejected
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *AlreadyExists
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *ProviderError
	// JSON424 the response for an HTTP 424 `application/json` response
	JSON424 *PolicyDependency
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseCreateCatalogItemInstanceResponse

func ParseCreateCatalogItemInstanceResponse(rsp *http.Response) (*CreateCatalogItemInstanceResponse, error)

ParseCreateCatalogItemInstanceResponse parses an HTTP response from a CreateCatalogItemInstanceWithResponse call

func (CreateCatalogItemInstanceResponse) ContentType

func (r CreateCatalogItemInstanceResponse) ContentType() string

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

func (CreateCatalogItemInstanceResponse) GetBody

GetBody returns the raw response body bytes

func (CreateCatalogItemInstanceResponse) GetJSON201

func (r CreateCatalogItemInstanceResponse) GetJSON201() *CatalogItemInstance

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

func (CreateCatalogItemInstanceResponse) GetJSON400

func (r CreateCatalogItemInstanceResponse) GetJSON400() *Error

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateCatalogItemInstanceResponse) GetJSON401

func (r CreateCatalogItemInstanceResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateCatalogItemInstanceResponse) GetJSON403

func (r CreateCatalogItemInstanceResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateCatalogItemInstanceResponse) GetJSON406

func (r CreateCatalogItemInstanceResponse) GetJSON406() *PolicyRejected

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (CreateCatalogItemInstanceResponse) GetJSON409

func (r CreateCatalogItemInstanceResponse) GetJSON409() *AlreadyExists

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateCatalogItemInstanceResponse) GetJSON422

func (r CreateCatalogItemInstanceResponse) GetJSON422() *ProviderError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateCatalogItemInstanceResponse) GetJSON424

func (r CreateCatalogItemInstanceResponse) GetJSON424() *PolicyDependency

GetJSON424 returns the response for an HTTP 424 `application/json` response

func (CreateCatalogItemInstanceResponse) GetJSON500

func (r CreateCatalogItemInstanceResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateCatalogItemInstanceResponse) Status

Status returns HTTPResponse.Status

func (CreateCatalogItemInstanceResponse) StatusCode

func (r CreateCatalogItemInstanceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateCatalogItemResponse

type CreateCatalogItemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *CatalogItem
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *Error
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *AlreadyExists
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseCreateCatalogItemResponse

func ParseCreateCatalogItemResponse(rsp *http.Response) (*CreateCatalogItemResponse, error)

ParseCreateCatalogItemResponse parses an HTTP response from a CreateCatalogItemWithResponse call

func (CreateCatalogItemResponse) ContentType

func (r CreateCatalogItemResponse) ContentType() string

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

func (CreateCatalogItemResponse) GetBody

func (r CreateCatalogItemResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateCatalogItemResponse) GetJSON201

func (r CreateCatalogItemResponse) GetJSON201() *CatalogItem

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

func (CreateCatalogItemResponse) GetJSON400

func (r CreateCatalogItemResponse) GetJSON400() *Error

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateCatalogItemResponse) GetJSON401

func (r CreateCatalogItemResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateCatalogItemResponse) GetJSON403

func (r CreateCatalogItemResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateCatalogItemResponse) GetJSON409

func (r CreateCatalogItemResponse) GetJSON409() *AlreadyExists

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateCatalogItemResponse) GetJSON500

func (r CreateCatalogItemResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateCatalogItemResponse) Status

func (r CreateCatalogItemResponse) Status() string

Status returns HTTPResponse.Status

func (CreateCatalogItemResponse) StatusCode

func (r CreateCatalogItemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateServiceTypeResponse

type CreateServiceTypeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *ServiceType
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *Error
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *AlreadyExists
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseCreateServiceTypeResponse

func ParseCreateServiceTypeResponse(rsp *http.Response) (*CreateServiceTypeResponse, error)

ParseCreateServiceTypeResponse parses an HTTP response from a CreateServiceTypeWithResponse call

func (CreateServiceTypeResponse) ContentType

func (r CreateServiceTypeResponse) ContentType() string

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

func (CreateServiceTypeResponse) GetBody

func (r CreateServiceTypeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateServiceTypeResponse) GetJSON201

func (r CreateServiceTypeResponse) GetJSON201() *ServiceType

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

func (CreateServiceTypeResponse) GetJSON400

func (r CreateServiceTypeResponse) GetJSON400() *Error

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateServiceTypeResponse) GetJSON401

func (r CreateServiceTypeResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateServiceTypeResponse) GetJSON403

func (r CreateServiceTypeResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateServiceTypeResponse) GetJSON409

func (r CreateServiceTypeResponse) GetJSON409() *AlreadyExists

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateServiceTypeResponse) GetJSON500

func (r CreateServiceTypeResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateServiceTypeResponse) Status

func (r CreateServiceTypeResponse) Status() string

Status returns HTTPResponse.Status

func (CreateServiceTypeResponse) StatusCode

func (r CreateServiceTypeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteCatalogItemInstanceResponse

type DeleteCatalogItemInstanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseDeleteCatalogItemInstanceResponse

func ParseDeleteCatalogItemInstanceResponse(rsp *http.Response) (*DeleteCatalogItemInstanceResponse, error)

ParseDeleteCatalogItemInstanceResponse parses an HTTP response from a DeleteCatalogItemInstanceWithResponse call

func (DeleteCatalogItemInstanceResponse) ContentType

func (r DeleteCatalogItemInstanceResponse) ContentType() string

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

func (DeleteCatalogItemInstanceResponse) GetBody

GetBody returns the raw response body bytes

func (DeleteCatalogItemInstanceResponse) GetJSON401

func (r DeleteCatalogItemInstanceResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteCatalogItemInstanceResponse) GetJSON403

func (r DeleteCatalogItemInstanceResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteCatalogItemInstanceResponse) GetJSON404

func (r DeleteCatalogItemInstanceResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteCatalogItemInstanceResponse) GetJSON500

func (r DeleteCatalogItemInstanceResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DeleteCatalogItemInstanceResponse) Status

Status returns HTTPResponse.Status

func (DeleteCatalogItemInstanceResponse) StatusCode

func (r DeleteCatalogItemInstanceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteCatalogItemResponse

type DeleteCatalogItemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *HasInstances
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseDeleteCatalogItemResponse

func ParseDeleteCatalogItemResponse(rsp *http.Response) (*DeleteCatalogItemResponse, error)

ParseDeleteCatalogItemResponse parses an HTTP response from a DeleteCatalogItemWithResponse call

func (DeleteCatalogItemResponse) ContentType

func (r DeleteCatalogItemResponse) ContentType() string

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

func (DeleteCatalogItemResponse) GetBody

func (r DeleteCatalogItemResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteCatalogItemResponse) GetJSON401

func (r DeleteCatalogItemResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteCatalogItemResponse) GetJSON403

func (r DeleteCatalogItemResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteCatalogItemResponse) GetJSON404

func (r DeleteCatalogItemResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteCatalogItemResponse) GetJSON409

func (r DeleteCatalogItemResponse) GetJSON409() *HasInstances

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (DeleteCatalogItemResponse) GetJSON500

func (r DeleteCatalogItemResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DeleteCatalogItemResponse) Status

func (r DeleteCatalogItemResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteCatalogItemResponse) StatusCode

func (r DeleteCatalogItemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCatalogItemInstanceResponse

type GetCatalogItemInstanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CatalogItemInstance
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseGetCatalogItemInstanceResponse

func ParseGetCatalogItemInstanceResponse(rsp *http.Response) (*GetCatalogItemInstanceResponse, error)

ParseGetCatalogItemInstanceResponse parses an HTTP response from a GetCatalogItemInstanceWithResponse call

func (GetCatalogItemInstanceResponse) ContentType

func (r GetCatalogItemInstanceResponse) ContentType() string

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

func (GetCatalogItemInstanceResponse) GetBody

func (r GetCatalogItemInstanceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetCatalogItemInstanceResponse) GetJSON200

func (r GetCatalogItemInstanceResponse) GetJSON200() *CatalogItemInstance

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

func (GetCatalogItemInstanceResponse) GetJSON401

func (r GetCatalogItemInstanceResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetCatalogItemInstanceResponse) GetJSON403

func (r GetCatalogItemInstanceResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetCatalogItemInstanceResponse) GetJSON404

func (r GetCatalogItemInstanceResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetCatalogItemInstanceResponse) GetJSON500

func (r GetCatalogItemInstanceResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetCatalogItemInstanceResponse) Status

Status returns HTTPResponse.Status

func (GetCatalogItemInstanceResponse) StatusCode

func (r GetCatalogItemInstanceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCatalogItemResponse

type GetCatalogItemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CatalogItem
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseGetCatalogItemResponse

func ParseGetCatalogItemResponse(rsp *http.Response) (*GetCatalogItemResponse, error)

ParseGetCatalogItemResponse parses an HTTP response from a GetCatalogItemWithResponse call

func (GetCatalogItemResponse) ContentType

func (r GetCatalogItemResponse) ContentType() string

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

func (GetCatalogItemResponse) GetBody

func (r GetCatalogItemResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetCatalogItemResponse) GetJSON200

func (r GetCatalogItemResponse) GetJSON200() *CatalogItem

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

func (GetCatalogItemResponse) GetJSON401

func (r GetCatalogItemResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetCatalogItemResponse) GetJSON403

func (r GetCatalogItemResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetCatalogItemResponse) GetJSON404

func (r GetCatalogItemResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetCatalogItemResponse) GetJSON500

func (r GetCatalogItemResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetCatalogItemResponse) Status

func (r GetCatalogItemResponse) Status() string

Status returns HTTPResponse.Status

func (GetCatalogItemResponse) StatusCode

func (r GetCatalogItemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceTypeResponse

type GetServiceTypeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ServiceType
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseGetServiceTypeResponse

func ParseGetServiceTypeResponse(rsp *http.Response) (*GetServiceTypeResponse, error)

ParseGetServiceTypeResponse parses an HTTP response from a GetServiceTypeWithResponse call

func (GetServiceTypeResponse) ContentType

func (r GetServiceTypeResponse) ContentType() string

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

func (GetServiceTypeResponse) GetBody

func (r GetServiceTypeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetServiceTypeResponse) GetJSON200

func (r GetServiceTypeResponse) GetJSON200() *ServiceType

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

func (GetServiceTypeResponse) GetJSON401

func (r GetServiceTypeResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetServiceTypeResponse) GetJSON403

func (r GetServiceTypeResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetServiceTypeResponse) GetJSON404

func (r GetServiceTypeResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetServiceTypeResponse) GetJSON500

func (r GetServiceTypeResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetServiceTypeResponse) Status

func (r GetServiceTypeResponse) Status() string

Status returns HTTPResponse.Status

func (GetServiceTypeResponse) StatusCode

func (r GetServiceTypeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListCatalogItemInstancesResponse

type ListCatalogItemInstancesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CatalogItemInstanceList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseListCatalogItemInstancesResponse

func ParseListCatalogItemInstancesResponse(rsp *http.Response) (*ListCatalogItemInstancesResponse, error)

ParseListCatalogItemInstancesResponse parses an HTTP response from a ListCatalogItemInstancesWithResponse call

func (ListCatalogItemInstancesResponse) ContentType

func (r ListCatalogItemInstancesResponse) ContentType() string

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

func (ListCatalogItemInstancesResponse) GetBody

func (r ListCatalogItemInstancesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListCatalogItemInstancesResponse) GetJSON200

func (r ListCatalogItemInstancesResponse) GetJSON200() *CatalogItemInstanceList

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

func (ListCatalogItemInstancesResponse) GetJSON400

func (r ListCatalogItemInstancesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListCatalogItemInstancesResponse) GetJSON401

func (r ListCatalogItemInstancesResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListCatalogItemInstancesResponse) GetJSON403

func (r ListCatalogItemInstancesResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListCatalogItemInstancesResponse) GetJSON500

func (r ListCatalogItemInstancesResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListCatalogItemInstancesResponse) Status

Status returns HTTPResponse.Status

func (ListCatalogItemInstancesResponse) StatusCode

func (r ListCatalogItemInstancesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListCatalogItemsResponse

type ListCatalogItemsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CatalogItemList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseListCatalogItemsResponse

func ParseListCatalogItemsResponse(rsp *http.Response) (*ListCatalogItemsResponse, error)

ParseListCatalogItemsResponse parses an HTTP response from a ListCatalogItemsWithResponse call

func (ListCatalogItemsResponse) ContentType

func (r ListCatalogItemsResponse) ContentType() string

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

func (ListCatalogItemsResponse) GetBody

func (r ListCatalogItemsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListCatalogItemsResponse) GetJSON200

func (r ListCatalogItemsResponse) GetJSON200() *CatalogItemList

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

func (ListCatalogItemsResponse) GetJSON400

func (r ListCatalogItemsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListCatalogItemsResponse) GetJSON401

func (r ListCatalogItemsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListCatalogItemsResponse) GetJSON403

func (r ListCatalogItemsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListCatalogItemsResponse) GetJSON500

func (r ListCatalogItemsResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListCatalogItemsResponse) Status

func (r ListCatalogItemsResponse) Status() string

Status returns HTTPResponse.Status

func (ListCatalogItemsResponse) StatusCode

func (r ListCatalogItemsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListServiceTypesResponse

type ListServiceTypesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ServiceTypeList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseListServiceTypesResponse

func ParseListServiceTypesResponse(rsp *http.Response) (*ListServiceTypesResponse, error)

ParseListServiceTypesResponse parses an HTTP response from a ListServiceTypesWithResponse call

func (ListServiceTypesResponse) ContentType

func (r ListServiceTypesResponse) ContentType() string

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

func (ListServiceTypesResponse) GetBody

func (r ListServiceTypesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListServiceTypesResponse) GetJSON200

func (r ListServiceTypesResponse) GetJSON200() *ServiceTypeList

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

func (ListServiceTypesResponse) GetJSON400

func (r ListServiceTypesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListServiceTypesResponse) GetJSON401

func (r ListServiceTypesResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListServiceTypesResponse) GetJSON403

func (r ListServiceTypesResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListServiceTypesResponse) GetJSON500

func (r ListServiceTypesResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListServiceTypesResponse) Status

func (r ListServiceTypesResponse) Status() string

Status returns HTTPResponse.Status

func (ListServiceTypesResponse) StatusCode

func (r ListServiceTypesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RehydrateCatalogItemInstanceResponse

type RehydrateCatalogItemInstanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CatalogItemInstance
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *PolicyRejected
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *AlreadyExists
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *ProviderError
	// JSON424 the response for an HTTP 424 `application/json` response
	JSON424 *PolicyDependency
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseRehydrateCatalogItemInstanceResponse

func ParseRehydrateCatalogItemInstanceResponse(rsp *http.Response) (*RehydrateCatalogItemInstanceResponse, error)

ParseRehydrateCatalogItemInstanceResponse parses an HTTP response from a RehydrateCatalogItemInstanceWithResponse call

func (RehydrateCatalogItemInstanceResponse) ContentType

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

func (RehydrateCatalogItemInstanceResponse) GetBody

GetBody returns the raw response body bytes

func (RehydrateCatalogItemInstanceResponse) GetJSON200

func (r RehydrateCatalogItemInstanceResponse) GetJSON200() *CatalogItemInstance

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

func (RehydrateCatalogItemInstanceResponse) GetJSON404

func (r RehydrateCatalogItemInstanceResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (RehydrateCatalogItemInstanceResponse) GetJSON406

func (r RehydrateCatalogItemInstanceResponse) GetJSON406() *PolicyRejected

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (RehydrateCatalogItemInstanceResponse) GetJSON409

func (r RehydrateCatalogItemInstanceResponse) GetJSON409() *AlreadyExists

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (RehydrateCatalogItemInstanceResponse) GetJSON422

func (r RehydrateCatalogItemInstanceResponse) GetJSON422() *ProviderError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (RehydrateCatalogItemInstanceResponse) GetJSON424

func (r RehydrateCatalogItemInstanceResponse) GetJSON424() *PolicyDependency

GetJSON424 returns the response for an HTTP 424 `application/json` response

func (RehydrateCatalogItemInstanceResponse) GetJSON500

func (r RehydrateCatalogItemInstanceResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (RehydrateCatalogItemInstanceResponse) Status

Status returns HTTPResponse.Status

func (RehydrateCatalogItemInstanceResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type UpdateCatalogItemResponse

type UpdateCatalogItemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CatalogItem
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *Error
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseUpdateCatalogItemResponse

func ParseUpdateCatalogItemResponse(rsp *http.Response) (*UpdateCatalogItemResponse, error)

ParseUpdateCatalogItemResponse parses an HTTP response from a UpdateCatalogItemWithResponse call

func (UpdateCatalogItemResponse) ContentType

func (r UpdateCatalogItemResponse) ContentType() string

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

func (UpdateCatalogItemResponse) GetBody

func (r UpdateCatalogItemResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateCatalogItemResponse) GetJSON200

func (r UpdateCatalogItemResponse) GetJSON200() *CatalogItem

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

func (UpdateCatalogItemResponse) GetJSON400

func (r UpdateCatalogItemResponse) GetJSON400() *Error

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateCatalogItemResponse) GetJSON401

func (r UpdateCatalogItemResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateCatalogItemResponse) GetJSON403

func (r UpdateCatalogItemResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateCatalogItemResponse) GetJSON404

func (r UpdateCatalogItemResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateCatalogItemResponse) GetJSON500

func (r UpdateCatalogItemResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UpdateCatalogItemResponse) Status

func (r UpdateCatalogItemResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateCatalogItemResponse) StatusCode

func (r UpdateCatalogItemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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