deployment_templates

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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 deployment templates API

func (*Client) CreateDeploymentTemplateV2

CreateDeploymentTemplateV2 creates deployment template

Creates a deployment template.

func (*Client) DeleteDeploymentTemplateV2

func (a *Client) DeleteDeploymentTemplateV2(params *DeleteDeploymentTemplateV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDeploymentTemplateV2OK, error)

DeleteDeploymentTemplateV2 deletes deployment template

Deletes a deployment template by id.

func (*Client) GetDeploymentTemplateV2

func (a *Client) GetDeploymentTemplateV2(params *GetDeploymentTemplateV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentTemplateV2OK, error)

GetDeploymentTemplateV2 gets deployment template

Retrieves a deployment template by id.

func (*Client) GetDeploymentTemplatesV2

func (a *Client) GetDeploymentTemplatesV2(params *GetDeploymentTemplatesV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentTemplatesV2OK, error)

GetDeploymentTemplatesV2 gets deployment templates

Retrieves all deployment templates.

func (*Client) SetDeploymentTemplateV2

SetDeploymentTemplateV2 sets deployment template

Creates or updates a deployment template.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new deployment templates API client.

type CreateDeploymentTemplateV2BadRequest

type CreateDeploymentTemplateV2BadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateDeploymentTemplateV2BadRequest describes a response with status code 400, with default header values.

The requested region is not supported. (code: `templates.region_not_found`)

func NewCreateDeploymentTemplateV2BadRequest

func NewCreateDeploymentTemplateV2BadRequest() *CreateDeploymentTemplateV2BadRequest

NewCreateDeploymentTemplateV2BadRequest creates a CreateDeploymentTemplateV2BadRequest with default headers values

func (*CreateDeploymentTemplateV2BadRequest) Code

Code gets the status code for the create deployment template v2 bad request response

func (*CreateDeploymentTemplateV2BadRequest) Error

func (*CreateDeploymentTemplateV2BadRequest) GetPayload

func (*CreateDeploymentTemplateV2BadRequest) IsClientError

func (o *CreateDeploymentTemplateV2BadRequest) IsClientError() bool

IsClientError returns true when this create deployment template v2 bad request response has a 4xx status code

func (*CreateDeploymentTemplateV2BadRequest) IsCode

IsCode returns true when this create deployment template v2 bad request response a status code equal to that given

func (*CreateDeploymentTemplateV2BadRequest) IsRedirect

IsRedirect returns true when this create deployment template v2 bad request response has a 3xx status code

func (*CreateDeploymentTemplateV2BadRequest) IsServerError

func (o *CreateDeploymentTemplateV2BadRequest) IsServerError() bool

IsServerError returns true when this create deployment template v2 bad request response has a 5xx status code

func (*CreateDeploymentTemplateV2BadRequest) IsSuccess

IsSuccess returns true when this create deployment template v2 bad request response has a 2xx status code

func (*CreateDeploymentTemplateV2BadRequest) String

type CreateDeploymentTemplateV2Created

type CreateDeploymentTemplateV2Created struct {
	Payload *models.IDResponse
}

CreateDeploymentTemplateV2Created describes a response with status code 201, with default header values.

The deployment definition was valid and the template has been created.

func NewCreateDeploymentTemplateV2Created

func NewCreateDeploymentTemplateV2Created() *CreateDeploymentTemplateV2Created

NewCreateDeploymentTemplateV2Created creates a CreateDeploymentTemplateV2Created with default headers values

func (*CreateDeploymentTemplateV2Created) Code

Code gets the status code for the create deployment template v2 created response

func (*CreateDeploymentTemplateV2Created) Error

func (*CreateDeploymentTemplateV2Created) GetPayload

func (*CreateDeploymentTemplateV2Created) IsClientError

func (o *CreateDeploymentTemplateV2Created) IsClientError() bool

IsClientError returns true when this create deployment template v2 created response has a 4xx status code

func (*CreateDeploymentTemplateV2Created) IsCode

func (o *CreateDeploymentTemplateV2Created) IsCode(code int) bool

IsCode returns true when this create deployment template v2 created response a status code equal to that given

func (*CreateDeploymentTemplateV2Created) IsRedirect

func (o *CreateDeploymentTemplateV2Created) IsRedirect() bool

IsRedirect returns true when this create deployment template v2 created response has a 3xx status code

func (*CreateDeploymentTemplateV2Created) IsServerError

func (o *CreateDeploymentTemplateV2Created) IsServerError() bool

IsServerError returns true when this create deployment template v2 created response has a 5xx status code

func (*CreateDeploymentTemplateV2Created) IsSuccess

func (o *CreateDeploymentTemplateV2Created) IsSuccess() bool

IsSuccess returns true when this create deployment template v2 created response has a 2xx status code

func (*CreateDeploymentTemplateV2Created) String

type CreateDeploymentTemplateV2OK

type CreateDeploymentTemplateV2OK struct {
	Payload *models.IDResponse
}

CreateDeploymentTemplateV2OK describes a response with status code 200, with default header values.

The request was valid (used when validate_only is true).

func NewCreateDeploymentTemplateV2OK

func NewCreateDeploymentTemplateV2OK() *CreateDeploymentTemplateV2OK

NewCreateDeploymentTemplateV2OK creates a CreateDeploymentTemplateV2OK with default headers values

func (*CreateDeploymentTemplateV2OK) Code

Code gets the status code for the create deployment template v2 o k response

func (*CreateDeploymentTemplateV2OK) Error

func (*CreateDeploymentTemplateV2OK) GetPayload

func (*CreateDeploymentTemplateV2OK) IsClientError

func (o *CreateDeploymentTemplateV2OK) IsClientError() bool

IsClientError returns true when this create deployment template v2 o k response has a 4xx status code

func (*CreateDeploymentTemplateV2OK) IsCode

func (o *CreateDeploymentTemplateV2OK) IsCode(code int) bool

IsCode returns true when this create deployment template v2 o k response a status code equal to that given

func (*CreateDeploymentTemplateV2OK) IsRedirect

func (o *CreateDeploymentTemplateV2OK) IsRedirect() bool

IsRedirect returns true when this create deployment template v2 o k response has a 3xx status code

func (*CreateDeploymentTemplateV2OK) IsServerError

func (o *CreateDeploymentTemplateV2OK) IsServerError() bool

IsServerError returns true when this create deployment template v2 o k response has a 5xx status code

func (*CreateDeploymentTemplateV2OK) IsSuccess

func (o *CreateDeploymentTemplateV2OK) IsSuccess() bool

IsSuccess returns true when this create deployment template v2 o k response has a 2xx status code

func (*CreateDeploymentTemplateV2OK) String

type CreateDeploymentTemplateV2Params

