platform_configuration_templates

package
v1.0.0-bc1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 11 Imported by: 1

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 platform configuration templates API

func New

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

New creates a new platform configuration templates API client.

func (*Client) CreateDeploymentTemplate

CreateDeploymentTemplate creates deployment template

Creates a deployment template.

func (*Client) DeleteDeploymentTemplate

func (a *Client) DeleteDeploymentTemplate(params *DeleteDeploymentTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDeploymentTemplateOK, error)

DeleteDeploymentTemplate deletes deployment template

Deletes a deployment template by id.

func (*Client) GetDeploymentTemplate

func (a *Client) GetDeploymentTemplate(params *GetDeploymentTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeploymentTemplateOK, error)

GetDeploymentTemplate gets deployment template

Retrieves a deployment template by id.

func (*Client) GetDeploymentTemplates

func (a *Client) GetDeploymentTemplates(params *GetDeploymentTemplatesParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeploymentTemplatesOK, error)

GetDeploymentTemplates gets deployment templates

Retrieves all deployment templates.

func (*Client) SetDeploymentTemplate

SetDeploymentTemplate 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 CreateDeploymentTemplateBadRequest

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

	Payload *models.BasicFailedReply
}

CreateDeploymentTemplateBadRequest handles this case with default header values.

The template definition contained errors. (code: `templates.invalid_template`)

func NewCreateDeploymentTemplateBadRequest

func NewCreateDeploymentTemplateBadRequest() *CreateDeploymentTemplateBadRequest

NewCreateDeploymentTemplateBadRequest creates a CreateDeploymentTemplateBadRequest with default headers values

func (*CreateDeploymentTemplateBadRequest) Error

type CreateDeploymentTemplateCreated

type CreateDeploymentTemplateCreated struct {
	Payload *models.IDResponse
}

CreateDeploymentTemplateCreated handles this case with default header values.

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

func NewCreateDeploymentTemplateCreated

func NewCreateDeploymentTemplateCreated() *CreateDeploymentTemplateCreated

NewCreateDeploymentTemplateCreated creates a CreateDeploymentTemplateCreated with default headers values

func (*CreateDeploymentTemplateCreated) Error

type CreateDeploymentTemplateParams

