Documentation ¶
Index ¶
- Constants
- type Client
- type PutCallbacksIDBadRequest
- type PutCallbacksIDBadRequestBody
- type PutCallbacksIDInternalServerError
- type PutCallbacksIDInternalServerErrorBody
- type PutCallbacksIDNoContent
- type PutCallbacksIDNotFound
- type PutCallbacksIDNotFoundBody
- type PutCallbacksIDParams
- func NewPutCallbacksIDParams() *PutCallbacksIDParams
- func NewPutCallbacksIDParamsWithContext(ctx context.Context) *PutCallbacksIDParams
- func NewPutCallbacksIDParamsWithHTTPClient(client *http.Client) *PutCallbacksIDParams
- func NewPutCallbacksIDParamsWithTimeout(timeout time.Duration) *PutCallbacksIDParams
- func (o *PutCallbacksIDParams) SetBody(body *models.CallbackResponse)
- func (o *PutCallbacksIDParams) SetContext(ctx context.Context)
- func (o *PutCallbacksIDParams) SetHTTPClient(client *http.Client)
- func (o *PutCallbacksIDParams) SetID(id string)
- func (o *PutCallbacksIDParams) SetTimeout(timeout time.Duration)
- func (o *PutCallbacksIDParams) WithBody(body *models.CallbackResponse) *PutCallbacksIDParams
- func (o *PutCallbacksIDParams) WithContext(ctx context.Context) *PutCallbacksIDParams
- func (o *PutCallbacksIDParams) WithHTTPClient(client *http.Client) *PutCallbacksIDParams
- func (o *PutCallbacksIDParams) WithID(id string) *PutCallbacksIDParams
- func (o *PutCallbacksIDParams) WithTimeout(timeout time.Duration) *PutCallbacksIDParams
- func (o *PutCallbacksIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutCallbacksIDReader
- type PutCallbacksIDUnauthorized
- type PutCallbacksIDUnauthorizedBody
Constants ¶
const ( // PutCallbacksIDBadRequestBodyTypeBadRequest captures enum value "bad_request" PutCallbacksIDBadRequestBodyTypeBadRequest string = "bad_request" PutCallbacksIDBadRequestBodyTypeUnauthorized string = "unauthorized" // PutCallbacksIDBadRequestBodyTypeNotFound captures enum value "not_found" PutCallbacksIDBadRequestBodyTypeNotFound string = "not_found" // PutCallbacksIDBadRequestBodyTypeInternal captures enum value "internal" PutCallbacksIDBadRequestBodyTypeInternal string = "internal" // PutCallbacksIDBadRequestBodyTypeInvalidGrant captures enum value "invalid_grant" PutCallbacksIDBadRequestBodyTypeInvalidGrant string = "invalid_grant" // PutCallbacksIDBadRequestBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PutCallbacksIDBadRequestBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // PutCallbacksIDInternalServerErrorBodyTypeBadRequest captures enum value "bad_request" PutCallbacksIDInternalServerErrorBodyTypeBadRequest string = "bad_request" PutCallbacksIDInternalServerErrorBodyTypeUnauthorized string = "unauthorized" // PutCallbacksIDInternalServerErrorBodyTypeNotFound captures enum value "not_found" PutCallbacksIDInternalServerErrorBodyTypeNotFound string = "not_found" // PutCallbacksIDInternalServerErrorBodyTypeInternal captures enum value "internal" PutCallbacksIDInternalServerErrorBodyTypeInternal string = "internal" // PutCallbacksIDInternalServerErrorBodyTypeInvalidGrant captures enum value "invalid_grant" PutCallbacksIDInternalServerErrorBodyTypeInvalidGrant string = "invalid_grant" // PutCallbacksIDInternalServerErrorBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PutCallbacksIDInternalServerErrorBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // PutCallbacksIDNotFoundBodyTypeBadRequest captures enum value "bad_request" PutCallbacksIDNotFoundBodyTypeBadRequest string = "bad_request" PutCallbacksIDNotFoundBodyTypeUnauthorized string = "unauthorized" // PutCallbacksIDNotFoundBodyTypeNotFound captures enum value "not_found" PutCallbacksIDNotFoundBodyTypeNotFound string = "not_found" // PutCallbacksIDNotFoundBodyTypeInternal captures enum value "internal" PutCallbacksIDNotFoundBodyTypeInternal string = "internal" // PutCallbacksIDNotFoundBodyTypeInvalidGrant captures enum value "invalid_grant" PutCallbacksIDNotFoundBodyTypeInvalidGrant string = "invalid_grant" // PutCallbacksIDNotFoundBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PutCallbacksIDNotFoundBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( string = "bad_request" PutCallbacksIDUnauthorizedBodyTypeUnauthorized string = "unauthorized" PutCallbacksIDUnauthorizedBodyTypeNotFound string = "not_found" PutCallbacksIDUnauthorizedBodyTypeInternal string = "internal" PutCallbacksIDUnauthorizedBodyTypeInvalidGrant string = "invalid_grant" PutCallbacksIDUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )PutCallbacksIDUnauthorizedBodyTypeBadRequest
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for callback API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new callback API client.
func (*Client) PutCallbacksID ¶
func (a *Client) PutCallbacksID(params *PutCallbacksIDParams, authInfo runtime.ClientAuthInfoWriter) (*PutCallbacksIDNoContent, error)
PutCallbacksID completes request
A provider can call this endpoint to complete a request that had been acknowledged but not completed during the initial request as a part of a provision, plan change, or deprovision flow of a resource or credential.
In the event that the Connector API can't be reached *or* an unexpected response (e.g. `500 Internal Server Error`) is returned, the provider should attempt to invoke the callback in the future to the best of their abilities.
The behaviour of this route matches the "Repeatable Actions" specification of the API implemented by providers. If the callback has already been received with the payload matching the previous request a `204 No Content` response will be returned. However, if the payloads do not match the route will return a `409 Conflict` error response.
If the provider is responding to a request to provision credentials, then a hash of credentials must be provided. Otherwise, the credentials property must not be provided.
In the case of a credential provisioning callback, multiple key-value pairs that represent this set of Credentials. However, if a url form exists (e.g. `postgres://user:pw@host:5432/db`), please provide the credentials in that form.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type PutCallbacksIDBadRequest ¶
type PutCallbacksIDBadRequest struct {
Payload PutCallbacksIDBadRequestBody
}
PutCallbacksIDBadRequest handles this case with default header values.
Request denied due to invalid request body, path, or headers.
func NewPutCallbacksIDBadRequest ¶
func NewPutCallbacksIDBadRequest() *PutCallbacksIDBadRequest
NewPutCallbacksIDBadRequest creates a PutCallbacksIDBadRequest with default headers values
func (*PutCallbacksIDBadRequest) Error ¶
func (o *PutCallbacksIDBadRequest) Error() string
type PutCallbacksIDBadRequestBody ¶
type PutCallbacksIDBadRequestBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PutCallbacksIDBadRequestBody put callbacks ID bad request body swagger:model PutCallbacksIDBadRequestBody
type PutCallbacksIDInternalServerError ¶
type PutCallbacksIDInternalServerError struct {
Payload PutCallbacksIDInternalServerErrorBody
}
PutCallbacksIDInternalServerError handles this case with default header values.
Request failed due to an internal server error.
func NewPutCallbacksIDInternalServerError ¶
func NewPutCallbacksIDInternalServerError() *PutCallbacksIDInternalServerError
NewPutCallbacksIDInternalServerError creates a PutCallbacksIDInternalServerError with default headers values
func (*PutCallbacksIDInternalServerError) Error ¶
func (o *PutCallbacksIDInternalServerError) Error() string
type PutCallbacksIDInternalServerErrorBody ¶
type PutCallbacksIDInternalServerErrorBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PutCallbacksIDInternalServerErrorBody put callbacks ID internal server error body swagger:model PutCallbacksIDInternalServerErrorBody
type PutCallbacksIDNoContent ¶
type PutCallbacksIDNoContent struct { }
PutCallbacksIDNoContent handles this case with default header values.
The callback payload has been accepted, Manifold is no longer waiting for the callback to be received to continue on with the current operation.
func NewPutCallbacksIDNoContent ¶
func NewPutCallbacksIDNoContent() *PutCallbacksIDNoContent
NewPutCallbacksIDNoContent creates a PutCallbacksIDNoContent with default headers values
func (*PutCallbacksIDNoContent) Error ¶
func (o *PutCallbacksIDNoContent) Error() string
type PutCallbacksIDNotFound ¶
type PutCallbacksIDNotFound struct {
Payload PutCallbacksIDNotFoundBody
}
PutCallbacksIDNotFound handles this case with default header values.
Request denied as the requested resource does not exist.
func NewPutCallbacksIDNotFound ¶
func NewPutCallbacksIDNotFound() *PutCallbacksIDNotFound
NewPutCallbacksIDNotFound creates a PutCallbacksIDNotFound with default headers values
func (*PutCallbacksIDNotFound) Error ¶
func (o *PutCallbacksIDNotFound) Error() string
type PutCallbacksIDNotFoundBody ¶
type PutCallbacksIDNotFoundBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PutCallbacksIDNotFoundBody put callbacks ID not found body swagger:model PutCallbacksIDNotFoundBody
type PutCallbacksIDParams ¶
type PutCallbacksIDParams struct { /*Body Response to Callback sent by the Provider */ Body *models.CallbackResponse /*ID ID of a Callback, stored as a base32 encoded 18 byte identifier. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PutCallbacksIDParams contains all the parameters to send to the API endpoint for the put callbacks ID operation typically these are written to a http.Request
func NewPutCallbacksIDParams ¶
func NewPutCallbacksIDParams() *PutCallbacksIDParams
NewPutCallbacksIDParams creates a new PutCallbacksIDParams object with the default values initialized.
func NewPutCallbacksIDParamsWithContext ¶
func NewPutCallbacksIDParamsWithContext(ctx context.Context) *PutCallbacksIDParams
NewPutCallbacksIDParamsWithContext creates a new PutCallbacksIDParams object with the default values initialized, and the ability to set a context for a request
func NewPutCallbacksIDParamsWithHTTPClient ¶
func NewPutCallbacksIDParamsWithHTTPClient(client *http.Client) *PutCallbacksIDParams
NewPutCallbacksIDParamsWithHTTPClient creates a new PutCallbacksIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPutCallbacksIDParamsWithTimeout ¶
func NewPutCallbacksIDParamsWithTimeout(timeout time.Duration) *PutCallbacksIDParams
NewPutCallbacksIDParamsWithTimeout creates a new PutCallbacksIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*PutCallbacksIDParams) SetBody ¶
func (o *PutCallbacksIDParams) SetBody(body *models.CallbackResponse)
SetBody adds the body to the put callbacks ID params
func (*PutCallbacksIDParams) SetContext ¶
func (o *PutCallbacksIDParams) SetContext(ctx context.Context)
SetContext adds the context to the put callbacks ID params
func (*PutCallbacksIDParams) SetHTTPClient ¶
func (o *PutCallbacksIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put callbacks ID params
func (*PutCallbacksIDParams) SetID ¶
func (o *PutCallbacksIDParams) SetID(id string)
SetID adds the id to the put callbacks ID params
func (*PutCallbacksIDParams) SetTimeout ¶
func (o *PutCallbacksIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put callbacks ID params
func (*PutCallbacksIDParams) WithBody ¶
func (o *PutCallbacksIDParams) WithBody(body *models.CallbackResponse) *PutCallbacksIDParams
WithBody adds the body to the put callbacks ID params
func (*PutCallbacksIDParams) WithContext ¶
func (o *PutCallbacksIDParams) WithContext(ctx context.Context) *PutCallbacksIDParams
WithContext adds the context to the put callbacks ID params
func (*PutCallbacksIDParams) WithHTTPClient ¶
func (o *PutCallbacksIDParams) WithHTTPClient(client *http.Client) *PutCallbacksIDParams
WithHTTPClient adds the HTTPClient to the put callbacks ID params
func (*PutCallbacksIDParams) WithID ¶
func (o *PutCallbacksIDParams) WithID(id string) *PutCallbacksIDParams
WithID adds the id to the put callbacks ID params
func (*PutCallbacksIDParams) WithTimeout ¶
func (o *PutCallbacksIDParams) WithTimeout(timeout time.Duration) *PutCallbacksIDParams
WithTimeout adds the timeout to the put callbacks ID params
func (*PutCallbacksIDParams) WriteToRequest ¶
func (o *PutCallbacksIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutCallbacksIDReader ¶
type PutCallbacksIDReader struct {
// contains filtered or unexported fields
}
PutCallbacksIDReader is a Reader for the PutCallbacksID structure.
func (*PutCallbacksIDReader) ReadResponse ¶
func (o *PutCallbacksIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutCallbacksIDUnauthorized ¶
type PutCallbacksIDUnauthorized struct {
}PutCallbacksIDUnauthorized handles this case with default header values.
Request denied as the provided credentials are no longer valid.
func NewPutCallbacksIDUnauthorized ¶
func NewPutCallbacksIDUnauthorized() *PutCallbacksIDUnauthorized
NewPutCallbacksIDUnauthorized creates a PutCallbacksIDUnauthorized with default headers values
func (*PutCallbacksIDUnauthorized) Error ¶
func (o *PutCallbacksIDUnauthorized) Error() string
type PutCallbacksIDUnauthorizedBody ¶
type PutCallbacksIDUnauthorizedBody struct { // Required: true Message []string `json:"message"` // Required: true Type *string `json:"type"` }
PutCallbacksIDUnauthorizedBody put callbacks ID unauthorized body swagger:model PutCallbacksIDUnauthorizedBody