client

package
v0.0.0-...-d6e3cef Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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.5.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 generates requests for CreateCatalogItemInstance with any type of body

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 generates requests for CreateCatalogItem with any type of body

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 generates requests for CreateServiceType with any type of body

func NewDeleteCatalogItemInstanceRequest

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

NewDeleteCatalogItemInstanceRequest generates requests for DeleteCatalogItemInstance

func NewDeleteCatalogItemRequest

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

NewDeleteCatalogItemRequest generates requests for DeleteCatalogItem

func NewGetCatalogItemInstanceRequest

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

NewGetCatalogItemInstanceRequest generates requests for GetCatalogItemInstance

func NewGetCatalogItemRequest

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

NewGetCatalogItemRequest generates requests for GetCatalogItem

func NewGetHealthRequest

func NewGetHealthRequest(server string) (*http.Request, error)

NewGetHealthRequest generates requests for GetHealth

func NewGetServiceTypeRequest

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

NewGetServiceTypeRequest generates requests for GetServiceType

func NewListCatalogItemInstancesRequest

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

NewListCatalogItemInstancesRequest generates requests for ListCatalogItemInstances

func NewListCatalogItemsRequest

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

NewListCatalogItemsRequest generates requests for ListCatalogItems

func NewListServiceTypesRequest

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

NewListServiceTypesRequest generates requests for ListServiceTypes

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 generates requests for UpdateCatalogItem with any type of body

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)

func (*Client) CreateCatalogItemInstance

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

func (*Client) CreateCatalogItemInstanceWithBody

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

func (*Client) CreateCatalogItemWithBody

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

func (*Client) CreateServiceType

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

func (*Client) CreateServiceTypeWithBody

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

func (*Client) DeleteCatalogItem

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

func (*Client) DeleteCatalogItemInstance

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

func (*Client) GetCatalogItem

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

func (*Client) GetCatalogItemInstance

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

func (*Client) GetHealth

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

func (*Client) GetServiceType

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

func (*Client) ListCatalogItemInstances

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

func (*Client) ListCatalogItems

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

func (*Client) ListServiceTypes

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

func (*Client) UpdateCatalogItemWithApplicationMergePatchPlusJSONBody

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

func (*Client) UpdateCatalogItemWithBody

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

type ClientInterface

