platform_configuration_templates

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 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 (*Client) CreateDeploymentTemplate

func (a *Client) CreateDeploymentTemplate(params *CreateDeploymentTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDeploymentTemplateCreated, error)

CreateDeploymentTemplate creates deployment template

Creates a deployment template.

func (*Client) DeleteDeploymentTemplate

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

DeleteDeploymentTemplate deletes deployment template

Deletes a deployment template by id.

func (*Client) GetDeploymentTemplate

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

GetDeploymentTemplate gets deployment template

Retrieves a deployment template by id.

func (*Client) GetDeploymentTemplates

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

GetDeploymentTemplates gets deployment templates

Retrieves all deployment templates.

func (*Client) GetGlobalDeploymentTemplates added in v1.1.0

func (a *Client) GetGlobalDeploymentTemplates(params *GetGlobalDeploymentTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGlobalDeploymentTemplatesOK, error)

GetGlobalDeploymentTemplates gets all templates cross region

Global deployment template endpoint which fetches the deployment templates across all region services.

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 ClientOption added in v1.3.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateDeploymentTemplate(params *CreateDeploymentTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDeploymentTemplateCreated, error)

	DeleteDeploymentTemplate(params *DeleteDeploymentTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDeploymentTemplateOK, error)

	GetDeploymentTemplate(params *GetDeploymentTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentTemplateOK, error)

	GetDeploymentTemplates(params *GetDeploymentTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentTemplatesOK, error)

	GetGlobalDeploymentTemplates(params *GetGlobalDeploymentTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGlobalDeploymentTemplatesOK, error)

	SetDeploymentTemplate(params *SetDeploymentTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetDeploymentTemplateOK, *SetDeploymentTemplateCreated, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new platform configuration templates API client.

type CreateDeploymentTemplateBadRequest

type CreateDeploymentTemplateBadRequest struct {

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

	Payload *models.BasicFailedReply
}
CreateDeploymentTemplateBadRequest describes a response with status code 400, 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

func (*CreateDeploymentTemplateBadRequest) GetPayload

type CreateDeploymentTemplateCreated

type CreateDeploymentTemplateCreated struct {
	Payload *models.IDResponse
}
CreateDeploymentTemplateCreated describes a response with status code 201, 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

func (*CreateDeploymentTemplateCreated) GetPayload

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 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 NewCreateDeploymentTemplateParamsWithContext

func NewCreateDeploymentTemplateParamsWithContext(ctx context.Context) *CreateDeploymentTemplateParams

NewCreateDeploymentTemplateParamsWithContext creates a new CreateDeploymentTemplateParams object with 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 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 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) SetDefaults added in v1.3.0

func (o *CreateDeploymentTemplateParams) SetDefaults()

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

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

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) WithDefaults added in v1.3.0

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

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

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 describes a response with status code 449, 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

func (*CreateDeploymentTemplateRetryWith) GetPayload

type DeleteDeploymentTemplateNotFound

type DeleteDeploymentTemplateNotFound struct {

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

	Payload *models.BasicFailedReply
}
DeleteDeploymentTemplateNotFound 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 NewDeleteDeploymentTemplateNotFound

func NewDeleteDeploymentTemplateNotFound() *DeleteDeploymentTemplateNotFound

NewDeleteDeploymentTemplateNotFound creates a DeleteDeploymentTemplateNotFound with default headers values

func (*DeleteDeploymentTemplateNotFound) Error

func (*DeleteDeploymentTemplateNotFound) GetPayload

type DeleteDeploymentTemplateOK

type DeleteDeploymentTemplateOK struct {
	Payload models.EmptyResponse
}
DeleteDeploymentTemplateOK describes a response with status code 200, 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

func (*DeleteDeploymentTemplateOK) GetPayload

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 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 NewDeleteDeploymentTemplateParamsWithContext

func NewDeleteDeploymentTemplateParamsWithContext(ctx context.Context) *DeleteDeploymentTemplateParams

NewDeleteDeploymentTemplateParamsWithContext creates a new DeleteDeploymentTemplateParams object with 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 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 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) SetDefaults added in v1.3.0

func (o *DeleteDeploymentTemplateParams) SetDefaults()

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

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

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) WithDefaults added in v1.3.0

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

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

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 describes a response with status code 449, 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

func (*DeleteDeploymentTemplateRetryWith) GetPayload

type GetDeploymentTemplateBadRequest added in v1.1.0

type GetDeploymentTemplateBadRequest struct {

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

	Payload *models.BasicFailedReply
}
GetDeploymentTemplateBadRequest describes a response with status code 400, with default header values.

The template is not compatible with the [cluster] format. (code: `deployment.migration_invalid`)

func NewGetDeploymentTemplateBadRequest added in v1.1.0

func NewGetDeploymentTemplateBadRequest() *GetDeploymentTemplateBadRequest

NewGetDeploymentTemplateBadRequest creates a GetDeploymentTemplateBadRequest with default headers values

func (*GetDeploymentTemplateBadRequest) Error added in v1.1.0

func (*GetDeploymentTemplateBadRequest) GetPayload added in v1.1.0

type GetDeploymentTemplateNotFound

