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 ¶
- func NewCreateCatalogItemInstanceRequest(server string, params *CreateCatalogItemInstanceParams, ...) (*http.Request, error)
- func NewCreateCatalogItemInstanceRequestWithBody(server string, params *CreateCatalogItemInstanceParams, contentType string, ...) (*http.Request, error)
- func NewCreateCatalogItemRequest(server string, params *CreateCatalogItemParams, ...) (*http.Request, error)
- func NewCreateCatalogItemRequestWithBody(server string, params *CreateCatalogItemParams, contentType string, ...) (*http.Request, error)
- func NewCreateServiceTypeRequest(server string, params *CreateServiceTypeParams, ...) (*http.Request, error)
- func NewCreateServiceTypeRequestWithBody(server string, params *CreateServiceTypeParams, contentType string, ...) (*http.Request, error)
- func NewDeleteCatalogItemInstanceRequest(server string, catalogItemInstanceId CatalogItemInstanceIdPath) (*http.Request, error)
- func NewDeleteCatalogItemRequest(server string, catalogItemId CatalogItemIdPath) (*http.Request, error)
- func NewGetCatalogItemInstanceRequest(server string, catalogItemInstanceId CatalogItemInstanceIdPath) (*http.Request, error)
- func NewGetCatalogItemRequest(server string, catalogItemId CatalogItemIdPath) (*http.Request, error)
- func NewGetHealthRequest(server string) (*http.Request, error)
- func NewGetServiceTypeRequest(server string, serviceTypeId ServiceTypeIdPath) (*http.Request, error)
- func NewListCatalogItemInstancesRequest(server string, params *ListCatalogItemInstancesParams) (*http.Request, error)
- func NewListCatalogItemsRequest(server string, params *ListCatalogItemsParams) (*http.Request, error)
- func NewListServiceTypesRequest(server string, params *ListServiceTypesParams) (*http.Request, error)
- func NewUpdateCatalogItemRequestWithApplicationMergePatchPlusJSONBody(server string, catalogItemId CatalogItemIdPath, ...) (*http.Request, error)
- func NewUpdateCatalogItemRequestWithBody(server string, catalogItemId CatalogItemIdPath, contentType string, ...) (*http.Request, error)
- type Client
- func (c *Client) CreateCatalogItem(ctx context.Context, params *CreateCatalogItemParams, ...) (*http.Response, error)
- func (c *Client) CreateCatalogItemInstance(ctx context.Context, params *CreateCatalogItemInstanceParams, ...) (*http.Response, error)
- func (c *Client) CreateCatalogItemInstanceWithBody(ctx context.Context, params *CreateCatalogItemInstanceParams, ...) (*http.Response, error)
- func (c *Client) CreateCatalogItemWithBody(ctx context.Context, params *CreateCatalogItemParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateServiceType(ctx context.Context, params *CreateServiceTypeParams, ...) (*http.Response, error)
- func (c *Client) CreateServiceTypeWithBody(ctx context.Context, params *CreateServiceTypeParams, contentType string, ...) (*http.Response, error)
- func (c *Client) DeleteCatalogItem(ctx context.Context, catalogItemId CatalogItemIdPath, ...) (*http.Response, error)
- func (c *Client) DeleteCatalogItemInstance(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, ...) (*http.Response, error)
- func (c *Client) GetCatalogItem(ctx context.Context, catalogItemId CatalogItemIdPath, ...) (*http.Response, error)
- func (c *Client) GetCatalogItemInstance(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, ...) (*http.Response, error)
- func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetServiceType(ctx context.Context, serviceTypeId ServiceTypeIdPath, ...) (*http.Response, error)
- func (c *Client) ListCatalogItemInstances(ctx context.Context, params *ListCatalogItemInstancesParams, ...) (*http.Response, error)
- func (c *Client) ListCatalogItems(ctx context.Context, params *ListCatalogItemsParams, ...) (*http.Response, error)
- func (c *Client) ListServiceTypes(ctx context.Context, params *ListServiceTypesParams, ...) (*http.Response, error)
- func (c *Client) UpdateCatalogItemWithApplicationMergePatchPlusJSONBody(ctx context.Context, catalogItemId CatalogItemIdPath, ...) (*http.Response, error)
- func (c *Client) UpdateCatalogItemWithBody(ctx context.Context, catalogItemId CatalogItemIdPath, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateCatalogItemInstanceWithBodyWithResponse(ctx context.Context, params *CreateCatalogItemInstanceParams, ...) (*CreateCatalogItemInstanceResponse, error)
- func (c *ClientWithResponses) CreateCatalogItemInstanceWithResponse(ctx context.Context, params *CreateCatalogItemInstanceParams, ...) (*CreateCatalogItemInstanceResponse, error)
- func (c *ClientWithResponses) CreateCatalogItemWithBodyWithResponse(ctx context.Context, params *CreateCatalogItemParams, contentType string, ...) (*CreateCatalogItemResponse, error)
- func (c *ClientWithResponses) CreateCatalogItemWithResponse(ctx context.Context, params *CreateCatalogItemParams, ...) (*CreateCatalogItemResponse, error)
- func (c *ClientWithResponses) CreateServiceTypeWithBodyWithResponse(ctx context.Context, params *CreateServiceTypeParams, contentType string, ...) (*CreateServiceTypeResponse, error)
- func (c *ClientWithResponses) CreateServiceTypeWithResponse(ctx context.Context, params *CreateServiceTypeParams, ...) (*CreateServiceTypeResponse, error)
- func (c *ClientWithResponses) DeleteCatalogItemInstanceWithResponse(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, ...) (*DeleteCatalogItemInstanceResponse, error)
- func (c *ClientWithResponses) DeleteCatalogItemWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, ...) (*DeleteCatalogItemResponse, error)
- func (c *ClientWithResponses) GetCatalogItemInstanceWithResponse(ctx context.Context, catalogItemInstanceId CatalogItemInstanceIdPath, ...) (*GetCatalogItemInstanceResponse, error)
- func (c *ClientWithResponses) GetCatalogItemWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, ...) (*GetCatalogItemResponse, error)
- func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
- func (c *ClientWithResponses) GetServiceTypeWithResponse(ctx context.Context, serviceTypeId ServiceTypeIdPath, ...) (*GetServiceTypeResponse, error)
- func (c *ClientWithResponses) ListCatalogItemInstancesWithResponse(ctx context.Context, params *ListCatalogItemInstancesParams, ...) (*ListCatalogItemInstancesResponse, error)
- func (c *ClientWithResponses) ListCatalogItemsWithResponse(ctx context.Context, params *ListCatalogItemsParams, ...) (*ListCatalogItemsResponse, error)
- func (c *ClientWithResponses) ListServiceTypesWithResponse(ctx context.Context, params *ListServiceTypesParams, ...) (*ListServiceTypesResponse, error)
- func (c *ClientWithResponses) UpdateCatalogItemWithApplicationMergePatchPlusJSONBodyWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, ...) (*UpdateCatalogItemResponse, error)
- func (c *ClientWithResponses) UpdateCatalogItemWithBodyWithResponse(ctx context.Context, catalogItemId CatalogItemIdPath, contentType string, ...) (*UpdateCatalogItemResponse, error)
- type ClientWithResponsesInterface
- type CreateCatalogItemInstanceResponse
- type CreateCatalogItemResponse
- type CreateServiceTypeResponse
- type DeleteCatalogItemInstanceResponse
- type DeleteCatalogItemResponse
- type GetCatalogItemInstanceResponse
- type GetCatalogItemResponse
- type GetHealthResponse
- type GetServiceTypeResponse
- type HttpRequestDoer
- type ListCatalogItemInstancesResponse
- type ListCatalogItemsResponse
- type ListServiceTypesResponse
- type RequestEditorFn
- type UpdateCatalogItemResponse
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 ¶
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
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 (*Client) CreateCatalogItemInstance ¶
func (*Client) CreateCatalogItemInstanceWithBody ¶
func (*Client) CreateCatalogItemWithBody ¶
func (*Client) CreateServiceType ¶
func (*Client) CreateServiceTypeWithBody ¶
func (*Client) DeleteCatalogItem ¶
func (*Client) DeleteCatalogItemInstance ¶
func (*Client) GetCatalogItem ¶
func (*Client) GetCatalogItemInstance ¶
func (*Client) GetServiceType ¶
func (*Client) ListCatalogItemInstances ¶
func (*Client) ListCatalogItems ¶
func (*Client) ListServiceTypes ¶
func (*Client) UpdateCatalogItemWithApplicationMergePatchPlusJSONBody ¶
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 ¶
ClientOption allows setting custom parameters during construction
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 ¶
func (r CreateCatalogItemInstanceResponse) Status() string
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 ¶
func (r DeleteCatalogItemInstanceResponse) Status() string
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 ¶
func (r GetCatalogItemInstanceResponse) Status() string
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 ¶
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 ¶
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 ¶
func (r ListCatalogItemInstancesResponse) Status() string
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 ¶
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