type CreateDeploymentTemplateV2Params struct {

	/* Body.

	   The deployment template definition.
	*/
	Body *models.DeploymentTemplateRequestBody

	/* Region.

	   Region of the deployment template
	*/
	Region string

	/* ValidateOnly.

	   If true, the deployment template definition will be validated but the template will not be created.
	*/
	ValidateOnly *bool

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

CreateDeploymentTemplateV2Params contains all the parameters to send to the API endpoint

for the create deployment template v2 operation.

Typically these are written to a http.Request.

func NewCreateDeploymentTemplateV2Params

func NewCreateDeploymentTemplateV2Params() *CreateDeploymentTemplateV2Params

NewCreateDeploymentTemplateV2Params creates a new CreateDeploymentTemplateV2Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateDeploymentTemplateV2ParamsWithContext

func NewCreateDeploymentTemplateV2ParamsWithContext(ctx context.Context) *CreateDeploymentTemplateV2Params

NewCreateDeploymentTemplateV2ParamsWithContext creates a new CreateDeploymentTemplateV2Params object with the ability to set a context for a request.

func NewCreateDeploymentTemplateV2ParamsWithHTTPClient

func NewCreateDeploymentTemplateV2ParamsWithHTTPClient(client *http.Client) *CreateDeploymentTemplateV2Params

NewCreateDeploymentTemplateV2ParamsWithHTTPClient creates a new CreateDeploymentTemplateV2Params object with the ability to set a custom HTTPClient for a request.

func NewCreateDeploymentTemplateV2ParamsWithTimeout

func NewCreateDeploymentTemplateV2ParamsWithTimeout(timeout time.Duration) *CreateDeploymentTemplateV2Params

NewCreateDeploymentTemplateV2ParamsWithTimeout creates a new CreateDeploymentTemplateV2Params object with the ability to set a timeout on a request.

func (*CreateDeploymentTemplateV2Params) SetBody

SetBody adds the body to the create deployment template v2 params

func (*CreateDeploymentTemplateV2Params) SetContext

SetContext adds the context to the create deployment template v2 params

func (*CreateDeploymentTemplateV2Params) SetDefaults

func (o *CreateDeploymentTemplateV2Params) SetDefaults()

SetDefaults hydrates default values in the create deployment template v2 params (not the query body).

All values with no default are reset to their zero value.

func (*CreateDeploymentTemplateV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create deployment template v2 params

func (*CreateDeploymentTemplateV2Params) SetRegion

func (o *CreateDeploymentTemplateV2Params) SetRegion(region string)

SetRegion adds the region to the create deployment template v2 params

func (*CreateDeploymentTemplateV2Params) SetTimeout

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

SetTimeout adds the timeout to the create deployment template v2 params

func (*CreateDeploymentTemplateV2Params) SetValidateOnly

func (o *CreateDeploymentTemplateV2Params) SetValidateOnly(validateOnly *bool)

SetValidateOnly adds the validateOnly to the create deployment template v2 params

func (*CreateDeploymentTemplateV2Params) WithBody

WithBody adds the body to the create deployment template v2 params

func (*CreateDeploymentTemplateV2Params) WithContext

WithContext adds the context to the create deployment template v2 params

func (*CreateDeploymentTemplateV2Params) WithDefaults

WithDefaults hydrates default values in the create deployment template v2 params (not the query body).

All values with no default are reset to their zero value.

func (*CreateDeploymentTemplateV2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create deployment template v2 params

func (*CreateDeploymentTemplateV2Params) WithRegion

WithRegion adds the region to the create deployment template v2 params

func (*CreateDeploymentTemplateV2Params) WithTimeout

WithTimeout adds the timeout to the create deployment template v2 params

func (*CreateDeploymentTemplateV2Params) WithValidateOnly

func (o *CreateDeploymentTemplateV2Params) WithValidateOnly(validateOnly *bool) *CreateDeploymentTemplateV2Params

WithValidateOnly adds the validateOnly to the create deployment template v2 params

func (*CreateDeploymentTemplateV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateDeploymentTemplateV2Reader

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

CreateDeploymentTemplateV2Reader is a Reader for the CreateDeploymentTemplateV2 structure.

func (*CreateDeploymentTemplateV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateDeploymentTemplateV2Unauthorized

type CreateDeploymentTemplateV2Unauthorized struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateDeploymentTemplateV2Unauthorized describes a response with status code 401, with default header values.

The user is not authorized to access requested region. (code: `templates.region_not_allowed`)

func NewCreateDeploymentTemplateV2Unauthorized

func NewCreateDeploymentTemplateV2Unauthorized() *CreateDeploymentTemplateV2Unauthorized

NewCreateDeploymentTemplateV2Unauthorized creates a CreateDeploymentTemplateV2Unauthorized with default headers values

func (*CreateDeploymentTemplateV2Unauthorized) Code

Code gets the status code for the create deployment template v2 unauthorized response

func (*CreateDeploymentTemplateV2Unauthorized) Error

func (*CreateDeploymentTemplateV2Unauthorized) GetPayload

func (*CreateDeploymentTemplateV2Unauthorized) IsClientError

func (o *CreateDeploymentTemplateV2Unauthorized) IsClientError() bool

IsClientError returns true when this create deployment template v2 unauthorized response has a 4xx status code

func (*CreateDeploymentTemplateV2Unauthorized) IsCode

IsCode returns true when this create deployment template v2 unauthorized response a status code equal to that given

func (*CreateDeploymentTemplateV2Unauthorized) IsRedirect

IsRedirect returns true when this create deployment template v2 unauthorized response has a 3xx status code

func (*CreateDeploymentTemplateV2Unauthorized) IsServerError

func (o *CreateDeploymentTemplateV2Unauthorized) IsServerError() bool

IsServerError returns true when this create deployment template v2 unauthorized response has a 5xx status code

func (*CreateDeploymentTemplateV2Unauthorized) IsSuccess

IsSuccess returns true when this create deployment template v2 unauthorized response has a 2xx status code

func (*CreateDeploymentTemplateV2Unauthorized) String

type DeleteDeploymentTemplateV2BadRequest

type DeleteDeploymentTemplateV2BadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteDeploymentTemplateV2BadRequest describes a response with status code 400, with default header values.

The requested region is not supported. (code: `templates.region_not_found`)

func NewDeleteDeploymentTemplateV2BadRequest

func NewDeleteDeploymentTemplateV2BadRequest() *DeleteDeploymentTemplateV2BadRequest

NewDeleteDeploymentTemplateV2BadRequest creates a DeleteDeploymentTemplateV2BadRequest with default headers values

func (*DeleteDeploymentTemplateV2BadRequest) Code

Code gets the status code for the delete deployment template v2 bad request response

func (*DeleteDeploymentTemplateV2BadRequest) Error

func (*DeleteDeploymentTemplateV2BadRequest) GetPayload

func (*DeleteDeploymentTemplateV2BadRequest) IsClientError

func (o *DeleteDeploymentTemplateV2BadRequest) IsClientError() bool

IsClientError returns true when this delete deployment template v2 bad request response has a 4xx status code

func (*DeleteDeploymentTemplateV2BadRequest) IsCode

IsCode returns true when this delete deployment template v2 bad request response a status code equal to that given

func (*DeleteDeploymentTemplateV2BadRequest) IsRedirect

IsRedirect returns true when this delete deployment template v2 bad request response has a 3xx status code

func (*DeleteDeploymentTemplateV2BadRequest) IsServerError

func (o *DeleteDeploymentTemplateV2BadRequest) IsServerError() bool

IsServerError returns true when this delete deployment template v2 bad request response has a 5xx status code

func (*DeleteDeploymentTemplateV2BadRequest) IsSuccess

IsSuccess returns true when this delete deployment template v2 bad request response has a 2xx status code

func (*DeleteDeploymentTemplateV2BadRequest) String

type DeleteDeploymentTemplateV2NotFound

type DeleteDeploymentTemplateV2NotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteDeploymentTemplateV2NotFound describes a response with status code 404, with default header values.

The deployment template specified by {template_id} cannot be found. (code: `templates.template_not_found`)

func NewDeleteDeploymentTemplateV2NotFound

func NewDeleteDeploymentTemplateV2NotFound() *DeleteDeploymentTemplateV2NotFound

NewDeleteDeploymentTemplateV2NotFound creates a DeleteDeploymentTemplateV2NotFound with default headers values

func (*DeleteDeploymentTemplateV2NotFound) Code

Code gets the status code for the delete deployment template v2 not found response

func (*DeleteDeploymentTemplateV2NotFound) Error

func (*DeleteDeploymentTemplateV2NotFound) GetPayload

func (*DeleteDeploymentTemplateV2NotFound) IsClientError

func (o *DeleteDeploymentTemplateV2NotFound) IsClientError() bool

IsClientError returns true when this delete deployment template v2 not found response has a 4xx status code

func (*DeleteDeploymentTemplateV2NotFound) IsCode

IsCode returns true when this delete deployment template v2 not found response a status code equal to that given

func (*DeleteDeploymentTemplateV2NotFound) IsRedirect

func (o *DeleteDeploymentTemplateV2NotFound) IsRedirect() bool

IsRedirect returns true when this delete deployment template v2 not found response has a 3xx status code

func (*DeleteDeploymentTemplateV2NotFound) IsServerError

func (o *DeleteDeploymentTemplateV2NotFound) IsServerError() bool

IsServerError returns true when this delete deployment template v2 not found response has a 5xx status code

func (*DeleteDeploymentTemplateV2NotFound) IsSuccess

IsSuccess returns true when this delete deployment template v2 not found response has a 2xx status code

func (*DeleteDeploymentTemplateV2NotFound) String

type DeleteDeploymentTemplateV2OK

type DeleteDeploymentTemplateV2OK struct {
	Payload models.EmptyResponse
}

DeleteDeploymentTemplateV2OK describes a response with status code 200, with default header values.

The deployment template was successfully deleted.

func NewDeleteDeploymentTemplateV2OK

func NewDeleteDeploymentTemplateV2OK() *DeleteDeploymentTemplateV2OK

NewDeleteDeploymentTemplateV2OK creates a DeleteDeploymentTemplateV2OK with default headers values

func (*DeleteDeploymentTemplateV2OK) Code

Code gets the status code for the delete deployment template v2 o k response

func (*DeleteDeploymentTemplateV2OK) Error

func (*DeleteDeploymentTemplateV2OK) GetPayload

func (*DeleteDeploymentTemplateV2OK) IsClientError

func (o *DeleteDeploymentTemplateV2OK) IsClientError() bool

IsClientError returns true when this delete deployment template v2 o k response has a 4xx status code

func (*DeleteDeploymentTemplateV2OK) IsCode

func (o *DeleteDeploymentTemplateV2OK) IsCode(code int) bool

IsCode returns true when this delete deployment template v2 o k response a status code equal to that given

func (*DeleteDeploymentTemplateV2OK) IsRedirect

func (o *DeleteDeploymentTemplateV2OK) IsRedirect() bool

IsRedirect returns true when this delete deployment template v2 o k response has a 3xx status code

func (*DeleteDeploymentTemplateV2OK) IsServerError

func (o *DeleteDeploymentTemplateV2OK) IsServerError() bool

IsServerError returns true when this delete deployment template v2 o k response has a 5xx status code

func (*DeleteDeploymentTemplateV2OK) IsSuccess

func (o *DeleteDeploymentTemplateV2OK) IsSuccess() bool

IsSuccess returns true when this delete deployment template v2 o k response has a 2xx status code

func (*DeleteDeploymentTemplateV2OK) String

type DeleteDeploymentTemplateV2Params

type DeleteDeploymentTemplateV2Params struct {

	/* Region.

	   Region of the deployment template
	*/
	Region string

	/* TemplateID.

	   The identifier for the deployment template.
	*/
	TemplateID string

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

DeleteDeploymentTemplateV2Params contains all the parameters to send to the API endpoint

for the delete deployment template v2 operation.

Typically these are written to a http.Request.

func NewDeleteDeploymentTemplateV2Params

func NewDeleteDeploymentTemplateV2Params() *DeleteDeploymentTemplateV2Params

NewDeleteDeploymentTemplateV2Params creates a new DeleteDeploymentTemplateV2Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteDeploymentTemplateV2ParamsWithContext

func NewDeleteDeploymentTemplateV2ParamsWithContext(ctx context.Context) *DeleteDeploymentTemplateV2Params

NewDeleteDeploymentTemplateV2ParamsWithContext creates a new DeleteDeploymentTemplateV2Params object with the ability to set a context for a request.

func NewDeleteDeploymentTemplateV2ParamsWithHTTPClient

func NewDeleteDeploymentTemplateV2ParamsWithHTTPClient(client *http.Client) *DeleteDeploymentTemplateV2Params

NewDeleteDeploymentTemplateV2ParamsWithHTTPClient creates a new DeleteDeploymentTemplateV2Params object with the ability to set a custom HTTPClient for a request.

func NewDeleteDeploymentTemplateV2ParamsWithTimeout

func NewDeleteDeploymentTemplateV2ParamsWithTimeout(timeout time.Duration) *DeleteDeploymentTemplateV2Params

NewDeleteDeploymentTemplateV2ParamsWithTimeout creates a new DeleteDeploymentTemplateV2Params object with the ability to set a timeout on a request.

func (*DeleteDeploymentTemplateV2Params) SetContext

SetContext adds the context to the delete deployment template v2 params

func (*DeleteDeploymentTemplateV2Params) SetDefaults

func (o *DeleteDeploymentTemplateV2Params) SetDefaults()

SetDefaults hydrates default values in the delete deployment template v2 params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteDeploymentTemplateV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete deployment template v2 params

func (*DeleteDeploymentTemplateV2Params) SetRegion

func (o *DeleteDeploymentTemplateV2Params) SetRegion(region string)

SetRegion adds the region to the delete deployment template v2 params

func (*DeleteDeploymentTemplateV2Params) SetTemplateID

func (o *DeleteDeploymentTemplateV2Params) SetTemplateID(templateID string)

SetTemplateID adds the templateId to the delete deployment template v2 params

func (*DeleteDeploymentTemplateV2Params) SetTimeout

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

SetTimeout adds the timeout to the delete deployment template v2 params

func (*DeleteDeploymentTemplateV2Params) WithContext

WithContext adds the context to the delete deployment template v2 params

func (*DeleteDeploymentTemplateV2Params) WithDefaults

WithDefaults hydrates default values in the delete deployment template v2 params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteDeploymentTemplateV2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete deployment template v2 params

func (*DeleteDeploymentTemplateV2Params) WithRegion

WithRegion adds the region to the delete deployment template v2 params

func (*DeleteDeploymentTemplateV2Params) WithTemplateID

WithTemplateID adds the templateID to the delete deployment template v2 params

func (*DeleteDeploymentTemplateV2Params) WithTimeout

WithTimeout adds the timeout to the delete deployment template v2 params

func (*DeleteDeploymentTemplateV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDeploymentTemplateV2Reader

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

DeleteDeploymentTemplateV2Reader is a Reader for the DeleteDeploymentTemplateV2 structure.

func (*DeleteDeploymentTemplateV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteDeploymentTemplateV2Unauthorized

type DeleteDeploymentTemplateV2Unauthorized struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteDeploymentTemplateV2Unauthorized describes a response with status code 401, with default header values.

The user is not authorized to access requested region. (code: `templates.region_not_allowed`)

func NewDeleteDeploymentTemplateV2Unauthorized

func NewDeleteDeploymentTemplateV2Unauthorized() *DeleteDeploymentTemplateV2Unauthorized

NewDeleteDeploymentTemplateV2Unauthorized creates a DeleteDeploymentTemplateV2Unauthorized with default headers values

func (*DeleteDeploymentTemplateV2Unauthorized) Code

Code gets the status code for the delete deployment template v2 unauthorized response

func (*DeleteDeploymentTemplateV2Unauthorized) Error

func (*DeleteDeploymentTemplateV2Unauthorized) GetPayload

func (*DeleteDeploymentTemplateV2Unauthorized) IsClientError

func (o *DeleteDeploymentTemplateV2Unauthorized) IsClientError() bool

IsClientError returns true when this delete deployment template v2 unauthorized response has a 4xx status code

func (*DeleteDeploymentTemplateV2Unauthorized) IsCode

IsCode returns true when this delete deployment template v2 unauthorized response a status code equal to that given

func (*DeleteDeploymentTemplateV2Unauthorized) IsRedirect

IsRedirect returns true when this delete deployment template v2 unauthorized response has a 3xx status code

func (*DeleteDeploymentTemplateV2Unauthorized) IsServerError

func (o *DeleteDeploymentTemplateV2Unauthorized) IsServerError() bool

IsServerError returns true when this delete deployment template v2 unauthorized response has a 5xx status code

func (*DeleteDeploymentTemplateV2Unauthorized) IsSuccess

IsSuccess returns true when this delete deployment template v2 unauthorized response has a 2xx status code

func (*DeleteDeploymentTemplateV2Unauthorized) String

type GetDeploymentTemplateV2BadRequest

type GetDeploymentTemplateV2BadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetDeploymentTemplateV2BadRequest describes a response with status code 400, with default header values.

The requested region is not supported. (code: `templates.region_not_found`)

func NewGetDeploymentTemplateV2BadRequest

func NewGetDeploymentTemplateV2BadRequest() *GetDeploymentTemplateV2BadRequest

NewGetDeploymentTemplateV2BadRequest creates a GetDeploymentTemplateV2BadRequest with default headers values

func (*GetDeploymentTemplateV2BadRequest) Code

Code gets the status code for the get deployment template v2 bad request response

func (*GetDeploymentTemplateV2BadRequest) Error

func (*GetDeploymentTemplateV2BadRequest) GetPayload

func (*GetDeploymentTemplateV2BadRequest) IsClientError

func (o *GetDeploymentTemplateV2BadRequest) IsClientError() bool

IsClientError returns true when this get deployment template v2 bad request response has a 4xx status code

func (*GetDeploymentTemplateV2BadRequest) IsCode

func (o *GetDeploymentTemplateV2BadRequest) IsCode(code int) bool

IsCode returns true when this get deployment template v2 bad request response a status code equal to that given

func (*GetDeploymentTemplateV2BadRequest) IsRedirect

func (o *GetDeploymentTemplateV2BadRequest) IsRedirect() bool

IsRedirect returns true when this get deployment template v2 bad request response has a 3xx status code

func (*GetDeploymentTemplateV2BadRequest) IsServerError

func (o *GetDeploymentTemplateV2BadRequest) IsServerError() bool

IsServerError returns true when this get deployment template v2 bad request response has a 5xx status code

func (*GetDeploymentTemplateV2BadRequest) IsSuccess

func (o *GetDeploymentTemplateV2BadRequest) IsSuccess() bool

IsSuccess returns true when this get deployment template v2 bad request response has a 2xx status code

func (*GetDeploymentTemplateV2BadRequest) String

type GetDeploymentTemplateV2NotFound

type GetDeploymentTemplateV2NotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetDeploymentTemplateV2NotFound describes a response with status code 404, with default header values.

The deployment template specified by {template_id} cannot be found. (code: `templates.template_not_found`)

func NewGetDeploymentTemplateV2NotFound

func NewGetDeploymentTemplateV2NotFound() *GetDeploymentTemplateV2NotFound

NewGetDeploymentTemplateV2NotFound creates a GetDeploymentTemplateV2NotFound with default headers values

func (*GetDeploymentTemplateV2NotFound) Code

Code gets the status code for the get deployment template v2 not found response

func (*GetDeploymentTemplateV2NotFound) Error

func (*GetDeploymentTemplateV2NotFound) GetPayload

func (*GetDeploymentTemplateV2NotFound) IsClientError

func (o *GetDeploymentTemplateV2NotFound) IsClientError() bool

IsClientError returns true when this get deployment template v2 not found response has a 4xx status code

func (*GetDeploymentTemplateV2NotFound) IsCode

func (o *GetDeploymentTemplateV2NotFound) IsCode(code int) bool

IsCode returns true when this get deployment template v2 not found response a status code equal to that given

func (*GetDeploymentTemplateV2NotFound) IsRedirect

func (o *GetDeploymentTemplateV2NotFound) IsRedirect() bool

IsRedirect returns true when this get deployment template v2 not found response has a 3xx status code

func (*GetDeploymentTemplateV2NotFound) IsServerError

func (o *GetDeploymentTemplateV2NotFound) IsServerError() bool

IsServerError returns true when this get deployment template v2 not found response has a 5xx status code

func (*GetDeploymentTemplateV2NotFound) IsSuccess

func (o *GetDeploymentTemplateV2NotFound) IsSuccess() bool

IsSuccess returns true when this get deployment template v2 not found response has a 2xx status code

func (*GetDeploymentTemplateV2NotFound) String

type GetDeploymentTemplateV2OK

type GetDeploymentTemplateV2OK struct {
	Payload *models.DeploymentTemplateInfoV2
}

GetDeploymentTemplateV2OK describes a response with status code 200, with default header values.

The deployment template was found and returned successfully.

func NewGetDeploymentTemplateV2OK

func NewGetDeploymentTemplateV2OK() *GetDeploymentTemplateV2OK

NewGetDeploymentTemplateV2OK creates a GetDeploymentTemplateV2OK with default headers values

func (*GetDeploymentTemplateV2OK) Code

func (o *GetDeploymentTemplateV2OK) Code() int

Code gets the status code for the get deployment template v2 o k response

func (*GetDeploymentTemplateV2OK) Error

func (o *GetDeploymentTemplateV2OK) Error() string

func (*GetDeploymentTemplateV2OK) GetPayload

func (*GetDeploymentTemplateV2OK) IsClientError

func (o *GetDeploymentTemplateV2OK) IsClientError() bool

IsClientError returns true when this get deployment template v2 o k response has a 4xx status code

func (*GetDeploymentTemplateV2OK) IsCode

func (o *GetDeploymentTemplateV2OK) IsCode(code int) bool

IsCode returns true when this get deployment template v2 o k response a status code equal to that given

func (*GetDeploymentTemplateV2OK) IsRedirect

func (o *GetDeploymentTemplateV2OK) IsRedirect() bool

IsRedirect returns true when this get deployment template v2 o k response has a 3xx status code

func (*GetDeploymentTemplateV2OK) IsServerError

func (o *GetDeploymentTemplateV2OK) IsServerError() bool

IsServerError returns true when this get deployment template v2 o k response has a 5xx status code

func (*GetDeploymentTemplateV2OK) IsSuccess

func (o *GetDeploymentTemplateV2OK) IsSuccess() bool

IsSuccess returns true when this get deployment template v2 o k response has a 2xx status code

func (*GetDeploymentTemplateV2OK) String

func (o *GetDeploymentTemplateV2OK) String() string

type GetDeploymentTemplateV2Params

type GetDeploymentTemplateV2Params struct {

	/* Region.

	   Region of the deployment template
	*/
	Region string

	/* ShowInstanceConfigurations.

	   If true, will return details for each instance configuration referenced by the template.

	   Default: true
	*/
	ShowInstanceConfigurations *bool

	/* ShowMaxZones.

	   If true, will populate the max_zones field in the instance configurations. Only relevant if show_instance_configurations=true.
	*/
	ShowMaxZones *bool

	/* StackVersion.

	   If present, it will cause the returned deployment template to be adapted to return only the elements allowed in that version.
	*/
	StackVersion *string

	/* TemplateID.

	   The identifier for the deployment template.
	*/
	TemplateID string

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

GetDeploymentTemplateV2Params contains all the parameters to send to the API endpoint

for the get deployment template v2 operation.

Typically these are written to a http.Request.

func NewGetDeploymentTemplateV2Params

func NewGetDeploymentTemplateV2Params() *GetDeploymentTemplateV2Params

NewGetDeploymentTemplateV2Params creates a new GetDeploymentTemplateV2Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetDeploymentTemplateV2ParamsWithContext

func NewGetDeploymentTemplateV2ParamsWithContext(ctx context.Context) *GetDeploymentTemplateV2Params

NewGetDeploymentTemplateV2ParamsWithContext creates a new GetDeploymentTemplateV2Params object with the ability to set a context for a request.

func NewGetDeploymentTemplateV2ParamsWithHTTPClient

func NewGetDeploymentTemplateV2ParamsWithHTTPClient(client *http.Client) *GetDeploymentTemplateV2Params

NewGetDeploymentTemplateV2ParamsWithHTTPClient creates a new GetDeploymentTemplateV2Params object with the ability to set a custom HTTPClient for a request.

func NewGetDeploymentTemplateV2ParamsWithTimeout

func NewGetDeploymentTemplateV2ParamsWithTimeout(timeout time.Duration) *GetDeploymentTemplateV2Params

NewGetDeploymentTemplateV2ParamsWithTimeout creates a new GetDeploymentTemplateV2Params object with the ability to set a timeout on a request.

func (*GetDeploymentTemplateV2Params) SetContext

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

SetContext adds the context to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) SetDefaults

func (o *GetDeploymentTemplateV2Params) SetDefaults()

SetDefaults hydrates default values in the get deployment template v2 params (not the query body).

All values with no default are reset to their zero value.

func (*GetDeploymentTemplateV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) SetRegion

func (o *GetDeploymentTemplateV2Params) SetRegion(region string)

SetRegion adds the region to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) SetShowInstanceConfigurations

func (o *GetDeploymentTemplateV2Params) SetShowInstanceConfigurations(showInstanceConfigurations *bool)

SetShowInstanceConfigurations adds the showInstanceConfigurations to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) SetShowMaxZones

func (o *GetDeploymentTemplateV2Params) SetShowMaxZones(showMaxZones *bool)

SetShowMaxZones adds the showMaxZones to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) SetStackVersion

func (o *GetDeploymentTemplateV2Params) SetStackVersion(stackVersion *string)

SetStackVersion adds the stackVersion to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) SetTemplateID

func (o *GetDeploymentTemplateV2Params) SetTemplateID(templateID string)

SetTemplateID adds the templateId to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) SetTimeout

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

SetTimeout adds the timeout to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) WithContext

WithContext adds the context to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) WithDefaults

WithDefaults hydrates default values in the get deployment template v2 params (not the query body).

All values with no default are reset to their zero value.

func (*GetDeploymentTemplateV2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) WithRegion

WithRegion adds the region to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) WithShowInstanceConfigurations