type CreateDeploymentTemplateParams struct {

	/*Body
	  The deployment template definition.

	*/
	Body *models.DeploymentTemplateInfo

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

CreateDeploymentTemplateParams contains all the parameters to send to the API endpoint for the create deployment template operation typically these are written to a http.Request

func NewCreateDeploymentTemplateParams

func NewCreateDeploymentTemplateParams() *CreateDeploymentTemplateParams

NewCreateDeploymentTemplateParams creates a new CreateDeploymentTemplateParams object with the default values initialized.

func NewCreateDeploymentTemplateParamsWithContext

func NewCreateDeploymentTemplateParamsWithContext(ctx context.Context) *CreateDeploymentTemplateParams

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

func NewCreateDeploymentTemplateParamsWithHTTPClient

func NewCreateDeploymentTemplateParamsWithHTTPClient(client *http.Client) *CreateDeploymentTemplateParams

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

func NewCreateDeploymentTemplateParamsWithTimeout

func NewCreateDeploymentTemplateParamsWithTimeout(timeout time.Duration) *CreateDeploymentTemplateParams

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

func (*CreateDeploymentTemplateParams) SetBody

SetBody adds the body to the create deployment template params

func (*CreateDeploymentTemplateParams) SetContext

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

SetContext adds the context to the create deployment template params

func (*CreateDeploymentTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create deployment template params

func (*CreateDeploymentTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the create deployment template params

func (*CreateDeploymentTemplateParams) WithBody

WithBody adds the body to the create deployment template params

func (*CreateDeploymentTemplateParams) WithContext

WithContext adds the context to the create deployment template params

func (*CreateDeploymentTemplateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create deployment template params

func (*CreateDeploymentTemplateParams) WithTimeout

WithTimeout adds the timeout to the create deployment template params

func (*CreateDeploymentTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateDeploymentTemplateReader

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

CreateDeploymentTemplateReader is a Reader for the CreateDeploymentTemplate structure.

func (*CreateDeploymentTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateDeploymentTemplateRetryWith

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

	Payload *models.BasicFailedReply
}

CreateDeploymentTemplateRetryWith handles this case with default header values.

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

func NewCreateDeploymentTemplateRetryWith

func NewCreateDeploymentTemplateRetryWith() *CreateDeploymentTemplateRetryWith

NewCreateDeploymentTemplateRetryWith creates a CreateDeploymentTemplateRetryWith with default headers values

func (*CreateDeploymentTemplateRetryWith) Error

type DeleteDeploymentTemplateNotFound

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

	Payload *models.BasicFailedReply
}

DeleteDeploymentTemplateNotFound handles this case with default header values.

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

func NewDeleteDeploymentTemplateNotFound

func NewDeleteDeploymentTemplateNotFound() *DeleteDeploymentTemplateNotFound

NewDeleteDeploymentTemplateNotFound creates a DeleteDeploymentTemplateNotFound with default headers values

func (*DeleteDeploymentTemplateNotFound) Error

type DeleteDeploymentTemplateOK

type DeleteDeploymentTemplateOK struct {
	Payload models.EmptyResponse
}

DeleteDeploymentTemplateOK handles this case with default header values.

The deployment template was successfully deleted.

func NewDeleteDeploymentTemplateOK

func NewDeleteDeploymentTemplateOK() *DeleteDeploymentTemplateOK

NewDeleteDeploymentTemplateOK creates a DeleteDeploymentTemplateOK with default headers values

func (*DeleteDeploymentTemplateOK) Error

type DeleteDeploymentTemplateParams

type DeleteDeploymentTemplateParams struct {

	/*TemplateID
	  The identifier for the deployment template.

	*/
	TemplateID string

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

DeleteDeploymentTemplateParams contains all the parameters to send to the API endpoint for the delete deployment template operation typically these are written to a http.Request

func NewDeleteDeploymentTemplateParams

func NewDeleteDeploymentTemplateParams() *DeleteDeploymentTemplateParams

NewDeleteDeploymentTemplateParams creates a new DeleteDeploymentTemplateParams object with the default values initialized.

func NewDeleteDeploymentTemplateParamsWithContext

func NewDeleteDeploymentTemplateParamsWithContext(ctx context.Context) *DeleteDeploymentTemplateParams

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

func NewDeleteDeploymentTemplateParamsWithHTTPClient

func NewDeleteDeploymentTemplateParamsWithHTTPClient(client *http.Client) *DeleteDeploymentTemplateParams

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

func NewDeleteDeploymentTemplateParamsWithTimeout

func NewDeleteDeploymentTemplateParamsWithTimeout(timeout time.Duration) *DeleteDeploymentTemplateParams

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

func (*DeleteDeploymentTemplateParams) SetContext

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

SetContext adds the context to the delete deployment template params

func (*DeleteDeploymentTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete deployment template params

func (*DeleteDeploymentTemplateParams) SetTemplateID

func (o *DeleteDeploymentTemplateParams) SetTemplateID(templateID string)

SetTemplateID adds the templateId to the delete deployment template params

func (*DeleteDeploymentTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the delete deployment template params

func (*DeleteDeploymentTemplateParams) WithContext

WithContext adds the context to the delete deployment template params

func (*DeleteDeploymentTemplateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete deployment template params

func (*DeleteDeploymentTemplateParams) WithTemplateID

WithTemplateID adds the templateID to the delete deployment template params

func (*DeleteDeploymentTemplateParams) WithTimeout

WithTimeout adds the timeout to the delete deployment template params

func (*DeleteDeploymentTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDeploymentTemplateReader

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

DeleteDeploymentTemplateReader is a Reader for the DeleteDeploymentTemplate structure.

func (*DeleteDeploymentTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteDeploymentTemplateRetryWith

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

	Payload *models.BasicFailedReply
}

DeleteDeploymentTemplateRetryWith handles this case with default header values.

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

func NewDeleteDeploymentTemplateRetryWith

func NewDeleteDeploymentTemplateRetryWith() *DeleteDeploymentTemplateRetryWith

NewDeleteDeploymentTemplateRetryWith creates a DeleteDeploymentTemplateRetryWith with default headers values

func (*DeleteDeploymentTemplateRetryWith) Error

type GetDeploymentTemplateNotFound

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

	Payload *models.BasicFailedReply
}

GetDeploymentTemplateNotFound handles this case with default header values.

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

func NewGetDeploymentTemplateNotFound

func NewGetDeploymentTemplateNotFound() *GetDeploymentTemplateNotFound

NewGetDeploymentTemplateNotFound creates a GetDeploymentTemplateNotFound with default headers values

func (*GetDeploymentTemplateNotFound) Error

type GetDeploymentTemplateOK

type GetDeploymentTemplateOK struct {
	Payload *models.DeploymentTemplateInfo
}

GetDeploymentTemplateOK handles this case with default header values.

The deployment template was found and returned successfully.

func NewGetDeploymentTemplateOK

func NewGetDeploymentTemplateOK() *GetDeploymentTemplateOK

NewGetDeploymentTemplateOK creates a GetDeploymentTemplateOK with default headers values

func (*GetDeploymentTemplateOK) Error

func (o *GetDeploymentTemplateOK) Error() string

type GetDeploymentTemplateParams

type GetDeploymentTemplateParams struct {

	/*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
}

GetDeploymentTemplateParams contains all the parameters to send to the API endpoint for the get deployment template operation typically these are written to a http.Request

func NewGetDeploymentTemplateParams

func NewGetDeploymentTemplateParams() *GetDeploymentTemplateParams

NewGetDeploymentTemplateParams creates a new GetDeploymentTemplateParams object with the default values initialized.

func NewGetDeploymentTemplateParamsWithContext

func NewGetDeploymentTemplateParamsWithContext(ctx context.Context) *GetDeploymentTemplateParams

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

func NewGetDeploymentTemplateParamsWithHTTPClient

func NewGetDeploymentTemplateParamsWithHTTPClient(client *http.Client) *GetDeploymentTemplateParams

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

func NewGetDeploymentTemplateParamsWithTimeout

func NewGetDeploymentTemplateParamsWithTimeout(timeout time.Duration) *GetDeploymentTemplateParams

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

func (*GetDeploymentTemplateParams) SetContext

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

SetContext adds the context to the get deployment template params

func (*GetDeploymentTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get deployment template params

func (*GetDeploymentTemplateParams) SetShowInstanceConfigurations

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

SetShowInstanceConfigurations adds the showInstanceConfigurations to the get deployment template params

func (*GetDeploymentTemplateParams) SetStackVersion

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

SetStackVersion adds the stackVersion to the get deployment template params

func (*GetDeploymentTemplateParams) SetTemplateID

func (o *GetDeploymentTemplateParams) SetTemplateID(templateID string)

SetTemplateID adds the templateId to the get deployment template params

func (*GetDeploymentTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the get deployment template params

func (*GetDeploymentTemplateParams) WithContext

WithContext adds the context to the get deployment template params

func (*GetDeploymentTemplateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get deployment template params

func (*GetDeploymentTemplateParams) WithShowInstanceConfigurations

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

WithShowInstanceConfigurations adds the showInstanceConfigurations to the get deployment template params

func (*GetDeploymentTemplateParams) WithStackVersion

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

WithStackVersion adds the stackVersion to the get deployment template params

func (*GetDeploymentTemplateParams) WithTemplateID

func (o *GetDeploymentTemplateParams) WithTemplateID(templateID string) *GetDeploymentTemplateParams

WithTemplateID adds the templateID to the get deployment template params

func (*GetDeploymentTemplateParams) WithTimeout

WithTimeout adds the timeout to the get deployment template params

func (*GetDeploymentTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeploymentTemplateReader

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

GetDeploymentTemplateReader is a Reader for the GetDeploymentTemplate structure.

func (*GetDeploymentTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDeploymentTemplatesOK

type GetDeploymentTemplatesOK struct {
	Payload []*models.DeploymentTemplateInfo
}

GetDeploymentTemplatesOK handles this case with default header values.

The deployment templates were returned successfully.

func NewGetDeploymentTemplatesOK

func NewGetDeploymentTemplatesOK() *GetDeploymentTemplatesOK

NewGetDeploymentTemplatesOK creates a GetDeploymentTemplatesOK with default headers values

func (*GetDeploymentTemplatesOK) Error

func (o *GetDeploymentTemplatesOK) Error() string

type GetDeploymentTemplatesParams

type GetDeploymentTemplatesParams 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
	/*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
}

GetDeploymentTemplatesParams contains all the parameters to send to the API endpoint for the get deployment templates operation typically these are written to a http.Request

func NewGetDeploymentTemplatesParams

func NewGetDeploymentTemplatesParams() *GetDeploymentTemplatesParams

NewGetDeploymentTemplatesParams creates a new GetDeploymentTemplatesParams object with the default values initialized.

func NewGetDeploymentTemplatesParamsWithContext

func NewGetDeploymentTemplatesParamsWithContext(ctx context.Context) *GetDeploymentTemplatesParams

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

func NewGetDeploymentTemplatesParamsWithHTTPClient

func NewGetDeploymentTemplatesParamsWithHTTPClient(client *http.Client) *GetDeploymentTemplatesParams

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

func NewGetDeploymentTemplatesParamsWithTimeout

func NewGetDeploymentTemplatesParamsWithTimeout(timeout time.Duration) *GetDeploymentTemplatesParams

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

func (*GetDeploymentTemplatesParams) SetContext

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

SetContext adds the context to the get deployment templates params

func (*GetDeploymentTemplatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get deployment templates params

func (*GetDeploymentTemplatesParams) SetMetadata

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

SetMetadata adds the metadata to the get deployment templates params

func (*GetDeploymentTemplatesParams) SetShowHidden

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

SetShowHidden adds the showHidden to the get deployment templates params

func (*GetDeploymentTemplatesParams) SetShowInstanceConfigurations

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

SetShowInstanceConfigurations adds the showInstanceConfigurations to the get deployment templates params

func (*GetDeploymentTemplatesParams) SetStackVersion

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

SetStackVersion adds the stackVersion to the get deployment templates params

func (*GetDeploymentTemplatesParams) SetTimeout

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

SetTimeout adds the timeout to the get deployment templates params

func (*GetDeploymentTemplatesParams) WithContext

WithContext adds the context to the get deployment templates params

func (*GetDeploymentTemplatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get deployment templates params

func (*GetDeploymentTemplatesParams) WithMetadata

WithMetadata adds the metadata to the get deployment templates params

func (*GetDeploymentTemplatesParams) WithShowHidden

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

WithShowHidden adds the showHidden to the get deployment templates params

func (*GetDeploymentTemplatesParams) WithShowInstanceConfigurations

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

WithShowInstanceConfigurations adds the showInstanceConfigurations to the get deployment templates params

func (*GetDeploymentTemplatesParams) WithStackVersion

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

WithStackVersion adds the stackVersion to the get deployment templates params

func (*GetDeploymentTemplatesParams) WithTimeout

WithTimeout adds the timeout to the get deployment templates params

func (*GetDeploymentTemplatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeploymentTemplatesReader

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

GetDeploymentTemplatesReader is a Reader for the GetDeploymentTemplates structure.

func (*GetDeploymentTemplatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetDeploymentTemplateBadRequest

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

	Payload *models.BasicFailedReply
}

SetDeploymentTemplateBadRequest handles this case with default header values.

The template definition contained errors. (code: `templates.invalid_template`)

func NewSetDeploymentTemplateBadRequest

func NewSetDeploymentTemplateBadRequest() *SetDeploymentTemplateBadRequest

NewSetDeploymentTemplateBadRequest creates a SetDeploymentTemplateBadRequest with default headers values

func (*SetDeploymentTemplateBadRequest) Error

type SetDeploymentTemplateConflict

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

	Payload *models.BasicFailedReply
}

SetDeploymentTemplateConflict 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 NewSetDeploymentTemplateConflict

func NewSetDeploymentTemplateConflict() *SetDeploymentTemplateConflict

NewSetDeploymentTemplateConflict creates a SetDeploymentTemplateConflict with default headers values

func (*SetDeploymentTemplateConflict) Error

type SetDeploymentTemplateCreated

type SetDeploymentTemplateCreated struct {
	Payload *models.IDResponse
}

SetDeploymentTemplateCreated handles this case with default header values.

The deployment definition was valid and the template was created.

func NewSetDeploymentTemplateCreated

func NewSetDeploymentTemplateCreated() *SetDeploymentTemplateCreated

NewSetDeploymentTemplateCreated creates a SetDeploymentTemplateCreated with default headers values

func (*SetDeploymentTemplateCreated) Error

type SetDeploymentTemplateNotFound

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

	Payload *models.BasicFailedReply
}

SetDeploymentTemplateNotFound handles this case with default header values.

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

func NewSetDeploymentTemplateNotFound

func NewSetDeploymentTemplateNotFound() *SetDeploymentTemplateNotFound

NewSetDeploymentTemplateNotFound creates a SetDeploymentTemplateNotFound with default headers values

func (*SetDeploymentTemplateNotFound) Error

type SetDeploymentTemplateOK

type SetDeploymentTemplateOK struct {
	Payload *models.IDResponse
}

SetDeploymentTemplateOK handles this case with default header values.

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

func NewSetDeploymentTemplateOK

func NewSetDeploymentTemplateOK() *SetDeploymentTemplateOK

NewSetDeploymentTemplateOK creates a SetDeploymentTemplateOK with default headers values

func (*SetDeploymentTemplateOK) Error

func (o *SetDeploymentTemplateOK) Error() string

type SetDeploymentTemplateParams

type SetDeploymentTemplateParams struct {

	/*Body
	  The deployment template definition.

	*/
	Body *models.DeploymentTemplateInfo
	/*CreateOnly
	  If true, will fail if the deployment template already exists at the given id

	*/
	CreateOnly *bool
	/*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
}

SetDeploymentTemplateParams contains all the parameters to send to the API endpoint for the set deployment template operation typically these are written to a http.Request

func NewSetDeploymentTemplateParams

func NewSetDeploymentTemplateParams() *SetDeploymentTemplateParams

NewSetDeploymentTemplateParams creates a new SetDeploymentTemplateParams object with the default values initialized.

func NewSetDeploymentTemplateParamsWithContext

func NewSetDeploymentTemplateParamsWithContext(ctx context.Context) *SetDeploymentTemplateParams

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

func NewSetDeploymentTemplateParamsWithHTTPClient

func NewSetDeploymentTemplateParamsWithHTTPClient(client *http.Client) *SetDeploymentTemplateParams

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

func NewSetDeploymentTemplateParamsWithTimeout

func NewSetDeploymentTemplateParamsWithTimeout(timeout time.Duration) *SetDeploymentTemplateParams

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

func (*SetDeploymentTemplateParams) SetBody

SetBody adds the body to the set deployment template params

func (*SetDeploymentTemplateParams) SetContext

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

SetContext adds the context to the set deployment template params

func (*SetDeploymentTemplateParams) SetCreateOnly

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

SetCreateOnly adds the createOnly to the set deployment template params

func (*SetDeploymentTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set deployment template params

func (*SetDeploymentTemplateParams) SetTemplateID

func (o *SetDeploymentTemplateParams) SetTemplateID(templateID string)

SetTemplateID adds the templateId to the set deployment template params

func (*SetDeploymentTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the set deployment template params

func (*SetDeploymentTemplateParams) SetVersion

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

SetVersion adds the version to the set deployment template params

func (*SetDeploymentTemplateParams) WithBody

WithBody adds the body to the set deployment template params

func (*SetDeploymentTemplateParams) WithContext

WithContext adds the context to the set deployment template params

func (*SetDeploymentTemplateParams) WithCreateOnly

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

WithCreateOnly adds the createOnly to the set deployment template params

func (*SetDeploymentTemplateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set deployment template params

func (*SetDeploymentTemplateParams) WithTemplateID

func (o *SetDeploymentTemplateParams) WithTemplateID(templateID string) *SetDeploymentTemplateParams

WithTemplateID adds the templateID to the set deployment template params

func (*SetDeploymentTemplateParams) WithTimeout

WithTimeout adds the timeout to the set deployment template params

func (*SetDeploymentTemplateParams) WithVersion

WithVersion adds the version to the set deployment template params

func (*SetDeploymentTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetDeploymentTemplateReader

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

SetDeploymentTemplateReader is a Reader for the SetDeploymentTemplate structure.

func (*SetDeploymentTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetDeploymentTemplateRetryWith

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

	Payload *models.BasicFailedReply
}

SetDeploymentTemplateRetryWith handles this case with default header values.

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

func NewSetDeploymentTemplateRetryWith

func NewSetDeploymentTemplateRetryWith() *SetDeploymentTemplateRetryWith

NewSetDeploymentTemplateRetryWith creates a SetDeploymentTemplateRetryWith with default headers values

func (*SetDeploymentTemplateRetryWith) Error

Jump to

Keyboard shortcuts

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