type ClientInterface interface {
	// ListCatalogItemInstances request
	ListCatalogItemInstances(ctx context.Context, params *ListCatalogItemInstancesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCatalogItemInstanceWithBody request with any body
	CreateCatalogItemInstanceWithBody(ctx context.Context, params *CreateCatalogItemInstanceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// DeleteCatalogItemInstance request
	DeleteCatalogItemInstance(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCatalogItemInstance request
	GetCatalogItemInstance(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListCatalogItems request
	ListCatalogItems(ctx context.Context, params *ListCatalogItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCatalogItemWithBody request with any body
	CreateCatalogItemWithBody(ctx context.Context, params *CreateCatalogItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// DeleteCatalogItem request
	DeleteCatalogItem(ctx context.Context, catalogItemId CatalogItemIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCatalogItem request
	GetCatalogItem(ctx context.Context, catalogItemId CatalogItemIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateCatalogItemWithBody request with any body
	UpdateCatalogItemWithBody(ctx context.Context, catalogItemId CatalogItemIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// GetHealth request
	GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListServiceTypes request
	ListServiceTypes(ctx context.Context, params *ListServiceTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateServiceTypeWithBody request with any body
	CreateServiceTypeWithBody(ctx context.Context, params *CreateServiceTypeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// GetServiceType request
	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 request with arbitrary body returning *CreateCatalogItemInstanceResponse

func (*ClientWithResponses) CreateCatalogItemInstanceWithResponse

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

func (*ClientWithResponses) CreateCatalogItemWithBodyWithResponse

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

CreateCatalogItemWithBodyWithResponse request with arbitrary body returning *CreateCatalogItemResponse

func (*ClientWithResponses) CreateCatalogItemWithResponse

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

func (*ClientWithResponses) CreateServiceTypeWithBodyWithResponse

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

CreateServiceTypeWithBodyWithResponse request with arbitrary body returning *CreateServiceTypeResponse

func (*ClientWithResponses) CreateServiceTypeWithResponse

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

func (*ClientWithResponses) DeleteCatalogItemInstanceWithResponse

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

DeleteCatalogItemInstanceWithResponse request returning *DeleteCatalogItemInstanceResponse

func (*ClientWithResponses) DeleteCatalogItemWithResponse

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

DeleteCatalogItemWithResponse request returning *DeleteCatalogItemResponse

func (*ClientWithResponses) GetCatalogItemInstanceWithResponse

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

GetCatalogItemInstanceWithResponse request returning *GetCatalogItemInstanceResponse

func (*ClientWithResponses) GetCatalogItemWithResponse

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

GetCatalogItemWithResponse request returning *GetCatalogItemResponse

func (*ClientWithResponses) GetHealthWithResponse

func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

GetHealthWithResponse request returning *GetHealthResponse

func (*ClientWithResponses) GetServiceTypeWithResponse

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

GetServiceTypeWithResponse request returning *GetServiceTypeResponse

func (*ClientWithResponses) ListCatalogItemInstancesWithResponse

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

ListCatalogItemInstancesWithResponse request returning *ListCatalogItemInstancesResponse

func (*ClientWithResponses) ListCatalogItemsWithResponse

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

ListCatalogItemsWithResponse request returning *ListCatalogItemsResponse

func (*ClientWithResponses) ListServiceTypesWithResponse

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

ListServiceTypesWithResponse request returning *ListServiceTypesResponse

func (*ClientWithResponses) UpdateCatalogItemWithApplicationMergePatchPlusJSONBodyWithResponse

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

func (*ClientWithResponses) UpdateCatalogItemWithBodyWithResponse

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

UpdateCatalogItemWithBodyWithResponse request with arbitrary body returning *UpdateCatalogItemResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListCatalogItemInstancesWithResponse request
	ListCatalogItemInstancesWithResponse(ctx context.Context, params *ListCatalogItemInstancesParams, reqEditors ...RequestEditorFn) (*ListCatalogItemInstancesResponse, error)

	// CreateCatalogItemInstanceWithBodyWithResponse request with any body
	CreateCatalogItemInstanceWithBodyWithResponse(ctx context.Context, params *CreateCatalogItemInstanceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCatalogItemInstanceResponse, error)

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

	// DeleteCatalogItemInstanceWithResponse request
	DeleteCatalogItemInstanceWithResponse(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*DeleteCatalogItemInstanceResponse, error)

	// GetCatalogItemInstanceWithResponse request
	GetCatalogItemInstanceWithResponse(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, reqEditors ...RequestEditorFn) (*GetCatalogItemInstanceResponse, error)

	// ListCatalogItemsWithResponse request
	ListCatalogItemsWithResponse(ctx context.Context, params *ListCatalogItemsParams, reqEditors ...RequestEditorFn) (*ListCatalogItemsResponse, error)

	// CreateCatalogItemWithBodyWithResponse request with any body
	CreateCatalogItemWithBodyWithResponse(ctx context.Context, params *CreateCatalogItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCatalogItemResponse, error)

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

	// DeleteCatalogItemWithResponse request
	DeleteCatalogItemWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, reqEditors ...RequestEditorFn) (*DeleteCatalogItemResponse, error)

	// GetCatalogItemWithResponse request
	GetCatalogItemWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, reqEditors ...RequestEditorFn) (*GetCatalogItemResponse, error)

	// UpdateCatalogItemWithBodyWithResponse request with any body
	UpdateCatalogItemWithBodyWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCatalogItemResponse, error)

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

	// GetHealthWithResponse request
	GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

	// ListServiceTypesWithResponse request
	ListServiceTypesWithResponse(ctx context.Context, params *ListServiceTypesParams, reqEditors ...RequestEditorFn) (*ListServiceTypesResponse, error)

	// CreateServiceTypeWithBodyWithResponse request with any body
	CreateServiceTypeWithBodyWithResponse(ctx context.Context, params *CreateServiceTypeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceTypeResponse, error)

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

	// GetServiceTypeWithResponse request
	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      *CatalogItemInstance
	JSON400      *Error
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON409      *AlreadyExists
	JSON500      *InternalServerError
}

func ParseCreateCatalogItemInstanceResponse

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

ParseCreateCatalogItemInstanceResponse parses an HTTP response from a CreateCatalogItemInstanceWithResponse call

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      *CatalogItem
	JSON400      *Error
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON409      *AlreadyExists
	JSON500      *InternalServerError
}

func ParseCreateCatalogItemResponse

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

ParseCreateCatalogItemResponse parses an HTTP response from a CreateCatalogItemWithResponse call

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      *ServiceType
	JSON400      *Error
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON409      *AlreadyExists
	JSON500      *InternalServerError
}

func ParseCreateServiceTypeResponse

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

ParseCreateServiceTypeResponse parses an HTTP response from a CreateServiceTypeWithResponse call

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      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseDeleteCatalogItemInstanceResponse

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

ParseDeleteCatalogItemInstanceResponse parses an HTTP response from a DeleteCatalogItemInstanceWithResponse call

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      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseDeleteCatalogItemResponse

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

ParseDeleteCatalogItemResponse parses an HTTP response from a DeleteCatalogItemWithResponse call

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      *CatalogItemInstance
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseGetCatalogItemInstanceResponse

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

ParseGetCatalogItemInstanceResponse parses an HTTP response from a GetCatalogItemInstanceWithResponse call

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      *CatalogItem
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseGetCatalogItemResponse

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

ParseGetCatalogItemResponse parses an HTTP response from a GetCatalogItemWithResponse call

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 GetHealthResponse

type GetHealthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Health
}

func ParseGetHealthResponse

func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)

ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call

func (GetHealthResponse) Status

func (r GetHealthResponse) Status() string

Status returns HTTPResponse.Status

func (GetHealthResponse) StatusCode

func (r GetHealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceTypeResponse

type GetServiceTypeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ServiceType
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseGetServiceTypeResponse

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

ParseGetServiceTypeResponse parses an HTTP response from a GetServiceTypeWithResponse call

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      *CatalogItemInstanceList
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON500      *InternalServerError
}

func ParseListCatalogItemInstancesResponse

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

ParseListCatalogItemInstancesResponse parses an HTTP response from a ListCatalogItemInstancesWithResponse call

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      *CatalogItemList
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON500      *InternalServerError
}

func ParseListCatalogItemsResponse

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

ParseListCatalogItemsResponse parses an HTTP response from a ListCatalogItemsWithResponse call

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      *ServiceTypeList
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON500      *InternalServerError
}

func ParseListServiceTypesResponse

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

ParseListServiceTypesResponse parses an HTTP response from a ListServiceTypesWithResponse call

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 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      *CatalogItem
	JSON400      *Error
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON500      *InternalServerError
}

func ParseUpdateCatalogItemResponse

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

ParseUpdateCatalogItemResponse parses an HTTP response from a UpdateCatalogItemWithResponse call

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