func (o *GetDeploymentTemplateV2Params) WithShowInstanceConfigurations(showInstanceConfigurations *bool) *GetDeploymentTemplateV2Params

WithShowInstanceConfigurations adds the showInstanceConfigurations to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) WithShowMaxZones

func (o *GetDeploymentTemplateV2Params) WithShowMaxZones(showMaxZones *bool) *GetDeploymentTemplateV2Params

WithShowMaxZones adds the showMaxZones to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) WithStackVersion

func (o *GetDeploymentTemplateV2Params) WithStackVersion(stackVersion *string) *GetDeploymentTemplateV2Params

WithStackVersion adds the stackVersion to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) WithTemplateID

WithTemplateID adds the templateID to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) WithTimeout

WithTimeout adds the timeout to the get deployment template v2 params

func (*GetDeploymentTemplateV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeploymentTemplateV2Reader

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

GetDeploymentTemplateV2Reader is a Reader for the GetDeploymentTemplateV2 structure.

func (*GetDeploymentTemplateV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDeploymentTemplateV2Unauthorized

type GetDeploymentTemplateV2Unauthorized struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetDeploymentTemplateV2Unauthorized describes a response with status code 401, with default header values.

The user is not authorized to access requested region. (code: `templates.region_not_allowed`)

func NewGetDeploymentTemplateV2Unauthorized

func NewGetDeploymentTemplateV2Unauthorized() *GetDeploymentTemplateV2Unauthorized

NewGetDeploymentTemplateV2Unauthorized creates a GetDeploymentTemplateV2Unauthorized with default headers values

func (*GetDeploymentTemplateV2Unauthorized) Code

Code gets the status code for the get deployment template v2 unauthorized response

func (*GetDeploymentTemplateV2Unauthorized) Error

func (*GetDeploymentTemplateV2Unauthorized) GetPayload

func (*GetDeploymentTemplateV2Unauthorized) IsClientError

func (o *GetDeploymentTemplateV2Unauthorized) IsClientError() bool

IsClientError returns true when this get deployment template v2 unauthorized response has a 4xx status code

func (*GetDeploymentTemplateV2Unauthorized) IsCode

IsCode returns true when this get deployment template v2 unauthorized response a status code equal to that given

func (*GetDeploymentTemplateV2Unauthorized) IsRedirect

func (o *GetDeploymentTemplateV2Unauthorized) IsRedirect() bool

IsRedirect returns true when this get deployment template v2 unauthorized response has a 3xx status code

func (*GetDeploymentTemplateV2Unauthorized) IsServerError

func (o *GetDeploymentTemplateV2Unauthorized) IsServerError() bool

IsServerError returns true when this get deployment template v2 unauthorized response has a 5xx status code

func (*GetDeploymentTemplateV2Unauthorized) IsSuccess

IsSuccess returns true when this get deployment template v2 unauthorized response has a 2xx status code

func (*GetDeploymentTemplateV2Unauthorized) String

type GetDeploymentTemplatesV2BadRequest

type GetDeploymentTemplatesV2BadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetDeploymentTemplatesV2BadRequest describes a response with status code 400, with default header values.

The requested region was not found. (code: `templates.region_not_found`)

func NewGetDeploymentTemplatesV2BadRequest

func NewGetDeploymentTemplatesV2BadRequest() *GetDeploymentTemplatesV2BadRequest

NewGetDeploymentTemplatesV2BadRequest creates a GetDeploymentTemplatesV2BadRequest with default headers values

func (*GetDeploymentTemplatesV2BadRequest) Code

Code gets the status code for the get deployment templates v2 bad request response

func (*GetDeploymentTemplatesV2BadRequest) Error

func (*GetDeploymentTemplatesV2BadRequest) GetPayload

func (*GetDeploymentTemplatesV2BadRequest) IsClientError

func (o *GetDeploymentTemplatesV2BadRequest) IsClientError() bool

IsClientError returns true when this get deployment templates v2 bad request response has a 4xx status code

func (*GetDeploymentTemplatesV2BadRequest) IsCode

IsCode returns true when this get deployment templates v2 bad request response a status code equal to that given

func (*GetDeploymentTemplatesV2BadRequest) IsRedirect

func (o *GetDeploymentTemplatesV2BadRequest) IsRedirect() bool

IsRedirect returns true when this get deployment templates v2 bad request response has a 3xx status code

func (*GetDeploymentTemplatesV2BadRequest) IsServerError

func (o *GetDeploymentTemplatesV2BadRequest) IsServerError() bool

IsServerError returns true when this get deployment templates v2 bad request response has a 5xx status code

func (*GetDeploymentTemplatesV2BadRequest) IsSuccess

IsSuccess returns true when this get deployment templates v2 bad request response has a 2xx status code

func (*GetDeploymentTemplatesV2BadRequest) String

type GetDeploymentTemplatesV2OK

type GetDeploymentTemplatesV2OK struct {
	Payload []*models.DeploymentTemplateInfoV2
}

GetDeploymentTemplatesV2OK describes a response with status code 200, with default header values.

The deployment templates were returned successfully.

func NewGetDeploymentTemplatesV2OK

func NewGetDeploymentTemplatesV2OK() *GetDeploymentTemplatesV2OK

NewGetDeploymentTemplatesV2OK creates a GetDeploymentTemplatesV2OK with default headers values

func (*GetDeploymentTemplatesV2OK) Code

func (o *GetDeploymentTemplatesV2OK) Code() int

Code gets the status code for the get deployment templates v2 o k response

func (*GetDeploymentTemplatesV2OK) Error

func (*GetDeploymentTemplatesV2OK) GetPayload

func (*GetDeploymentTemplatesV2OK) IsClientError

func (o *GetDeploymentTemplatesV2OK) IsClientError() bool

IsClientError returns true when this get deployment templates v2 o k response has a 4xx status code

func (*GetDeploymentTemplatesV2OK) IsCode

func (o *GetDeploymentTemplatesV2OK) IsCode(code int) bool

IsCode returns true when this get deployment templates v2 o k response a status code equal to that given

func (*GetDeploymentTemplatesV2OK) IsRedirect

func (o *GetDeploymentTemplatesV2OK) IsRedirect() bool

IsRedirect returns true when this get deployment templates v2 o k response has a 3xx status code

func (*GetDeploymentTemplatesV2OK) IsServerError

func (o *GetDeploymentTemplatesV2OK) IsServerError() bool

IsServerError returns true when this get deployment templates v2 o k response has a 5xx status code

func (*GetDeploymentTemplatesV2OK) IsSuccess

func (o *GetDeploymentTemplatesV2OK) IsSuccess() bool

IsSuccess returns true when this get deployment templates v2 o k response has a 2xx status code

func (*GetDeploymentTemplatesV2OK) String

func (o *GetDeploymentTemplatesV2OK) String() string

type GetDeploymentTemplatesV2Params

type GetDeploymentTemplatesV2Params struct {

	/* Metadata.

	   An optional key/value pair in the form of (key:value) that will act as a filter and exclude any templates that do not have a matching metadata item associated.
	*/
	Metadata *string

	/* Region.

	   Region of the deployment templates
	*/
	Region string

	/* ShowHidden.

	   If true, templates flagged as hidden will be returned.
	*/
	ShowHidden *bool

	/* ShowInstanceConfigurations.

	   If true, will return details for each instance configuration referenced by the template.

	   Default: true
	*/
	ShowInstanceConfigurations *bool

	/* ShowMaxZones.

	   If true, will populate the max_zones field in the instance configurations. Only relevant if show_instance_configurations=true.
	*/
	ShowMaxZones *bool

	/* StackVersion.

	   If present, it will cause the returned deployment templates to be adapted to return only the elements allowed in that version.
	*/
	StackVersion *string

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

GetDeploymentTemplatesV2Params contains all the parameters to send to the API endpoint

for the get deployment templates v2 operation.

Typically these are written to a http.Request.

func NewGetDeploymentTemplatesV2Params

func NewGetDeploymentTemplatesV2Params() *GetDeploymentTemplatesV2Params

NewGetDeploymentTemplatesV2Params creates a new GetDeploymentTemplatesV2Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetDeploymentTemplatesV2ParamsWithContext

func NewGetDeploymentTemplatesV2ParamsWithContext(ctx context.Context) *GetDeploymentTemplatesV2Params

NewGetDeploymentTemplatesV2ParamsWithContext creates a new GetDeploymentTemplatesV2Params object with the ability to set a context for a request.

func NewGetDeploymentTemplatesV2ParamsWithHTTPClient

func NewGetDeploymentTemplatesV2ParamsWithHTTPClient(client *http.Client) *GetDeploymentTemplatesV2Params

NewGetDeploymentTemplatesV2ParamsWithHTTPClient creates a new GetDeploymentTemplatesV2Params object with the ability to set a custom HTTPClient for a request.

func NewGetDeploymentTemplatesV2ParamsWithTimeout

func NewGetDeploymentTemplatesV2ParamsWithTimeout(timeout time.Duration) *GetDeploymentTemplatesV2Params

NewGetDeploymentTemplatesV2ParamsWithTimeout creates a new GetDeploymentTemplatesV2Params object with the ability to set a timeout on a request.

func (*GetDeploymentTemplatesV2Params) SetContext

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

SetContext adds the context to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) SetDefaults

func (o *GetDeploymentTemplatesV2Params) SetDefaults()

SetDefaults hydrates default values in the get deployment templates v2 params (not the query body).

All values with no default are reset to their zero value.

func (*GetDeploymentTemplatesV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) SetMetadata

func (o *GetDeploymentTemplatesV2Params) SetMetadata(metadata *string)

SetMetadata adds the metadata to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) SetRegion

func (o *GetDeploymentTemplatesV2Params) SetRegion(region string)

SetRegion adds the region to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) SetShowHidden

