callback

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// PutCallbacksIDBadRequestBodyTypeBadRequest captures enum value "bad_request"
	PutCallbacksIDBadRequestBodyTypeBadRequest string = "bad_request"
	// PutCallbacksIDBadRequestBodyTypeUnauthorized captures enum value "unauthorized"
	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"
)
View Source
const (
	// PutCallbacksIDInternalServerErrorBodyTypeBadRequest captures enum value "bad_request"
	PutCallbacksIDInternalServerErrorBodyTypeBadRequest string = "bad_request"
	// PutCallbacksIDInternalServerErrorBodyTypeUnauthorized captures enum value "unauthorized"
	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"
)
View Source
const (
	// PutCallbacksIDNotFoundBodyTypeBadRequest captures enum value "bad_request"
	PutCallbacksIDNotFoundBodyTypeBadRequest string = "bad_request"
	// PutCallbacksIDNotFoundBodyTypeUnauthorized captures enum value "unauthorized"
	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"
)
View Source
const (
	// PutCallbacksIDUnauthorizedBodyTypeBadRequest captures enum value "bad_request"
	PutCallbacksIDUnauthorizedBodyTypeBadRequest string = "bad_request"
	// PutCallbacksIDUnauthorizedBodyTypeUnauthorized captures enum value "unauthorized"
	PutCallbacksIDUnauthorizedBodyTypeUnauthorized string = "unauthorized"
	// PutCallbacksIDUnauthorizedBodyTypeNotFound captures enum value "not_found"
	PutCallbacksIDUnauthorizedBodyTypeNotFound string = "not_found"
	// PutCallbacksIDUnauthorizedBodyTypeInternal captures enum value "internal"
	PutCallbacksIDUnauthorizedBodyTypeInternal string = "internal"
	// PutCallbacksIDUnauthorizedBodyTypeInvalidGrant captures enum value "invalid_grant"
	PutCallbacksIDUnauthorizedBodyTypeInvalidGrant string = "invalid_grant"
	// PutCallbacksIDUnauthorizedBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type"
	PutCallbacksIDUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type"
)

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

func (*PutCallbacksIDBadRequestBody) Validate

func (o *PutCallbacksIDBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this put callbacks ID bad request body

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

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

func (*PutCallbacksIDInternalServerErrorBody) Validate

Validate validates this put callbacks ID internal server error body

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

func (*PutCallbacksIDNotFoundBody) Validate

func (o *PutCallbacksIDNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this put callbacks ID not found body

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

WithBody adds the body to the put callbacks ID params

func (*PutCallbacksIDParams) WithContext

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

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 {
	Payload PutCallbacksIDUnauthorizedBody
}

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

type PutCallbacksIDUnauthorizedBody

type PutCallbacksIDUnauthorizedBody struct {

	// Explanation of the errors
	// Required: true
	Message []string `json:"message"`

	// The error type
	// Required: true
	Type *string `json:"type"`
}

PutCallbacksIDUnauthorizedBody put callbacks ID unauthorized body swagger:model PutCallbacksIDUnauthorizedBody

func (*PutCallbacksIDUnauthorizedBody) Validate

func (o *PutCallbacksIDUnauthorizedBody) Validate(formats strfmt.Registry) error

Validate validates this put callbacks ID unauthorized body

Jump to

Keyboard shortcuts

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