deployment_templates

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 11 Imported by: 3

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) (*DeleteDeploymentTemplateV2OK, error)

DeleteDeploymentTemplateV2 deletes deployment template

Deletes a deployment template by id.

func (*Client) GetDeploymentTemplateV2

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

GetDeploymentTemplateV2 gets deployment template

Retrieves a deployment template by id.

func (*Client) GetDeploymentTemplatesV2

func (a *Client) GetDeploymentTemplatesV2(params *GetDeploymentTemplatesV2Params, authInfo runtime.ClientAuthInfoWriter) (*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 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 handles this case 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) Error

func (*CreateDeploymentTemplateV2BadRequest) GetPayload

type CreateDeploymentTemplateV2Created

type CreateDeploymentTemplateV2Created struct {
	Payload *models.IDResponse
}

CreateDeploymentTemplateV2Created handles this case 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) Error

func (*CreateDeploymentTemplateV2Created) GetPayload

type CreateDeploymentTemplateV2Params

type CreateDeploymentTemplateV2Params struct {

	/*Body
	  The deployment template definition.

	*/
	Body *models.DeploymentTemplateRequestBody
	/*Region
	  Region of the deployment template

	*/
	Region string

	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 values initialized.

func NewCreateDeploymentTemplateV2ParamsWithContext

func NewCreateDeploymentTemplateV2ParamsWithContext(ctx context.Context) *CreateDeploymentTemplateV2Params

NewCreateDeploymentTemplateV2ParamsWithContext creates a new CreateDeploymentTemplateV2Params object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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) 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) 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 CreateDeploymentTemplateV2RetryWith

type CreateDeploymentTemplateV2RetryWith struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateDeploymentTemplateV2RetryWith handles this case with default header values.

Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)

func NewCreateDeploymentTemplateV2RetryWith

func NewCreateDeploymentTemplateV2RetryWith() *CreateDeploymentTemplateV2RetryWith

NewCreateDeploymentTemplateV2RetryWith creates a CreateDeploymentTemplateV2RetryWith with default headers values

func (*CreateDeploymentTemplateV2RetryWith) Error

func (*CreateDeploymentTemplateV2RetryWith) GetPayload

type CreateDeploymentTemplateV2Unauthorized

type CreateDeploymentTemplateV2Unauthorized struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateDeploymentTemplateV2Unauthorized handles this case 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) Error

func (*CreateDeploymentTemplateV2Unauthorized) GetPayload

type DeleteDeploymentTemplateV2BadRequest

type DeleteDeploymentTemplateV2BadRequest struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteDeploymentTemplateV2BadRequest handles this case 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) Error

func (*DeleteDeploymentTemplateV2BadRequest) GetPayload

type DeleteDeploymentTemplateV2NotFound

type DeleteDeploymentTemplateV2NotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteDeploymentTemplateV2NotFound handles this case 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) Error

func (*DeleteDeploymentTemplateV2NotFound) GetPayload

type DeleteDeploymentTemplateV2OK

type DeleteDeploymentTemplateV2OK struct {
	Payload models.EmptyResponse
}

DeleteDeploymentTemplateV2OK handles this case 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) Error

func (*DeleteDeploymentTemplateV2OK) GetPayload

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 values initialized.

func NewDeleteDeploymentTemplateV2ParamsWithContext

func NewDeleteDeploymentTemplateV2ParamsWithContext(ctx context.Context) *DeleteDeploymentTemplateV2Params

NewDeleteDeploymentTemplateV2ParamsWithContext creates a new DeleteDeploymentTemplateV2Params object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 DeleteDeploymentTemplateV2RetryWith

type DeleteDeploymentTemplateV2RetryWith struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteDeploymentTemplateV2RetryWith handles this case with default header values.

Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)

func NewDeleteDeploymentTemplateV2RetryWith

func NewDeleteDeploymentTemplateV2RetryWith() *DeleteDeploymentTemplateV2RetryWith

NewDeleteDeploymentTemplateV2RetryWith creates a DeleteDeploymentTemplateV2RetryWith with default headers values

func (*DeleteDeploymentTemplateV2RetryWith) Error

func (*DeleteDeploymentTemplateV2RetryWith) GetPayload

type DeleteDeploymentTemplateV2Unauthorized

type DeleteDeploymentTemplateV2Unauthorized struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteDeploymentTemplateV2Unauthorized handles this case 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) Error

func (*DeleteDeploymentTemplateV2Unauthorized) GetPayload

type GetDeploymentTemplateV2BadRequest

type GetDeploymentTemplateV2BadRequest struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetDeploymentTemplateV2BadRequest handles this case 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) Error

func (*GetDeploymentTemplateV2BadRequest) GetPayload