func (o *GetDeploymentTemplatesV2Params) SetShowHidden(showHidden *bool)

SetShowHidden adds the showHidden to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) SetShowInstanceConfigurations

func (o *GetDeploymentTemplatesV2Params) SetShowInstanceConfigurations(showInstanceConfigurations *bool)

SetShowInstanceConfigurations adds the showInstanceConfigurations to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) SetShowMaxZones

func (o *GetDeploymentTemplatesV2Params) SetShowMaxZones(showMaxZones *bool)

SetShowMaxZones adds the showMaxZones to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) SetStackVersion

func (o *GetDeploymentTemplatesV2Params) SetStackVersion(stackVersion *string)

SetStackVersion adds the stackVersion to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) SetTimeout

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

SetTimeout adds the timeout to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) WithContext

WithContext adds the context to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) WithDefaults

WithDefaults hydrates default values in the get deployment templates v2 params (not the query body).

All values with no default are reset to their zero value.

func (*GetDeploymentTemplatesV2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) WithMetadata

WithMetadata adds the metadata to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) WithRegion

WithRegion adds the region to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) WithShowHidden

func (o *GetDeploymentTemplatesV2Params) WithShowHidden(showHidden *bool) *GetDeploymentTemplatesV2Params

WithShowHidden adds the showHidden to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) WithShowInstanceConfigurations

