resource

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2017 License: BSD-3-Clause Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for resource API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new resource API client.

func (*Client) DeleteResourcesID

DeleteResourcesID deprovisions

Manifold calls this endpoint to request a resource be deprovisioned. When a resource is deprovisioned, all attached credentials are assumed to be deprovisioned as well.

If the resource has already been deprovisioned, then the provider should return a 404 response.

A response should only be returned once an error has occurred *or* when the resource is no longer accessible by the user. If a requested action could take longer than 60s to complete, a callback *must* be used.

**Request Timeout**

If the request takes longer than 60 seconds, then it is assumed to have failed. Manifold will retry the request again in the future.

**Callback Timeout**

If a `202 Accepted` response is returned, Manifold will expect the provider to complete the deprovision flow by calling the callback url within 24 hours. If the callback is not invoked, Manifold will retry the request again.

If the deprovision was successful, then a `404 Not Found` response should be returned to Manifold.

func (*Client) PatchResourcesID

PatchResourcesID changes plan

Manifold will call this endpoint to request a change in plan of a resource (either an upgrade or downgrade). This route must support being called more than once with the same payload.

The `plan` property is the machine readable name of the plan that the resource is being resized to. The list of possible values are provided by the provider and stored in the Manifold Catalog.

A response should only be returned once an error has occurred *or* when the plan change has been completed. If a requested action could take longer than 60s to complete, a callback *must* be used.

**Request Timeout**

If the request takes longer than 60 seconds, then it is assumed to have failed. Manifold will retry the request again in the future.

**Callback Timeout**

If a `202 Accepted` response is returned, Manifold will expect the provider to complete the plan change flow by calling the callback url within 24 hours. If the callback is not invoked, Manifold will retry the request again.

If the resource's plan matches the given plan then a `200 Success` or `204 No Content` response should be returned.

func (*Client) PutResourcesID

PutResourcesID provisions

Manifold will call this endpoint to request the provisiong of a resource using the provided identifier. This route must support being called more than once with the same payload.

The `id` property is the unique identifier Manifold will map to this resource. Providers should use this value for mapping Manifold Resources to data inside their systems.

The `product`, `plan`, and `region` properties are machine readable names for the type of product, its plan, and the region in which the request resource is to be provisioned. These values map to configuration stored inside the Manifold Catalog.

A response should only be returned once an error has occurred *or* the provisioned resource is ready for a user to use. If a requested action could take longer than 60s to complete, a callback *must* be used.

**Request Timeout**

If the request takes longer than 60 seconds, then it is assumed to have failed. Manifold will retry the request again in the future.

**Callback Timeout**

If a `202 Accepted` response is returned, Manifold will expect the provider to complete the provision flow by calling the callback url within 24 hours. If the callback is not invoked, Manifold will retry the request again.

If the resource has been provisioned successfully with properties that match the request, then the provider should return a `201 Created` or `204 No Content` response. However, if the resource provisiong failed, a corresponding error should be returned.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type DeleteResourcesIDAccepted

type DeleteResourcesIDAccepted struct {
	Payload DeleteResourcesIDAcceptedBody
}

DeleteResourcesIDAccepted handles this case with default header values.

Acknowledgement of the deprovision request with a corresponding message to be displayed to the user. The provider will call the callback url once resource has been deprovisioned successfully or a failure has occurred.

func NewDeleteResourcesIDAccepted

func NewDeleteResourcesIDAccepted() *DeleteResourcesIDAccepted

NewDeleteResourcesIDAccepted creates a DeleteResourcesIDAccepted with default headers values

func (*DeleteResourcesIDAccepted) Error

func (o *DeleteResourcesIDAccepted) Error() string

type DeleteResourcesIDAcceptedBody

type DeleteResourcesIDAcceptedBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

DeleteResourcesIDAcceptedBody Object used to display a message back to the user after a change has been // made to a Resource. // swagger:model DeleteResourcesIDAcceptedBody

func (*DeleteResourcesIDAcceptedBody) Validate

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

Validate validates this delete resources ID accepted body

type DeleteResourcesIDBadRequest

type DeleteResourcesIDBadRequest struct {
	Payload DeleteResourcesIDBadRequestBody
}

DeleteResourcesIDBadRequest handles this case with default header values.

Request denied due to invalid request body.

func NewDeleteResourcesIDBadRequest

func NewDeleteResourcesIDBadRequest() *DeleteResourcesIDBadRequest

NewDeleteResourcesIDBadRequest creates a DeleteResourcesIDBadRequest with default headers values

func (*DeleteResourcesIDBadRequest) Error

type DeleteResourcesIDBadRequestBody

type DeleteResourcesIDBadRequestBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

DeleteResourcesIDBadRequestBody delete resources ID bad request body swagger:model DeleteResourcesIDBadRequestBody

func (*DeleteResourcesIDBadRequestBody) Validate