type GetDeploymentTemplateV2NotFound

type GetDeploymentTemplateV2NotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetDeploymentTemplateV2NotFound handles this case 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) Error

func (*GetDeploymentTemplateV2NotFound) GetPayload

type GetDeploymentTemplateV2OK

type GetDeploymentTemplateV2OK struct {
	Payload *models.DeploymentTemplateInfoV2
}

GetDeploymentTemplateV2OK handles this case 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) Error

func (o *GetDeploymentTemplateV2OK) Error() string

func (*GetDeploymentTemplateV2OK) GetPayload

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.

	*/
	ShowInstanceConfigurations *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 values initialized.

func NewGetDeploymentTemplateV2ParamsWithContext

func NewGetDeploymentTemplateV2ParamsWithContext(ctx context.Context) *GetDeploymentTemplateV2Params

NewGetDeploymentTemplateV2ParamsWithContext creates a new GetDeploymentTemplateV2Params object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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) 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) 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 handles this case 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) Error

func (*GetDeploymentTemplateV2Unauthorized) GetPayload

type GetDeploymentTemplatesV2BadRequest

type GetDeploymentTemplatesV2BadRequest struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetDeploymentTemplatesV2BadRequest handles this case 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) Error

func (*GetDeploymentTemplatesV2BadRequest) GetPayload

type GetDeploymentTemplatesV2OK

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

GetDeploymentTemplatesV2OK handles this case 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) Error

func (*GetDeploymentTemplatesV2OK) GetPayload

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.

	*/
	ShowInstanceConfigurations *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 values initialized.

func NewGetDeploymentTemplatesV2ParamsWithContext

func NewGetDeploymentTemplatesV2ParamsWithContext(ctx context.Context) *GetDeploymentTemplatesV2Params

NewGetDeploymentTemplatesV2ParamsWithContext creates a new GetDeploymentTemplatesV2Params object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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) 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) 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 handles this case 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) Error

func (*GetDeploymentTemplatesV2Unauthorized) GetPayload

type SetDeploymentTemplateV2BadRequest

type SetDeploymentTemplateV2BadRequest struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetDeploymentTemplateV2BadRequest handles this case 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) Error

func (*SetDeploymentTemplateV2BadRequest) GetPayload

type SetDeploymentTemplateV2Conflict

type SetDeploymentTemplateV2Conflict struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetDeploymentTemplateV2Conflict handles this case 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) Error

func (*SetDeploymentTemplateV2Conflict) GetPayload

type SetDeploymentTemplateV2Created

type SetDeploymentTemplateV2Created struct {
	Payload *models.IDResponse
}

SetDeploymentTemplateV2Created handles this case 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) Error

func (*SetDeploymentTemplateV2Created) GetPayload

type SetDeploymentTemplateV2NotFound

type SetDeploymentTemplateV2NotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetDeploymentTemplateV2NotFound handles this case 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) Error

func (*SetDeploymentTemplateV2NotFound) GetPayload

type SetDeploymentTemplateV2OK

type SetDeploymentTemplateV2OK struct {
	Payload *models.IDResponse
}

SetDeploymentTemplateV2OK handles this case 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) Error

func (o *SetDeploymentTemplateV2OK) Error() string

func (*SetDeploymentTemplateV2OK) GetPayload

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

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
	/*Version
	  If specified, checks for conflicts against the version of the template (returned in 'x-cloud-resource-version' of the GET request)

	*/
	Version *int64

	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 values initialized.

func NewSetDeploymentTemplateV2ParamsWithContext

func NewSetDeploymentTemplateV2ParamsWithContext(ctx context.Context) *SetDeploymentTemplateV2Params

NewSetDeploymentTemplateV2ParamsWithContext creates a new SetDeploymentTemplateV2Params object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) SetVersion

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

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) 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) 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 SetDeploymentTemplateV2RetryWith

type SetDeploymentTemplateV2RetryWith struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetDeploymentTemplateV2RetryWith handles this case with default header values.

Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)

func NewSetDeploymentTemplateV2RetryWith

func NewSetDeploymentTemplateV2RetryWith() *SetDeploymentTemplateV2RetryWith

NewSetDeploymentTemplateV2RetryWith creates a SetDeploymentTemplateV2RetryWith with default headers values

func (*SetDeploymentTemplateV2RetryWith) Error

func (*SetDeploymentTemplateV2RetryWith) GetPayload

type SetDeploymentTemplateV2Unauthorized

type SetDeploymentTemplateV2Unauthorized struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetDeploymentTemplateV2Unauthorized handles this case 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) Error

func (*SetDeploymentTemplateV2Unauthorized) GetPayload

Jump to

Keyboard shortcuts

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