func (o *GetDeploymentTemplatesV2Params) WithShowInstanceConfigurations(showInstanceConfigurations *bool) *GetDeploymentTemplatesV2Params

WithShowInstanceConfigurations adds the showInstanceConfigurations to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) WithShowMaxZones

func (o *GetDeploymentTemplatesV2Params) WithShowMaxZones(showMaxZones *bool) *GetDeploymentTemplatesV2Params

WithShowMaxZones adds the showMaxZones to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) WithStackVersion

func (o *GetDeploymentTemplatesV2Params) WithStackVersion(stackVersion *string) *GetDeploymentTemplatesV2Params

WithStackVersion adds the stackVersion to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) WithTimeout

WithTimeout adds the timeout to the get deployment templates v2 params

func (*GetDeploymentTemplatesV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeploymentTemplatesV2Reader

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

GetDeploymentTemplatesV2Reader is a Reader for the GetDeploymentTemplatesV2 structure.

func (*GetDeploymentTemplatesV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDeploymentTemplatesV2Unauthorized

type GetDeploymentTemplatesV2Unauthorized struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetDeploymentTemplatesV2Unauthorized describes a response with status code 401, with default header values.

The user is not authorized to access requested region. (code: `templates.region_not_allowed`)

func NewGetDeploymentTemplatesV2Unauthorized

func NewGetDeploymentTemplatesV2Unauthorized() *GetDeploymentTemplatesV2Unauthorized

NewGetDeploymentTemplatesV2Unauthorized creates a GetDeploymentTemplatesV2Unauthorized with default headers values

func (*GetDeploymentTemplatesV2Unauthorized) Code

Code gets the status code for the get deployment templates v2 unauthorized response

func (*GetDeploymentTemplatesV2Unauthorized) Error

func (*GetDeploymentTemplatesV2Unauthorized) GetPayload

func (*GetDeploymentTemplatesV2Unauthorized) IsClientError

func (o *GetDeploymentTemplatesV2Unauthorized) IsClientError() bool

IsClientError returns true when this get deployment templates v2 unauthorized response has a 4xx status code

func (*GetDeploymentTemplatesV2Unauthorized) IsCode

IsCode returns true when this get deployment templates v2 unauthorized response a status code equal to that given

func (*GetDeploymentTemplatesV2Unauthorized) IsRedirect

IsRedirect returns true when this get deployment templates v2 unauthorized response has a 3xx status code

func (*GetDeploymentTemplatesV2Unauthorized) IsServerError

func (o *GetDeploymentTemplatesV2Unauthorized) IsServerError() bool

IsServerError returns true when this get deployment templates v2 unauthorized response has a 5xx status code

func (*GetDeploymentTemplatesV2Unauthorized) IsSuccess

IsSuccess returns true when this get deployment templates v2 unauthorized response has a 2xx status code

func (*GetDeploymentTemplatesV2Unauthorized) String

type SetDeploymentTemplateV2BadRequest

type SetDeploymentTemplateV2BadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetDeploymentTemplateV2BadRequest describes a response with status code 400, with default header values.

The requested region is not supported. (code: `templates.region_not_found`)

func NewSetDeploymentTemplateV2BadRequest

func NewSetDeploymentTemplateV2BadRequest() *SetDeploymentTemplateV2BadRequest

NewSetDeploymentTemplateV2BadRequest creates a SetDeploymentTemplateV2BadRequest with default headers values

func (*SetDeploymentTemplateV2BadRequest) Code

Code gets the status code for the set deployment template v2 bad request response

func (*SetDeploymentTemplateV2BadRequest) Error

func (*SetDeploymentTemplateV2BadRequest) GetPayload

func (*SetDeploymentTemplateV2BadRequest) IsClientError

func (o *SetDeploymentTemplateV2BadRequest) IsClientError() bool

IsClientError returns true when this set deployment template v2 bad request response has a 4xx status code

func (*SetDeploymentTemplateV2BadRequest) IsCode

func (o *SetDeploymentTemplateV2BadRequest) IsCode(code int) bool

IsCode returns true when this set deployment template v2 bad request response a status code equal to that given

func (*SetDeploymentTemplateV2BadRequest) IsRedirect

func (o *SetDeploymentTemplateV2BadRequest) IsRedirect() bool

IsRedirect returns true when this set deployment template v2 bad request response has a 3xx status code

func (*SetDeploymentTemplateV2BadRequest) IsServerError

func (o *SetDeploymentTemplateV2BadRequest) IsServerError() bool

IsServerError returns true when this set deployment template v2 bad request response has a 5xx status code

func (*SetDeploymentTemplateV2BadRequest) IsSuccess

func (o *SetDeploymentTemplateV2BadRequest) IsSuccess() bool

IsSuccess returns true when this set deployment template v2 bad request response has a 2xx status code

func (*SetDeploymentTemplateV2BadRequest) String

type SetDeploymentTemplateV2Conflict

type SetDeploymentTemplateV2Conflict struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetDeploymentTemplateV2Conflict describes a response with status code 409, with default header values.

The version supplied in the request conflicted with the version found on the server. (code: `templates.version_conflict`)

func NewSetDeploymentTemplateV2Conflict

func NewSetDeploymentTemplateV2Conflict() *SetDeploymentTemplateV2Conflict

NewSetDeploymentTemplateV2Conflict creates a SetDeploymentTemplateV2Conflict with default headers values

func (*SetDeploymentTemplateV2Conflict) Code

Code gets the status code for the set deployment template v2 conflict response

func (*SetDeploymentTemplateV2Conflict) Error

func (*SetDeploymentTemplateV2Conflict) GetPayload

func (*SetDeploymentTemplateV2Conflict) IsClientError

func (o *SetDeploymentTemplateV2Conflict) IsClientError() bool

IsClientError returns true when this set deployment template v2 conflict response has a 4xx status code

func (*SetDeploymentTemplateV2Conflict) IsCode

func (o *SetDeploymentTemplateV2Conflict) IsCode(code int) bool

IsCode returns true when this set deployment template v2 conflict response a status code equal to that given

func (*SetDeploymentTemplateV2Conflict) IsRedirect

func (o *SetDeploymentTemplateV2Conflict) IsRedirect() bool

IsRedirect returns true when this set deployment template v2 conflict response has a 3xx status code

func (*SetDeploymentTemplateV2Conflict) IsServerError

func (o *SetDeploymentTemplateV2Conflict) IsServerError() bool

IsServerError returns true when this set deployment template v2 conflict response has a 5xx status code

func (*SetDeploymentTemplateV2Conflict) IsSuccess

func (o *SetDeploymentTemplateV2Conflict) IsSuccess() bool

IsSuccess returns true when this set deployment template v2 conflict response has a 2xx status code

func (*SetDeploymentTemplateV2Conflict) String

type SetDeploymentTemplateV2Created

type SetDeploymentTemplateV2Created struct {
	Payload *models.IDResponse
}

SetDeploymentTemplateV2Created describes a response with status code 201, with default header values.

The deployment definition was valid and the template was created.

func NewSetDeploymentTemplateV2Created

func NewSetDeploymentTemplateV2Created() *SetDeploymentTemplateV2Created

NewSetDeploymentTemplateV2Created creates a SetDeploymentTemplateV2Created with default headers values

func (*SetDeploymentTemplateV2Created) Code

Code gets the status code for the set deployment template v2 created response

func (*SetDeploymentTemplateV2Created) Error

func (*SetDeploymentTemplateV2Created) GetPayload

func (*SetDeploymentTemplateV2Created) IsClientError

func (o *SetDeploymentTemplateV2Created) IsClientError() bool

IsClientError returns true when this set deployment template v2 created response has a 4xx status code

func (*SetDeploymentTemplateV2Created) IsCode

func (o *SetDeploymentTemplateV2Created) IsCode(code int) bool

IsCode returns true when this set deployment template v2 created response a status code equal to that given

func (*SetDeploymentTemplateV2Created) IsRedirect

func (o *SetDeploymentTemplateV2Created) IsRedirect() bool

IsRedirect returns true when this set deployment template v2 created response has a 3xx status code

func (*SetDeploymentTemplateV2Created) IsServerError

func (o *SetDeploymentTemplateV2Created) IsServerError() bool

IsServerError returns true when this set deployment template v2 created response has a 5xx status code

func (*SetDeploymentTemplateV2Created) IsSuccess

func (o *SetDeploymentTemplateV2Created) IsSuccess() bool

IsSuccess returns true when this set deployment template v2 created response has a 2xx status code

func (*SetDeploymentTemplateV2Created) String

type SetDeploymentTemplateV2NotFound

type SetDeploymentTemplateV2NotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetDeploymentTemplateV2NotFound describes a response with status code 404, with default header values.

The deployment template specified by {template_id} cannot be found. (code: `templates.template_not_found`)

func NewSetDeploymentTemplateV2NotFound

func NewSetDeploymentTemplateV2NotFound() *SetDeploymentTemplateV2NotFound

NewSetDeploymentTemplateV2NotFound creates a SetDeploymentTemplateV2NotFound with default headers values

func (*SetDeploymentTemplateV2NotFound) Code

Code gets the status code for the set deployment template v2 not found response

func (*SetDeploymentTemplateV2NotFound) Error

func (*SetDeploymentTemplateV2NotFound) GetPayload

func (*SetDeploymentTemplateV2NotFound) IsClientError

func (o *SetDeploymentTemplateV2NotFound) IsClientError() bool

IsClientError returns true when this set deployment template v2 not found response has a 4xx status code

func (*SetDeploymentTemplateV2NotFound) IsCode

func (o *SetDeploymentTemplateV2NotFound) IsCode(code int) bool

IsCode returns true when this set deployment template v2 not found response a status code equal to that given

func (*SetDeploymentTemplateV2NotFound) IsRedirect

func (o *SetDeploymentTemplateV2NotFound) IsRedirect() bool

IsRedirect returns true when this set deployment template v2 not found response has a 3xx status code

func (*SetDeploymentTemplateV2NotFound) IsServerError

func (o *SetDeploymentTemplateV2NotFound) IsServerError() bool

IsServerError returns true when this set deployment template v2 not found response has a 5xx status code

func (*SetDeploymentTemplateV2NotFound) IsSuccess

func (o *SetDeploymentTemplateV2NotFound) IsSuccess() bool

IsSuccess returns true when this set deployment template v2 not found response has a 2xx status code

func (*SetDeploymentTemplateV2NotFound) String

type SetDeploymentTemplateV2OK

type SetDeploymentTemplateV2OK struct {
	Payload *models.IDResponse
}

SetDeploymentTemplateV2OK describes a response with status code 200, with default header values.

The deployment definition was valid and the template has been updated.

func NewSetDeploymentTemplateV2OK

func NewSetDeploymentTemplateV2OK() *SetDeploymentTemplateV2OK

NewSetDeploymentTemplateV2OK creates a SetDeploymentTemplateV2OK with default headers values

func (*SetDeploymentTemplateV2OK) Code

func (o *SetDeploymentTemplateV2OK) Code() int

Code gets the status code for the set deployment template v2 o k response

func (*SetDeploymentTemplateV2OK) Error

func (o *SetDeploymentTemplateV2OK) Error() string

func (*SetDeploymentTemplateV2OK) GetPayload

func (o *SetDeploymentTemplateV2OK) GetPayload() *models.IDResponse

func (*SetDeploymentTemplateV2OK) IsClientError

func (o *SetDeploymentTemplateV2OK) IsClientError() bool

IsClientError returns true when this set deployment template v2 o k response has a 4xx status code

func (*SetDeploymentTemplateV2OK) IsCode

func (o *SetDeploymentTemplateV2OK) IsCode(code int) bool

IsCode returns true when this set deployment template v2 o k response a status code equal to that given

func (*SetDeploymentTemplateV2OK) IsRedirect

func (o *SetDeploymentTemplateV2OK) IsRedirect() bool

IsRedirect returns true when this set deployment template v2 o k response has a 3xx status code

func (*SetDeploymentTemplateV2OK) IsServerError

func (o *SetDeploymentTemplateV2OK) IsServerError() bool

IsServerError returns true when this set deployment template v2 o k response has a 5xx status code

func (*SetDeploymentTemplateV2OK) IsSuccess

func (o *SetDeploymentTemplateV2OK) IsSuccess() bool

IsSuccess returns true when this set deployment template v2 o k response has a 2xx status code

func (*SetDeploymentTemplateV2OK) String

func (o *SetDeploymentTemplateV2OK) String() string

type SetDeploymentTemplateV2Params

type SetDeploymentTemplateV2Params struct {

	/* Body.

	   The deployment template definition.
	*/
	Body *models.DeploymentTemplateRequestBody

	/* CreateOnly.

	   If true, will fail if the deployment template already exists at the given id
	*/
	CreateOnly *bool

	/* Region.

	   Region of the deployment template
	*/
	Region string

	/* TemplateID.

	   The identifier for the deployment template.
	*/
	TemplateID string

	/* ValidateOnly.

	   If true, the deployment template definition will be validated but the template will not be updated.
	*/
	ValidateOnly *bool

	/* Version.

	   If specified, checks for conflicts against the version of the template (returned in 'x-cloud-resource-version' of the GET request)
	*/
	Version *string

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

SetDeploymentTemplateV2Params contains all the parameters to send to the API endpoint

for the set deployment template v2 operation.

Typically these are written to a http.Request.

func NewSetDeploymentTemplateV2Params

func NewSetDeploymentTemplateV2Params() *SetDeploymentTemplateV2Params

NewSetDeploymentTemplateV2Params creates a new SetDeploymentTemplateV2Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSetDeploymentTemplateV2ParamsWithContext

func NewSetDeploymentTemplateV2ParamsWithContext(ctx context.Context) *SetDeploymentTemplateV2Params

NewSetDeploymentTemplateV2ParamsWithContext creates a new SetDeploymentTemplateV2Params object with the ability to set a context for a request.

func NewSetDeploymentTemplateV2ParamsWithHTTPClient

func NewSetDeploymentTemplateV2ParamsWithHTTPClient(client *http.Client) *SetDeploymentTemplateV2Params

NewSetDeploymentTemplateV2ParamsWithHTTPClient creates a new SetDeploymentTemplateV2Params object with the ability to set a custom HTTPClient for a request.

func NewSetDeploymentTemplateV2ParamsWithTimeout

func NewSetDeploymentTemplateV2ParamsWithTimeout(timeout time.Duration) *SetDeploymentTemplateV2Params

NewSetDeploymentTemplateV2ParamsWithTimeout creates a new SetDeploymentTemplateV2Params object with the ability to set a timeout on a request.

func (*SetDeploymentTemplateV2Params) SetBody

SetBody adds the body to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) SetContext

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

SetContext adds the context to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) SetCreateOnly

func (o *SetDeploymentTemplateV2Params) SetCreateOnly(createOnly *bool)

SetCreateOnly adds the createOnly to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) SetDefaults