Validate validates this delete resources ID bad request body

type DeleteResourcesIDInternalServerError

type DeleteResourcesIDInternalServerError struct {
	Payload DeleteResourcesIDInternalServerErrorBody
}

DeleteResourcesIDInternalServerError handles this case with default header values.

Request failed due to an internal server error.

func NewDeleteResourcesIDInternalServerError

func NewDeleteResourcesIDInternalServerError() *DeleteResourcesIDInternalServerError

NewDeleteResourcesIDInternalServerError creates a DeleteResourcesIDInternalServerError with default headers values

func (*DeleteResourcesIDInternalServerError) Error

type DeleteResourcesIDInternalServerErrorBody

type DeleteResourcesIDInternalServerErrorBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

DeleteResourcesIDInternalServerErrorBody delete resources ID internal server error body swagger:model DeleteResourcesIDInternalServerErrorBody

func (*DeleteResourcesIDInternalServerErrorBody) Validate

Validate validates this delete resources ID internal server error body

type DeleteResourcesIDNoContent

type DeleteResourcesIDNoContent struct {
}

DeleteResourcesIDNoContent handles this case with default header values.

Resource deprovisioned successfully.

func NewDeleteResourcesIDNoContent

func NewDeleteResourcesIDNoContent() *DeleteResourcesIDNoContent

NewDeleteResourcesIDNoContent creates a DeleteResourcesIDNoContent with default headers values

func (*DeleteResourcesIDNoContent) Error

type DeleteResourcesIDNotFound

type DeleteResourcesIDNotFound struct {
	Payload DeleteResourcesIDNotFoundBody
}

DeleteResourcesIDNotFound handles this case with default header values.

Requested entity could not be found.

func NewDeleteResourcesIDNotFound

func NewDeleteResourcesIDNotFound() *DeleteResourcesIDNotFound

NewDeleteResourcesIDNotFound creates a DeleteResourcesIDNotFound with default headers values

func (*DeleteResourcesIDNotFound) Error

func (o *DeleteResourcesIDNotFound) Error() string

type DeleteResourcesIDNotFoundBody

type DeleteResourcesIDNotFoundBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

DeleteResourcesIDNotFoundBody delete resources ID not found body swagger:model DeleteResourcesIDNotFoundBody

func (*DeleteResourcesIDNotFoundBody) Validate

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

Validate validates this delete resources ID not found body

type DeleteResourcesIDParams