type GetDeploymentTemplateNotFound struct {

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

	Payload *models.BasicFailedReply
}
GetDeploymentTemplateNotFound 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 NewGetDeploymentTemplateNotFound

func NewGetDeploymentTemplateNotFound() *GetDeploymentTemplateNotFound

NewGetDeploymentTemplateNotFound creates a GetDeploymentTemplateNotFound with default headers values

func (*GetDeploymentTemplateNotFound) Error

func (*GetDeploymentTemplateNotFound) GetPayload

type GetDeploymentTemplateOK

type GetDeploymentTemplateOK struct {
	Payload *models.DeploymentTemplateInfo
}
GetDeploymentTemplateOK describes a response with status code 200, 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

func (*GetDeploymentTemplateOK) GetPayload

type GetDeploymentTemplateParams

type GetDeploymentTemplateParams struct {

	/* Format.

	   If 'cluster' is specified populates cluster_template in the response, if 'deployment' is specified populates deployment_template in the response

	   Default: "cluster"
	*/
	Format *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
}

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 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 NewGetDeploymentTemplateParamsWithContext

func NewGetDeploymentTemplateParamsWithContext(ctx context.Context) *GetDeploymentTemplateParams

NewGetDeploymentTemplateParamsWithContext creates a new GetDeploymentTemplateParams object with 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 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 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) SetDefaults added in v1.3.0

func (o *GetDeploymentTemplateParams) SetDefaults()

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

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

func (*GetDeploymentTemplateParams) SetFormat

func (o *GetDeploymentTemplateParams) SetFormat(format *string)

SetFormat adds the format 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) WithDefaults added in v1.3.0

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

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

func (*GetDeploymentTemplateParams) WithFormat

WithFormat adds the format 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 GetDeploymentTemplatesBadRequest added in v1.1.0

type GetDeploymentTemplatesBadRequest struct {

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

	Payload *models.BasicFailedReply
}
GetDeploymentTemplatesBadRequest describes a response with status code 400, with default header values.

The template is not compatible with the [cluster] format. (code: `deployment.migration_invalid`)

func NewGetDeploymentTemplatesBadRequest added in v1.1.0

func NewGetDeploymentTemplatesBadRequest() *GetDeploymentTemplatesBadRequest

NewGetDeploymentTemplatesBadRequest creates a GetDeploymentTemplatesBadRequest with default headers values

func (*GetDeploymentTemplatesBadRequest) Error added in v1.1.0

func (*GetDeploymentTemplatesBadRequest) GetPayload added in v1.1.0

type GetDeploymentTemplatesOK

type GetDeploymentTemplatesOK struct {
	Payload []*models.DeploymentTemplateInfo
}
GetDeploymentTemplatesOK describes a response with status code 200, 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

func (*GetDeploymentTemplatesOK) GetPayload

type GetDeploymentTemplatesParams

type GetDeploymentTemplatesParams struct {

	/* Format.

	   If cluster is specified populates cluster_template in the response, if deployment is specified populates deployment_template in the response

	   Default: "cluster"
	*/
	Format *string

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

func NewGetDeploymentTemplatesParamsWithContext(ctx context.Context) *GetDeploymentTemplatesParams

NewGetDeploymentTemplatesParamsWithContext creates a new GetDeploymentTemplatesParams object with 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 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 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) SetDefaults added in v1.3.0

func (o *GetDeploymentTemplatesParams) SetDefaults()

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

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

func (*GetDeploymentTemplatesParams) SetFormat

func (o *GetDeploymentTemplatesParams) SetFormat(format *string)

SetFormat adds the format 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) WithDefaults added in v1.3.0

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

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

func (*GetDeploymentTemplatesParams) WithFormat

WithFormat adds the format 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 GetGlobalDeploymentTemplatesOK added in v1.1.0

type GetGlobalDeploymentTemplatesOK struct {
	Payload []*models.GlobalDeploymentTemplateInfo
}
GetGlobalDeploymentTemplatesOK describes a response with status code 200, with default header values.

The deployment templates were returned successfully.

func NewGetGlobalDeploymentTemplatesOK added in v1.1.0

func NewGetGlobalDeploymentTemplatesOK() *GetGlobalDeploymentTemplatesOK

NewGetGlobalDeploymentTemplatesOK creates a GetGlobalDeploymentTemplatesOK with default headers values

func (*GetGlobalDeploymentTemplatesOK) Error added in v1.1.0

func (*GetGlobalDeploymentTemplatesOK) GetPayload added in v1.1.0

type GetGlobalDeploymentTemplatesParams added in v1.1.0

type GetGlobalDeploymentTemplatesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetGlobalDeploymentTemplatesParams contains all the parameters to send to the API endpoint

for the get global deployment templates operation.

Typically these are written to a http.Request.

func NewGetGlobalDeploymentTemplatesParams added in v1.1.0

func NewGetGlobalDeploymentTemplatesParams() *GetGlobalDeploymentTemplatesParams

NewGetGlobalDeploymentTemplatesParams creates a new GetGlobalDeploymentTemplatesParams 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 NewGetGlobalDeploymentTemplatesParamsWithContext added in v1.1.0