func (o *SetDeploymentTemplateV2Params) SetDefaults()

SetDefaults hydrates default values in the set deployment template v2 params (not the query body).

All values with no default are reset to their zero value.

func (*SetDeploymentTemplateV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) SetRegion

func (o *SetDeploymentTemplateV2Params) SetRegion(region string)

SetRegion adds the region to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) SetTemplateID

func (o *SetDeploymentTemplateV2Params) SetTemplateID(templateID string)

SetTemplateID adds the templateId to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) SetTimeout

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

SetTimeout adds the timeout to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) SetValidateOnly

func (o *SetDeploymentTemplateV2Params) SetValidateOnly(validateOnly *bool)

SetValidateOnly adds the validateOnly to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) SetVersion

func (o *SetDeploymentTemplateV2Params) SetVersion(version *string)

SetVersion adds the version to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) WithBody

WithBody adds the body to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) WithContext

WithContext adds the context to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) WithCreateOnly

func (o *SetDeploymentTemplateV2Params) WithCreateOnly(createOnly *bool) *SetDeploymentTemplateV2Params

WithCreateOnly adds the createOnly to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) WithDefaults

WithDefaults hydrates default values in the set deployment template v2 params (not the query body).

All values with no default are reset to their zero value.

func (*SetDeploymentTemplateV2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) WithRegion