type DeleteResourcesIDParams struct {

	/*Date
	  Timestamp of when the request was issued from Manifold in UTC.

	*/
	Date strfmt.DateTime
	/*XCallbackID
	  ID of the Callback for completing this request if the provider returns a
	`202 Accepted`, stored as a base 32 encoded 18 byte identifier.


	*/
	XCallbackID string
	/*XCallbackURL
	  The URL the provider calls to complete the request if a `202 Accepted` is
	returned.


	*/
	XCallbackURL string
	/*XSignature
	  Header containing the signature, ephemeral public key, and
	signature of the used public key signed by the Manifold root
	signing key to prove authenticity of the request.

	“`
	X-Signature: [request-signature] [public-key-value] [signature-of-public-key]
	“`

	examples:

	“`
	X-Signature: 96afMc5FVZjhGQ4YLPyRW9tcYoPKyj1EMUxkzma_Q4c WydEYGQb7Y4ER6KPAc-YuIwAqFUpII5P9U3MAZ3wxAQ ozhcosOmuWltP8r1BAs-0kccV1AkbHcKYLSjU0dGUHY
	“`


	*/
	XSignature string
	/*XSignedHeaders
	  Comma delimited ordered list of header fields used in generating
	the request signature.


	*/
	XSignedHeaders string
	/*ID
	  ID of a Resource object, stored as a base32 encoded 18 byte identifier.


	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteResourcesIDParams contains all the parameters to send to the API endpoint for the delete resources ID operation typically these are written to a http.Request

func NewDeleteResourcesIDParams

func NewDeleteResourcesIDParams() *DeleteResourcesIDParams

NewDeleteResourcesIDParams creates a new DeleteResourcesIDParams object with the default values initialized.

func NewDeleteResourcesIDParamsWithContext

func NewDeleteResourcesIDParamsWithContext(ctx context.Context) *DeleteResourcesIDParams

NewDeleteResourcesIDParamsWithContext creates a new DeleteResourcesIDParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteResourcesIDParamsWithHTTPClient

func NewDeleteResourcesIDParamsWithHTTPClient(client *http.Client) *DeleteResourcesIDParams

NewDeleteResourcesIDParamsWithHTTPClient creates a new DeleteResourcesIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteResourcesIDParamsWithTimeout

func NewDeleteResourcesIDParamsWithTimeout(timeout time.Duration) *DeleteResourcesIDParams

NewDeleteResourcesIDParamsWithTimeout creates a new DeleteResourcesIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteResourcesIDParams) SetContext

func (o *DeleteResourcesIDParams) SetContext(ctx context.Context)

SetContext adds the context to the delete resources ID params

func (*DeleteResourcesIDParams) SetDate

func (o *DeleteResourcesIDParams) SetDate(date strfmt.DateTime)

SetDate adds the date to the delete resources ID params

func (*DeleteResourcesIDParams) SetHTTPClient

func (o *DeleteResourcesIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete resources ID params

func (*DeleteResourcesIDParams) SetID

func (o *DeleteResourcesIDParams) SetID(id string)

SetID adds the id to the delete resources ID params

func (*DeleteResourcesIDParams) SetTimeout

func (o *DeleteResourcesIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete resources ID params

func (*DeleteResourcesIDParams) SetXCallbackID

func (o *DeleteResourcesIDParams) SetXCallbackID(xCallbackID string)

SetXCallbackID adds the xCallbackId to the delete resources ID params

func (*DeleteResourcesIDParams) SetXCallbackURL

func (o *DeleteResourcesIDParams) SetXCallbackURL(xCallbackURL string)

SetXCallbackURL adds the xCallbackUrl to the delete resources ID params

func (*DeleteResourcesIDParams) SetXSignature

func (o *DeleteResourcesIDParams) SetXSignature(xSignature string)

SetXSignature adds the xSignature to the delete resources ID params

func (*DeleteResourcesIDParams) SetXSignedHeaders

func (o *DeleteResourcesIDParams) SetXSignedHeaders(xSignedHeaders string)

SetXSignedHeaders adds the xSignedHeaders to the delete resources ID params

func (*DeleteResourcesIDParams) WithContext

WithContext adds the context to the delete resources ID params

func (*DeleteResourcesIDParams) WithDate

WithDate adds the date to the delete resources ID params

func (*DeleteResourcesIDParams) WithHTTPClient

func (o *DeleteResourcesIDParams) WithHTTPClient(client *http.Client) *DeleteResourcesIDParams

WithHTTPClient adds the HTTPClient to the delete resources ID params

func (*DeleteResourcesIDParams) WithID

WithID adds the id to the delete resources ID params

func (*DeleteResourcesIDParams) WithTimeout

WithTimeout adds the timeout to the delete resources ID params

func (*DeleteResourcesIDParams) WithXCallbackID

func (o *DeleteResourcesIDParams) WithXCallbackID(xCallbackID string) *DeleteResourcesIDParams

WithXCallbackID adds the xCallbackID to the delete resources ID params

func (*DeleteResourcesIDParams) WithXCallbackURL

func (o *DeleteResourcesIDParams) WithXCallbackURL(xCallbackURL string) *DeleteResourcesIDParams

WithXCallbackURL adds the xCallbackURL to the delete resources ID params

func (*DeleteResourcesIDParams) WithXSignature

func (o *DeleteResourcesIDParams) WithXSignature(xSignature string) *DeleteResourcesIDParams

WithXSignature adds the xSignature to the delete resources ID params

func (*DeleteResourcesIDParams) WithXSignedHeaders

func (o *DeleteResourcesIDParams) WithXSignedHeaders(xSignedHeaders string) *DeleteResourcesIDParams

WithXSignedHeaders adds the xSignedHeaders to the delete resources ID params

func (*DeleteResourcesIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteResourcesIDReader

type DeleteResourcesIDReader struct {
	// contains filtered or unexported fields
}

DeleteResourcesIDReader is a Reader for the DeleteResourcesID structure.

func (*DeleteResourcesIDReader) ReadResponse

func (o *DeleteResourcesIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteResourcesIDUnauthorized

type DeleteResourcesIDUnauthorized struct {
	Payload DeleteResourcesIDUnauthorizedBody
}

DeleteResourcesIDUnauthorized handles this case with default header values.

Request authenticity could not be validated.

func NewDeleteResourcesIDUnauthorized

func NewDeleteResourcesIDUnauthorized() *DeleteResourcesIDUnauthorized

NewDeleteResourcesIDUnauthorized creates a DeleteResourcesIDUnauthorized with default headers values

func (*DeleteResourcesIDUnauthorized) Error

type DeleteResourcesIDUnauthorizedBody

type DeleteResourcesIDUnauthorizedBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

DeleteResourcesIDUnauthorizedBody delete resources ID unauthorized body swagger:model DeleteResourcesIDUnauthorizedBody

func (*DeleteResourcesIDUnauthorizedBody) Validate

Validate validates this delete resources ID unauthorized body

type PatchResourcesIDAccepted

type PatchResourcesIDAccepted struct {
	Payload PatchResourcesIDAcceptedBody
}

PatchResourcesIDAccepted handles this case with default header values.

Acknowledgement of the plan change request with a corresponding message to be displayed to the user. The provider will call the callback url once resource's plan has been changed successfully or a failure has occurred.

func NewPatchResourcesIDAccepted

func NewPatchResourcesIDAccepted() *PatchResourcesIDAccepted

NewPatchResourcesIDAccepted creates a PatchResourcesIDAccepted with default headers values

func (*PatchResourcesIDAccepted) Error

func (o *PatchResourcesIDAccepted) Error() string

type PatchResourcesIDAcceptedBody

type PatchResourcesIDAcceptedBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

PatchResourcesIDAcceptedBody Object used to display a message back to the user after a change has been // made to a Resource. // swagger:model PatchResourcesIDAcceptedBody

func (*PatchResourcesIDAcceptedBody) Validate

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

Validate validates this patch resources ID accepted body

type PatchResourcesIDBadRequest

type PatchResourcesIDBadRequest struct {
	Payload PatchResourcesIDBadRequestBody
}

PatchResourcesIDBadRequest handles this case with default header values.

Request denied due to invalid request body.

func NewPatchResourcesIDBadRequest

func NewPatchResourcesIDBadRequest() *PatchResourcesIDBadRequest

NewPatchResourcesIDBadRequest creates a PatchResourcesIDBadRequest with default headers values

func (*PatchResourcesIDBadRequest) Error

type PatchResourcesIDBadRequestBody

type PatchResourcesIDBadRequestBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

PatchResourcesIDBadRequestBody patch resources ID bad request body swagger:model PatchResourcesIDBadRequestBody

func (*PatchResourcesIDBadRequestBody) Validate

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

Validate validates this patch resources ID bad request body

type PatchResourcesIDInternalServerError

type PatchResourcesIDInternalServerError struct {
	Payload PatchResourcesIDInternalServerErrorBody
}

PatchResourcesIDInternalServerError handles this case with default header values.

Request failed due to an internal server error.

func NewPatchResourcesIDInternalServerError

func NewPatchResourcesIDInternalServerError() *PatchResourcesIDInternalServerError

NewPatchResourcesIDInternalServerError creates a PatchResourcesIDInternalServerError with default headers values

func (*PatchResourcesIDInternalServerError) Error

type PatchResourcesIDInternalServerErrorBody

type PatchResourcesIDInternalServerErrorBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

PatchResourcesIDInternalServerErrorBody patch resources ID internal server error body swagger:model PatchResourcesIDInternalServerErrorBody

func (*PatchResourcesIDInternalServerErrorBody) Validate

Validate validates this patch resources ID internal server error body

type PatchResourcesIDNoContent

type PatchResourcesIDNoContent struct {
}

PatchResourcesIDNoContent handles this case with default header values.

The plan has been changed successfully and there is no message to display to the user.

func NewPatchResourcesIDNoContent

func NewPatchResourcesIDNoContent() *PatchResourcesIDNoContent

NewPatchResourcesIDNoContent creates a PatchResourcesIDNoContent with default headers values

func (*PatchResourcesIDNoContent) Error

func (o *PatchResourcesIDNoContent) Error() string

type PatchResourcesIDNotFound

type PatchResourcesIDNotFound struct {
	Payload PatchResourcesIDNotFoundBody
}

PatchResourcesIDNotFound handles this case with default header values.

Requested entity could not be found.

func NewPatchResourcesIDNotFound

func NewPatchResourcesIDNotFound() *PatchResourcesIDNotFound

NewPatchResourcesIDNotFound creates a PatchResourcesIDNotFound with default headers values

func (*PatchResourcesIDNotFound) Error

func (o *PatchResourcesIDNotFound) Error() string

type PatchResourcesIDNotFoundBody

type PatchResourcesIDNotFoundBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

PatchResourcesIDNotFoundBody patch resources ID not found body swagger:model PatchResourcesIDNotFoundBody

func (*PatchResourcesIDNotFoundBody) Validate

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

Validate validates this patch resources ID not found body

type PatchResourcesIDOK

type PatchResourcesIDOK struct {
	Payload PatchResourcesIDOKBody
}

PatchResourcesIDOK handles this case with default header values.

The plan has been changed successfully. The corresponding message is to be displayed to the user on the Manifold dashboard.

func NewPatchResourcesIDOK

func NewPatchResourcesIDOK() *PatchResourcesIDOK

NewPatchResourcesIDOK creates a PatchResourcesIDOK with default headers values

func (*PatchResourcesIDOK) Error

func (o *PatchResourcesIDOK) Error() string

type PatchResourcesIDOKBody

type PatchResourcesIDOKBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

PatchResourcesIDOKBody Object used to display a message back to the user after a change has been // made to a Resource. // swagger:model PatchResourcesIDOKBody

func (*PatchResourcesIDOKBody) Validate

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

Validate validates this patch resources ID o k body

type PatchResourcesIDParams

type PatchResourcesIDParams struct {

	/*Date
	  Timestamp of when the request was issued from Manifold in UTC.

	*/
	Date strfmt.DateTime
	/*XCallbackID
	  ID of the Callback for completing this request if the provider returns a
	`202 Accepted`, stored as a base 32 encoded 18 byte identifier.


	*/
	XCallbackID string
	/*XCallbackURL
	  The URL the provider calls to complete the request if a `202 Accepted` is
	returned.


	*/
	XCallbackURL string
	/*XSignature
	  Header containing the signature, ephemeral public key, and
	signature of the used public key signed by the Manifold root
	signing key to prove authenticity of the request.

	“`
	X-Signature: [request-signature] [public-key-value] [signature-of-public-key]
	“`

	examples:

	“`
	X-Signature: 96afMc5FVZjhGQ4YLPyRW9tcYoPKyj1EMUxkzma_Q4c WydEYGQb7Y4ER6KPAc-YuIwAqFUpII5P9U3MAZ3wxAQ ozhcosOmuWltP8r1BAs-0kccV1AkbHcKYLSjU0dGUHY
	“`


	*/
	XSignature string
	/*XSignedHeaders
	  Comma delimited ordered list of header fields used in generating
	the request signature.


	*/
	XSignedHeaders string
	/*Body
	  Resource Provisioning Request

	*/
	Body *models.ResourcePlanChangeRequest
	/*ID
	  ID of a Resource object, stored as a base32 encoded 18 byte identifier.


	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PatchResourcesIDParams contains all the parameters to send to the API endpoint for the patch resources ID operation typically these are written to a http.Request

func NewPatchResourcesIDParams

func NewPatchResourcesIDParams() *PatchResourcesIDParams

NewPatchResourcesIDParams creates a new PatchResourcesIDParams object with the default values initialized.

func NewPatchResourcesIDParamsWithContext

func NewPatchResourcesIDParamsWithContext(ctx context.Context) *PatchResourcesIDParams

NewPatchResourcesIDParamsWithContext creates a new PatchResourcesIDParams object with the default values initialized, and the ability to set a context for a request

func NewPatchResourcesIDParamsWithHTTPClient

func NewPatchResourcesIDParamsWithHTTPClient(client *http.Client) *PatchResourcesIDParams

NewPatchResourcesIDParamsWithHTTPClient creates a new PatchResourcesIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPatchResourcesIDParamsWithTimeout

func NewPatchResourcesIDParamsWithTimeout(timeout time.Duration) *PatchResourcesIDParams

NewPatchResourcesIDParamsWithTimeout creates a new PatchResourcesIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*PatchResourcesIDParams) SetBody

SetBody adds the body to the patch resources ID params

func (*PatchResourcesIDParams) SetContext

func (o *PatchResourcesIDParams) SetContext(ctx context.Context)

SetContext adds the context to the patch resources ID params

func (*PatchResourcesIDParams) SetDate

func (o *PatchResourcesIDParams) SetDate(date strfmt.DateTime)

SetDate adds the date to the patch resources ID params

func (*PatchResourcesIDParams) SetHTTPClient

func (o *PatchResourcesIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the patch resources ID params

func (*PatchResourcesIDParams) SetID

func (o *PatchResourcesIDParams) SetID(id string)

SetID adds the id to the patch resources ID params

func (*PatchResourcesIDParams) SetTimeout

func (o *PatchResourcesIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the patch resources ID params

func (*PatchResourcesIDParams) SetXCallbackID

func (o *PatchResourcesIDParams) SetXCallbackID(xCallbackID string)

SetXCallbackID adds the xCallbackId to the patch resources ID params

func (*PatchResourcesIDParams) SetXCallbackURL

func (o *PatchResourcesIDParams) SetXCallbackURL(xCallbackURL string)

SetXCallbackURL adds the xCallbackUrl to the patch resources ID params

func (*PatchResourcesIDParams) SetXSignature

func (o *PatchResourcesIDParams) SetXSignature(xSignature string)

SetXSignature adds the xSignature to the patch resources ID params

func (*PatchResourcesIDParams) SetXSignedHeaders

func (o *PatchResourcesIDParams) SetXSignedHeaders(xSignedHeaders string)

SetXSignedHeaders adds the xSignedHeaders to the patch resources ID params

func (*PatchResourcesIDParams) WithBody

WithBody adds the body to the patch resources ID params

func (*PatchResourcesIDParams) WithContext

WithContext adds the context to the patch resources ID params

func (*PatchResourcesIDParams) WithDate

WithDate adds the date to the patch resources ID params

func (*PatchResourcesIDParams) WithHTTPClient

func (o *PatchResourcesIDParams) WithHTTPClient(client *http.Client) *PatchResourcesIDParams

WithHTTPClient adds the HTTPClient to the patch resources ID params

func (*PatchResourcesIDParams) WithID

WithID adds the id to the patch resources ID params

func (*PatchResourcesIDParams) WithTimeout

WithTimeout adds the timeout to the patch resources ID params

func (*PatchResourcesIDParams) WithXCallbackID

func (o *PatchResourcesIDParams) WithXCallbackID(xCallbackID string) *PatchResourcesIDParams

WithXCallbackID adds the xCallbackID to the patch resources ID params

func (*PatchResourcesIDParams) WithXCallbackURL

func (o *PatchResourcesIDParams) WithXCallbackURL(xCallbackURL string) *PatchResourcesIDParams

WithXCallbackURL adds the xCallbackURL to the patch resources ID params

func (*PatchResourcesIDParams) WithXSignature

func (o *PatchResourcesIDParams) WithXSignature(xSignature string) *PatchResourcesIDParams

WithXSignature adds the xSignature to the patch resources ID params

func (*PatchResourcesIDParams) WithXSignedHeaders

func (o *PatchResourcesIDParams) WithXSignedHeaders(xSignedHeaders string) *PatchResourcesIDParams

WithXSignedHeaders adds the xSignedHeaders to the patch resources ID params

func (*PatchResourcesIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchResourcesIDReader

type PatchResourcesIDReader struct {
	// contains filtered or unexported fields
}

PatchResourcesIDReader is a Reader for the PatchResourcesID structure.

func (*PatchResourcesIDReader) ReadResponse

func (o *PatchResourcesIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PatchResourcesIDUnauthorized

type PatchResourcesIDUnauthorized struct {
	Payload PatchResourcesIDUnauthorizedBody
}

PatchResourcesIDUnauthorized handles this case with default header values.

Request authenticity could not be validated.

func NewPatchResourcesIDUnauthorized

func NewPatchResourcesIDUnauthorized() *PatchResourcesIDUnauthorized

NewPatchResourcesIDUnauthorized creates a PatchResourcesIDUnauthorized with default headers values

func (*PatchResourcesIDUnauthorized) Error

type PatchResourcesIDUnauthorizedBody

type PatchResourcesIDUnauthorizedBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

PatchResourcesIDUnauthorizedBody patch resources ID unauthorized body swagger:model PatchResourcesIDUnauthorizedBody

func (*PatchResourcesIDUnauthorizedBody) Validate

Validate validates this patch resources ID unauthorized body

type PutResourcesIDAccepted

type PutResourcesIDAccepted struct {
	Payload PutResourcesIDAcceptedBody
}

PutResourcesIDAccepted handles this case with default header values.

Acknowledgement of the provisioning request with a corresponding message to be displayed to the user. The provider will call the callback url once provisioning has succeed or a failure has occurred.

func NewPutResourcesIDAccepted

func NewPutResourcesIDAccepted() *PutResourcesIDAccepted

NewPutResourcesIDAccepted creates a PutResourcesIDAccepted with default headers values

func (*PutResourcesIDAccepted) Error

func (o *PutResourcesIDAccepted) Error() string

type PutResourcesIDAcceptedBody

type PutResourcesIDAcceptedBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

PutResourcesIDAcceptedBody Object used to display a message back to the user after a change has been // made to a Resource. // swagger:model PutResourcesIDAcceptedBody

func (*PutResourcesIDAcceptedBody) Validate

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

Validate validates this put resources ID accepted body

type PutResourcesIDBadRequest

type PutResourcesIDBadRequest struct {
	Payload PutResourcesIDBadRequestBody
}

PutResourcesIDBadRequest handles this case with default header values.

Request denied due to invalid request body.

func NewPutResourcesIDBadRequest

func NewPutResourcesIDBadRequest() *PutResourcesIDBadRequest

NewPutResourcesIDBadRequest creates a PutResourcesIDBadRequest with default headers values

func (*PutResourcesIDBadRequest) Error

func (o *PutResourcesIDBadRequest) Error() string

type PutResourcesIDBadRequestBody

type PutResourcesIDBadRequestBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

PutResourcesIDBadRequestBody put resources ID bad request body swagger:model PutResourcesIDBadRequestBody

func (*PutResourcesIDBadRequestBody) Validate

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

Validate validates this put resources ID bad request body

type PutResourcesIDConflict

type PutResourcesIDConflict struct {
	Payload PutResourcesIDConflictBody
}

PutResourcesIDConflict handles this case with default header values.

An entity already exists with that identifier and the request contents do not match the current object. If an entity does exist with that identifier and the request contents do match then a success response should be returned.

func NewPutResourcesIDConflict

func NewPutResourcesIDConflict() *PutResourcesIDConflict

NewPutResourcesIDConflict creates a PutResourcesIDConflict with default headers values

func (*PutResourcesIDConflict) Error

func (o *PutResourcesIDConflict) Error() string

type PutResourcesIDConflictBody

type PutResourcesIDConflictBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

PutResourcesIDConflictBody put resources ID conflict body swagger:model PutResourcesIDConflictBody

func (*PutResourcesIDConflictBody) Validate

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

Validate validates this put resources ID conflict body

type PutResourcesIDCreated

type PutResourcesIDCreated struct {
	Payload PutResourcesIDCreatedBody
}

PutResourcesIDCreated handles this case with default header values.

Successful provisioning request, with an attached message to be displayed to the user.

func NewPutResourcesIDCreated

func NewPutResourcesIDCreated() *PutResourcesIDCreated

NewPutResourcesIDCreated creates a PutResourcesIDCreated with default headers values

func (*PutResourcesIDCreated) Error

func (o *PutResourcesIDCreated) Error() string

type PutResourcesIDCreatedBody

type PutResourcesIDCreatedBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

PutResourcesIDCreatedBody Object used to display a message back to the user after a change has been // made to a Resource. // swagger:model PutResourcesIDCreatedBody

func (*PutResourcesIDCreatedBody) Validate

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

Validate validates this put resources ID created body

type PutResourcesIDInternalServerError

type PutResourcesIDInternalServerError struct {
	Payload PutResourcesIDInternalServerErrorBody
}

PutResourcesIDInternalServerError handles this case with default header values.

Request failed due to an internal server error.

func NewPutResourcesIDInternalServerError

func NewPutResourcesIDInternalServerError() *PutResourcesIDInternalServerError

NewPutResourcesIDInternalServerError creates a PutResourcesIDInternalServerError with default headers values

func (*PutResourcesIDInternalServerError) Error

type PutResourcesIDInternalServerErrorBody

type PutResourcesIDInternalServerErrorBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

PutResourcesIDInternalServerErrorBody put resources ID internal server error body swagger:model PutResourcesIDInternalServerErrorBody

func (*PutResourcesIDInternalServerErrorBody) Validate

Validate validates this put resources ID internal server error body

type PutResourcesIDNoContent

type PutResourcesIDNoContent struct {
}

PutResourcesIDNoContent handles this case with default header values.

Successful provisioning request, with no message to be displayed to the user.

func NewPutResourcesIDNoContent

func NewPutResourcesIDNoContent() *PutResourcesIDNoContent

NewPutResourcesIDNoContent creates a PutResourcesIDNoContent with default headers values

func (*PutResourcesIDNoContent) Error

func (o *PutResourcesIDNoContent) Error() string

type PutResourcesIDParams

type PutResourcesIDParams struct {

	/*Date
	  Timestamp of when the request was issued from Manifold in UTC.

	*/
	Date strfmt.DateTime
	/*XCallbackID
	  ID of the Callback for completing this request if the provider returns a
	`202 Accepted`, stored as a base 32 encoded 18 byte identifier.


	*/
	XCallbackID string
	/*XCallbackURL
	  The URL the provider calls to complete the request if a `202 Accepted` is
	returned.


	*/
	XCallbackURL string
	/*XSignature
	  Header containing the signature, ephemeral public key, and
	signature of the used public key signed by the Manifold root
	signing key to prove authenticity of the request.

	“`
	X-Signature: [request-signature] [public-key-value] [signature-of-public-key]
	“`

	examples:

	“`
	X-Signature: 96afMc5FVZjhGQ4YLPyRW9tcYoPKyj1EMUxkzma_Q4c WydEYGQb7Y4ER6KPAc-YuIwAqFUpII5P9U3MAZ3wxAQ ozhcosOmuWltP8r1BAs-0kccV1AkbHcKYLSjU0dGUHY
	“`


	*/
	XSignature string
	/*XSignedHeaders
	  Comma delimited ordered list of header fields used in generating
	the request signature.


	*/
	XSignedHeaders string
	/*Body
	  Resource Provisioning Request

	*/
	Body *models.ResourceRequest
	/*ID
	  ID of a Resource object, stored as a base32 encoded 18 byte identifier.


	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PutResourcesIDParams contains all the parameters to send to the API endpoint for the put resources ID operation typically these are written to a http.Request

func NewPutResourcesIDParams

func NewPutResourcesIDParams() *PutResourcesIDParams

NewPutResourcesIDParams creates a new PutResourcesIDParams object with the default values initialized.

func NewPutResourcesIDParamsWithContext

func NewPutResourcesIDParamsWithContext(ctx context.Context) *PutResourcesIDParams

NewPutResourcesIDParamsWithContext creates a new PutResourcesIDParams object with the default values initialized, and the ability to set a context for a request

func NewPutResourcesIDParamsWithHTTPClient

func NewPutResourcesIDParamsWithHTTPClient(client *http.Client) *PutResourcesIDParams

NewPutResourcesIDParamsWithHTTPClient creates a new PutResourcesIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPutResourcesIDParamsWithTimeout

func NewPutResourcesIDParamsWithTimeout(timeout time.Duration) *PutResourcesIDParams

NewPutResourcesIDParamsWithTimeout creates a new PutResourcesIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*PutResourcesIDParams) SetBody

func (o *PutResourcesIDParams) SetBody(body *models.ResourceRequest)

SetBody adds the body to the put resources ID params

func (*PutResourcesIDParams) SetContext

func (o *PutResourcesIDParams) SetContext(ctx context.Context)

SetContext adds the context to the put resources ID params

func (*PutResourcesIDParams) SetDate

func (o *PutResourcesIDParams) SetDate(date strfmt.DateTime)

SetDate adds the date to the put resources ID params

func (*PutResourcesIDParams) SetHTTPClient

func (o *PutResourcesIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put resources ID params

func (*PutResourcesIDParams) SetID

func (o *PutResourcesIDParams) SetID(id string)

SetID adds the id to the put resources ID params

func (*PutResourcesIDParams) SetTimeout

func (o *PutResourcesIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put resources ID params

func (*PutResourcesIDParams) SetXCallbackID

func (o *PutResourcesIDParams) SetXCallbackID(xCallbackID string)

SetXCallbackID adds the xCallbackId to the put resources ID params

func (*PutResourcesIDParams) SetXCallbackURL

func (o *PutResourcesIDParams) SetXCallbackURL(xCallbackURL string)

SetXCallbackURL adds the xCallbackUrl to the put resources ID params

func (*PutResourcesIDParams) SetXSignature

func (o *PutResourcesIDParams) SetXSignature(xSignature string)

SetXSignature adds the xSignature to the put resources ID params

func (*PutResourcesIDParams) SetXSignedHeaders

func (o *PutResourcesIDParams) SetXSignedHeaders(xSignedHeaders string)

SetXSignedHeaders adds the xSignedHeaders to the put resources ID params

func (*PutResourcesIDParams) WithBody

WithBody adds the body to the put resources ID params

func (*PutResourcesIDParams) WithContext

WithContext adds the context to the put resources ID params

func (*PutResourcesIDParams) WithDate

WithDate adds the date to the put resources ID params

func (*PutResourcesIDParams) WithHTTPClient

func (o *PutResourcesIDParams) WithHTTPClient(client *http.Client) *PutResourcesIDParams

WithHTTPClient adds the HTTPClient to the put resources ID params

func (*PutResourcesIDParams) WithID

WithID adds the id to the put resources ID params

func (*PutResourcesIDParams) WithTimeout

func (o *PutResourcesIDParams) WithTimeout(timeout time.Duration) *PutResourcesIDParams

WithTimeout adds the timeout to the put resources ID params

func (*PutResourcesIDParams) WithXCallbackID

func (o *PutResourcesIDParams) WithXCallbackID(xCallbackID string) *PutResourcesIDParams

WithXCallbackID adds the xCallbackID to the put resources ID params

func (*PutResourcesIDParams) WithXCallbackURL

func (o *PutResourcesIDParams) WithXCallbackURL(xCallbackURL string) *PutResourcesIDParams

WithXCallbackURL adds the xCallbackURL to the put resources ID params

func (*PutResourcesIDParams) WithXSignature

func (o *PutResourcesIDParams) WithXSignature(xSignature string) *PutResourcesIDParams

WithXSignature adds the xSignature to the put resources ID params

func (*PutResourcesIDParams) WithXSignedHeaders

func (o *PutResourcesIDParams) WithXSignedHeaders(xSignedHeaders string) *PutResourcesIDParams

WithXSignedHeaders adds the xSignedHeaders to the put resources ID params

func (*PutResourcesIDParams) WriteToRequest

func (o *PutResourcesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PutResourcesIDReader

type PutResourcesIDReader struct {
	// contains filtered or unexported fields
}

PutResourcesIDReader is a Reader for the PutResourcesID structure.

func (*PutResourcesIDReader) ReadResponse

func (o *PutResourcesIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PutResourcesIDUnauthorized

type PutResourcesIDUnauthorized struct {
	Payload PutResourcesIDUnauthorizedBody
}

PutResourcesIDUnauthorized handles this case with default header values.

Request authenticity could not be validated.

func NewPutResourcesIDUnauthorized

func NewPutResourcesIDUnauthorized() *PutResourcesIDUnauthorized

NewPutResourcesIDUnauthorized creates a PutResourcesIDUnauthorized with default headers values

func (*PutResourcesIDUnauthorized) Error

type PutResourcesIDUnauthorizedBody

type PutResourcesIDUnauthorizedBody struct {

	// message
	// Required: true
	// Max Length: 256
	// Min Length: 3
	Message *string `json:"message"`
}

PutResourcesIDUnauthorizedBody put resources ID unauthorized body swagger:model PutResourcesIDUnauthorizedBody

func (*PutResourcesIDUnauthorizedBody) Validate

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

Validate validates this put resources ID unauthorized body

Jump to

Keyboard shortcuts

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