func NewGetGlobalDeploymentTemplatesParamsWithContext(ctx context.Context) *GetGlobalDeploymentTemplatesParams

NewGetGlobalDeploymentTemplatesParamsWithContext creates a new GetGlobalDeploymentTemplatesParams object with the ability to set a context for a request.

func NewGetGlobalDeploymentTemplatesParamsWithHTTPClient added in v1.1.0

func NewGetGlobalDeploymentTemplatesParamsWithHTTPClient(client *http.Client) *GetGlobalDeploymentTemplatesParams

NewGetGlobalDeploymentTemplatesParamsWithHTTPClient creates a new GetGlobalDeploymentTemplatesParams object with the ability to set a custom HTTPClient for a request.

func NewGetGlobalDeploymentTemplatesParamsWithTimeout added in v1.1.0

func NewGetGlobalDeploymentTemplatesParamsWithTimeout(timeout time.Duration) *GetGlobalDeploymentTemplatesParams

NewGetGlobalDeploymentTemplatesParamsWithTimeout creates a new GetGlobalDeploymentTemplatesParams object with the ability to set a timeout on a request.

func (*GetGlobalDeploymentTemplatesParams) SetContext added in v1.1.0

SetContext adds the context to the get global deployment templates params

func (*GetGlobalDeploymentTemplatesParams) SetDefaults added in v1.3.0

func (o *GetGlobalDeploymentTemplatesParams) SetDefaults()

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

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

func (*GetGlobalDeploymentTemplatesParams) SetHTTPClient added in v1.1.0

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

SetHTTPClient adds the HTTPClient to the get global deployment templates params

func (*GetGlobalDeploymentTemplatesParams) SetTimeout added in v1.1.0

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

SetTimeout adds the timeout to the get global deployment templates params

func (*GetGlobalDeploymentTemplatesParams) WithContext added in v1.1.0

WithContext adds the context to the get global deployment templates params

func (*GetGlobalDeploymentTemplatesParams) WithDefaults added in v1.3.0

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

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

func (*GetGlobalDeploymentTemplatesParams) WithHTTPClient added in v1.1.0

WithHTTPClient adds the HTTPClient to the get global deployment templates params

func (*GetGlobalDeploymentTemplatesParams) WithTimeout added in v1.1.0

WithTimeout adds the timeout to the get global deployment templates params

func (*GetGlobalDeploymentTemplatesParams) WriteToRequest added in v1.1.0

WriteToRequest writes these params to a swagger request

type GetGlobalDeploymentTemplatesReader added in v1.1.0

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

GetGlobalDeploymentTemplatesReader is a Reader for the GetGlobalDeploymentTemplates structure.

func (*GetGlobalDeploymentTemplatesReader) ReadResponse added in v1.1.0

func (o *GetGlobalDeploymentTemplatesReader) 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 describes a response with status code 400, 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

func (*SetDeploymentTemplateBadRequest) GetPayload

type SetDeploymentTemplateConflict

type SetDeploymentTemplateConflict struct {

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

	Payload *models.BasicFailedReply
}
SetDeploymentTemplateConflict 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 NewSetDeploymentTemplateConflict

func NewSetDeploymentTemplateConflict() *SetDeploymentTemplateConflict

NewSetDeploymentTemplateConflict creates a SetDeploymentTemplateConflict with default headers values

func (*SetDeploymentTemplateConflict) Error

func (*SetDeploymentTemplateConflict) GetPayload

type SetDeploymentTemplateCreated

type SetDeploymentTemplateCreated struct {
	Payload *models.IDResponse
}
SetDeploymentTemplateCreated describes a response with status code 201, 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

func (*SetDeploymentTemplateCreated) GetPayload

type SetDeploymentTemplateNotFound

type SetDeploymentTemplateNotFound struct {

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

	Payload *models.BasicFailedReply
}
SetDeploymentTemplateNotFound 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 NewSetDeploymentTemplateNotFound

func NewSetDeploymentTemplateNotFound() *SetDeploymentTemplateNotFound

NewSetDeploymentTemplateNotFound creates a SetDeploymentTemplateNotFound with default headers values

func (*SetDeploymentTemplateNotFound) Error

func (*SetDeploymentTemplateNotFound) GetPayload

type SetDeploymentTemplateOK

type SetDeploymentTemplateOK struct {
	Payload *models.IDResponse
}
SetDeploymentTemplateOK describes a response with status code 200, 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

func (*SetDeploymentTemplateOK) GetPayload

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

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 *string

	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 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 NewSetDeploymentTemplateParamsWithContext

func NewSetDeploymentTemplateParamsWithContext(ctx context.Context) *SetDeploymentTemplateParams

NewSetDeploymentTemplateParamsWithContext creates a new SetDeploymentTemplateParams object with 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 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 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) SetDefaults added in v1.3.0

func (o *SetDeploymentTemplateParams) SetDefaults()

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

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

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 *string)

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) WithDefaults added in v1.3.0

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

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

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 describes a response with status code 449, 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

func (*SetDeploymentTemplateRetryWith) GetPayload

Jump to

Keyboard shortcuts

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