WithRegion adds the region to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) WithTemplateID

WithTemplateID adds the templateID to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) WithTimeout

WithTimeout adds the timeout to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) WithValidateOnly

func (o *SetDeploymentTemplateV2Params) WithValidateOnly(validateOnly *bool) *SetDeploymentTemplateV2Params

WithValidateOnly adds the validateOnly to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) WithVersion

WithVersion adds the version to the set deployment template v2 params

func (*SetDeploymentTemplateV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetDeploymentTemplateV2Reader

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

SetDeploymentTemplateV2Reader is a Reader for the SetDeploymentTemplateV2 structure.

func (*SetDeploymentTemplateV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetDeploymentTemplateV2Unauthorized

type SetDeploymentTemplateV2Unauthorized struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetDeploymentTemplateV2Unauthorized describes a response with status code 401, with default header values.

The user is not authorized to access requested region. (code: `templates.region_not_allowed`)

func NewSetDeploymentTemplateV2Unauthorized

func NewSetDeploymentTemplateV2Unauthorized() *SetDeploymentTemplateV2Unauthorized

NewSetDeploymentTemplateV2Unauthorized creates a SetDeploymentTemplateV2Unauthorized with default headers values

func (*SetDeploymentTemplateV2Unauthorized) Code

Code gets the status code for the set deployment template v2 unauthorized response

func (*SetDeploymentTemplateV2Unauthorized) Error

func (*SetDeploymentTemplateV2Unauthorized) GetPayload

func (*SetDeploymentTemplateV2Unauthorized) IsClientError

func (o *SetDeploymentTemplateV2Unauthorized) IsClientError() bool

IsClientError returns true when this set deployment template v2 unauthorized response has a 4xx status code

func (*SetDeploymentTemplateV2Unauthorized) IsCode

IsCode returns true when this set deployment template v2 unauthorized response a status code equal to that given

func (*SetDeploymentTemplateV2Unauthorized) IsRedirect

func (o *SetDeploymentTemplateV2Unauthorized) IsRedirect() bool

IsRedirect returns true when this set deployment template v2 unauthorized response has a 3xx status code

func (*SetDeploymentTemplateV2Unauthorized) IsServerError

func (o *SetDeploymentTemplateV2Unauthorized) IsServerError() bool

IsServerError returns true when this set deployment template v2 unauthorized response has a 5xx status code

func (*SetDeploymentTemplateV2Unauthorized) IsSuccess

IsSuccess returns true when this set deployment template v2 unauthorized response has a 2xx status code

func (*SetDeploymentTemplateV2Unauthorized) String

Jump to

Keyboard shortcuts

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