platform_configuration_instances

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for platform configuration instances API

func (*Client) CreateInstanceConfiguration

func (a *Client) CreateInstanceConfiguration(params *CreateInstanceConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateInstanceConfigurationCreated, error)

CreateInstanceConfiguration creates instance configuration

Create instance configuration and return the auto-generated ID.

func (*Client) DeleteInstanceConfiguration

func (a *Client) DeleteInstanceConfiguration(params *DeleteInstanceConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteInstanceConfigurationOK, error)

DeleteInstanceConfiguration deletes a instance configuration

Delete the instance configuration with the given id.

func (*Client) GetInstanceConfiguration

func (a *Client) GetInstanceConfiguration(params *GetInstanceConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInstanceConfigurationOK, error)

GetInstanceConfiguration gets instance configuration

Get instance configuration by id.

func (*Client) GetInstanceConfigurations

func (a *Client) GetInstanceConfigurations(params *GetInstanceConfigurationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInstanceConfigurationsOK, error)

GetInstanceConfigurations gets instance configurations

Get instance configurations.

func (*Client) SetInstanceConfiguration

SetInstanceConfiguration sets instance configuration

Creates or updates an instance configuration.

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 {
	CreateInstanceConfiguration(params *CreateInstanceConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateInstanceConfigurationCreated, error)

	DeleteInstanceConfiguration(params *DeleteInstanceConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteInstanceConfigurationOK, error)

	GetInstanceConfiguration(params *GetInstanceConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInstanceConfigurationOK, error)

	GetInstanceConfigurations(params *GetInstanceConfigurationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInstanceConfigurationsOK, error)

	SetInstanceConfiguration(params *SetInstanceConfigurationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetInstanceConfigurationOK, *SetInstanceConfigurationCreated, 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 instances API client.

type CreateInstanceConfigurationBadRequest

type CreateInstanceConfigurationBadRequest struct {
	Payload *models.BasicFailedReply
}

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

cluster_type in the InstanceConfiguration model is invalid (code: 'configuration.invalid_cluster_type') or the discrete_sizes in the InstanceConfiguration model is invalid (code: 'configuration.invalid_discrete_sizes') or the metadata in the InstanceConfiguration model has empty keys or values (code: 'configuration.bad_meta_data')

func NewCreateInstanceConfigurationBadRequest

func NewCreateInstanceConfigurationBadRequest() *CreateInstanceConfigurationBadRequest

NewCreateInstanceConfigurationBadRequest creates a CreateInstanceConfigurationBadRequest with default headers values

func (*CreateInstanceConfigurationBadRequest) Code added in v1.13.0

Code gets the status code for the create instance configuration bad request response

func (*CreateInstanceConfigurationBadRequest) Error

func (*CreateInstanceConfigurationBadRequest) GetPayload

func (*CreateInstanceConfigurationBadRequest) IsClientError added in v1.13.0

func (o *CreateInstanceConfigurationBadRequest) IsClientError() bool

IsClientError returns true when this create instance configuration bad request response has a 4xx status code

func (*CreateInstanceConfigurationBadRequest) IsCode added in v1.13.0

IsCode returns true when this create instance configuration bad request response a status code equal to that given

func (*CreateInstanceConfigurationBadRequest) IsRedirect added in v1.13.0

IsRedirect returns true when this create instance configuration bad request response has a 3xx status code

func (*CreateInstanceConfigurationBadRequest) IsServerError added in v1.13.0

func (o *CreateInstanceConfigurationBadRequest) IsServerError() bool

IsServerError returns true when this create instance configuration bad request response has a 5xx status code

func (*CreateInstanceConfigurationBadRequest) IsSuccess added in v1.13.0

IsSuccess returns true when this create instance configuration bad request response has a 2xx status code

func (*CreateInstanceConfigurationBadRequest) String added in v1.13.0

type CreateInstanceConfigurationCreated

type CreateInstanceConfigurationCreated struct {
	Payload *models.VersionedIDResponse
}

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

Instance Configuration added with the auto generated ID returned

func NewCreateInstanceConfigurationCreated

func NewCreateInstanceConfigurationCreated() *CreateInstanceConfigurationCreated

NewCreateInstanceConfigurationCreated creates a CreateInstanceConfigurationCreated with default headers values

func (*CreateInstanceConfigurationCreated) Code added in v1.13.0

Code gets the status code for the create instance configuration created response

func (*CreateInstanceConfigurationCreated) Error

func (*CreateInstanceConfigurationCreated) GetPayload

func (*CreateInstanceConfigurationCreated) IsClientError added in v1.13.0

func (o *CreateInstanceConfigurationCreated) IsClientError() bool

IsClientError returns true when this create instance configuration created response has a 4xx status code

func (*CreateInstanceConfigurationCreated) IsCode added in v1.13.0

IsCode returns true when this create instance configuration created response a status code equal to that given

func (*CreateInstanceConfigurationCreated) IsRedirect added in v1.13.0

func (o *CreateInstanceConfigurationCreated) IsRedirect() bool

IsRedirect returns true when this create instance configuration created response has a 3xx status code

func (*CreateInstanceConfigurationCreated) IsServerError added in v1.13.0

func (o *CreateInstanceConfigurationCreated) IsServerError() bool

IsServerError returns true when this create instance configuration created response has a 5xx status code

func (*CreateInstanceConfigurationCreated) IsSuccess added in v1.13.0

IsSuccess returns true when this create instance configuration created response has a 2xx status code

func (*CreateInstanceConfigurationCreated) String added in v1.13.0

type CreateInstanceConfigurationForbidden

type CreateInstanceConfigurationForbidden struct {
	Payload *models.BasicFailedReply
}

CreateInstanceConfigurationForbidden describes a response with status code 403, with default header values.

system_owned or deleted_on cannot be set externally (code: 'configuration.system_owned')

func NewCreateInstanceConfigurationForbidden

func NewCreateInstanceConfigurationForbidden() *CreateInstanceConfigurationForbidden

NewCreateInstanceConfigurationForbidden creates a CreateInstanceConfigurationForbidden with default headers values

func (*CreateInstanceConfigurationForbidden) Code added in v1.13.0

Code gets the status code for the create instance configuration forbidden response

func (*CreateInstanceConfigurationForbidden) Error

func (*CreateInstanceConfigurationForbidden) GetPayload

func (*CreateInstanceConfigurationForbidden) IsClientError added in v1.13.0

func (o *CreateInstanceConfigurationForbidden) IsClientError() bool

IsClientError returns true when this create instance configuration forbidden response has a 4xx status code

func (*CreateInstanceConfigurationForbidden) IsCode added in v1.13.0

IsCode returns true when this create instance configuration forbidden response a status code equal to that given

func (*CreateInstanceConfigurationForbidden) IsRedirect added in v1.13.0

IsRedirect returns true when this create instance configuration forbidden response has a 3xx status code

func (*CreateInstanceConfigurationForbidden) IsServerError added in v1.13.0

func (o *CreateInstanceConfigurationForbidden) IsServerError() bool

IsServerError returns true when this create instance configuration forbidden response has a 5xx status code

func (*CreateInstanceConfigurationForbidden) IsSuccess added in v1.13.0

IsSuccess returns true when this create instance configuration forbidden response has a 2xx status code

func (*CreateInstanceConfigurationForbidden) String added in v1.13.0

type CreateInstanceConfigurationParams

type CreateInstanceConfigurationParams struct {

	/* Instance.

	   the Instance Configuration
	*/
	Instance *models.InstanceConfiguration

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

CreateInstanceConfigurationParams contains all the parameters to send to the API endpoint

for the create instance configuration operation.

Typically these are written to a http.Request.

func NewCreateInstanceConfigurationParams

func NewCreateInstanceConfigurationParams() *CreateInstanceConfigurationParams

NewCreateInstanceConfigurationParams creates a new CreateInstanceConfigurationParams 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 NewCreateInstanceConfigurationParamsWithContext

func NewCreateInstanceConfigurationParamsWithContext(ctx context.Context) *CreateInstanceConfigurationParams

NewCreateInstanceConfigurationParamsWithContext creates a new CreateInstanceConfigurationParams object with the ability to set a context for a request.

func NewCreateInstanceConfigurationParamsWithHTTPClient

func NewCreateInstanceConfigurationParamsWithHTTPClient(client *http.Client) *CreateInstanceConfigurationParams

NewCreateInstanceConfigurationParamsWithHTTPClient creates a new CreateInstanceConfigurationParams object with the ability to set a custom HTTPClient for a request.

func NewCreateInstanceConfigurationParamsWithTimeout

func NewCreateInstanceConfigurationParamsWithTimeout(timeout time.Duration) *CreateInstanceConfigurationParams

NewCreateInstanceConfigurationParamsWithTimeout creates a new CreateInstanceConfigurationParams object with the ability to set a timeout on a request.

func (*CreateInstanceConfigurationParams) SetContext

SetContext adds the context to the create instance configuration params

func (*CreateInstanceConfigurationParams) SetDefaults added in v1.3.0

func (o *CreateInstanceConfigurationParams) SetDefaults()

SetDefaults hydrates default values in the create instance configuration params (not the query body).

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

func (*CreateInstanceConfigurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create instance configuration params

func (*CreateInstanceConfigurationParams) SetInstance

SetInstance adds the instance to the create instance configuration params

func (*CreateInstanceConfigurationParams) SetTimeout

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

SetTimeout adds the timeout to the create instance configuration params

func (*CreateInstanceConfigurationParams) WithContext

WithContext adds the context to the create instance configuration params

func (*CreateInstanceConfigurationParams) WithDefaults added in v1.3.0

WithDefaults hydrates default values in the create instance configuration params (not the query body).

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

func (*CreateInstanceConfigurationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create instance configuration params

func (*CreateInstanceConfigurationParams) WithInstance

WithInstance adds the instance to the create instance configuration params

func (*CreateInstanceConfigurationParams) WithTimeout

WithTimeout adds the timeout to the create instance configuration params

func (*CreateInstanceConfigurationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateInstanceConfigurationReader

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

CreateInstanceConfigurationReader is a Reader for the CreateInstanceConfiguration structure.

func (*CreateInstanceConfigurationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteInstanceConfigurationForbidden

type DeleteInstanceConfigurationForbidden struct {
	Payload *models.BasicFailedReply
}

DeleteInstanceConfigurationForbidden describes a response with status code 403, with default header values.

Instance configuration specified by {id} is system owned (code: 'configuration.system_owned')

func NewDeleteInstanceConfigurationForbidden

func NewDeleteInstanceConfigurationForbidden() *DeleteInstanceConfigurationForbidden

NewDeleteInstanceConfigurationForbidden creates a DeleteInstanceConfigurationForbidden with default headers values

func (*DeleteInstanceConfigurationForbidden) Code added in v1.13.0

Code gets the status code for the delete instance configuration forbidden response

func (*DeleteInstanceConfigurationForbidden) Error

func (*DeleteInstanceConfigurationForbidden) GetPayload

func (*DeleteInstanceConfigurationForbidden) IsClientError added in v1.13.0

func (o *DeleteInstanceConfigurationForbidden) IsClientError() bool

IsClientError returns true when this delete instance configuration forbidden response has a 4xx status code

func (*DeleteInstanceConfigurationForbidden) IsCode added in v1.13.0

IsCode returns true when this delete instance configuration forbidden response a status code equal to that given

func (*DeleteInstanceConfigurationForbidden) IsRedirect added in v1.13.0

IsRedirect returns true when this delete instance configuration forbidden response has a 3xx status code

func (*DeleteInstanceConfigurationForbidden) IsServerError added in v1.13.0

func (o *DeleteInstanceConfigurationForbidden) IsServerError() bool

IsServerError returns true when this delete instance configuration forbidden response has a 5xx status code

func (*DeleteInstanceConfigurationForbidden) IsSuccess added in v1.13.0

IsSuccess returns true when this delete instance configuration forbidden response has a 2xx status code

func (*DeleteInstanceConfigurationForbidden) String added in v1.13.0

type DeleteInstanceConfigurationNotFound

type DeleteInstanceConfigurationNotFound struct {
	Payload *models.BasicFailedReply
}

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

Instance configuration specified by {id} cannot be found or the operation failed (code: 'configuration.instance_configuration_not_found')

func NewDeleteInstanceConfigurationNotFound

func NewDeleteInstanceConfigurationNotFound() *DeleteInstanceConfigurationNotFound

NewDeleteInstanceConfigurationNotFound creates a DeleteInstanceConfigurationNotFound with default headers values

func (*DeleteInstanceConfigurationNotFound) Code added in v1.13.0

Code gets the status code for the delete instance configuration not found response

func (*DeleteInstanceConfigurationNotFound) Error

func (*DeleteInstanceConfigurationNotFound) GetPayload

func (*DeleteInstanceConfigurationNotFound) IsClientError added in v1.13.0

func (o *DeleteInstanceConfigurationNotFound) IsClientError() bool

IsClientError returns true when this delete instance configuration not found response has a 4xx status code

func (*DeleteInstanceConfigurationNotFound) IsCode added in v1.13.0

IsCode returns true when this delete instance configuration not found response a status code equal to that given

func (*DeleteInstanceConfigurationNotFound) IsRedirect added in v1.13.0

func (o *DeleteInstanceConfigurationNotFound) IsRedirect() bool

IsRedirect returns true when this delete instance configuration not found response has a 3xx status code

func (*DeleteInstanceConfigurationNotFound) IsServerError added in v1.13.0

func (o *DeleteInstanceConfigurationNotFound) IsServerError() bool

IsServerError returns true when this delete instance configuration not found response has a 5xx status code

func (*DeleteInstanceConfigurationNotFound) IsSuccess added in v1.13.0

IsSuccess returns true when this delete instance configuration not found response has a 2xx status code

func (*DeleteInstanceConfigurationNotFound) String added in v1.13.0

type DeleteInstanceConfigurationOK

type DeleteInstanceConfigurationOK struct {
	Payload models.EmptyResponse
}

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

Instance configuration specified by {id} was deleted

func NewDeleteInstanceConfigurationOK

func NewDeleteInstanceConfigurationOK() *DeleteInstanceConfigurationOK

NewDeleteInstanceConfigurationOK creates a DeleteInstanceConfigurationOK with default headers values

func (*DeleteInstanceConfigurationOK) Code added in v1.13.0

Code gets the status code for the delete instance configuration o k response

func (*DeleteInstanceConfigurationOK) Error

func (*DeleteInstanceConfigurationOK) GetPayload

func (*DeleteInstanceConfigurationOK) IsClientError added in v1.13.0

func (o *DeleteInstanceConfigurationOK) IsClientError() bool

IsClientError returns true when this delete instance configuration o k response has a 4xx status code

func (*DeleteInstanceConfigurationOK) IsCode added in v1.13.0

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

IsCode returns true when this delete instance configuration o k response a status code equal to that given

func (*DeleteInstanceConfigurationOK) IsRedirect added in v1.13.0

func (o *DeleteInstanceConfigurationOK) IsRedirect() bool

IsRedirect returns true when this delete instance configuration o k response has a 3xx status code

func (*DeleteInstanceConfigurationOK) IsServerError added in v1.13.0

func (o *DeleteInstanceConfigurationOK) IsServerError() bool

IsServerError returns true when this delete instance configuration o k response has a 5xx status code

func (*DeleteInstanceConfigurationOK) IsSuccess added in v1.13.0

func (o *DeleteInstanceConfigurationOK) IsSuccess() bool

IsSuccess returns true when this delete instance configuration o k response has a 2xx status code

func (*DeleteInstanceConfigurationOK) String added in v1.13.0

type DeleteInstanceConfigurationParams

type DeleteInstanceConfigurationParams struct {

	/* ID.

	   ID of the instance configuration
	*/
	ID string

	/* Version.

	   This is a database-level field, not related to the application-level 'config_version', except as described in the following docs. If specified, checks for conflicts against 'x-cloud-resource-version' from the GET request (the GET's 'config_version' should be left blank if the IC is configuration controlled, ie to get the latest configuration)
	*/
	Version *int64

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

DeleteInstanceConfigurationParams contains all the parameters to send to the API endpoint

for the delete instance configuration operation.

Typically these are written to a http.Request.

func NewDeleteInstanceConfigurationParams

func NewDeleteInstanceConfigurationParams() *DeleteInstanceConfigurationParams

NewDeleteInstanceConfigurationParams creates a new DeleteInstanceConfigurationParams 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 NewDeleteInstanceConfigurationParamsWithContext

func NewDeleteInstanceConfigurationParamsWithContext(ctx context.Context) *DeleteInstanceConfigurationParams

NewDeleteInstanceConfigurationParamsWithContext creates a new DeleteInstanceConfigurationParams object with the ability to set a context for a request.

func NewDeleteInstanceConfigurationParamsWithHTTPClient

func NewDeleteInstanceConfigurationParamsWithHTTPClient(client *http.Client) *DeleteInstanceConfigurationParams

NewDeleteInstanceConfigurationParamsWithHTTPClient creates a new DeleteInstanceConfigurationParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteInstanceConfigurationParamsWithTimeout

func NewDeleteInstanceConfigurationParamsWithTimeout(timeout time.Duration) *DeleteInstanceConfigurationParams

NewDeleteInstanceConfigurationParamsWithTimeout creates a new DeleteInstanceConfigurationParams object with the ability to set a timeout on a request.

func (*DeleteInstanceConfigurationParams) SetContext

SetContext adds the context to the delete instance configuration params

func (*DeleteInstanceConfigurationParams) SetDefaults added in v1.3.0

func (o *DeleteInstanceConfigurationParams) SetDefaults()

SetDefaults hydrates default values in the delete instance configuration params (not the query body).

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

func (*DeleteInstanceConfigurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete instance configuration params

func (*DeleteInstanceConfigurationParams) SetID

SetID adds the id to the delete instance configuration params

func (*DeleteInstanceConfigurationParams) SetTimeout

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

SetTimeout adds the timeout to the delete instance configuration params

func (*DeleteInstanceConfigurationParams) SetVersion

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

SetVersion adds the version to the delete instance configuration params

func (*DeleteInstanceConfigurationParams) WithContext

WithContext adds the context to the delete instance configuration params

func (*DeleteInstanceConfigurationParams) WithDefaults added in v1.3.0

WithDefaults hydrates default values in the delete instance configuration params (not the query body).

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

func (*DeleteInstanceConfigurationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete instance configuration params

func (*DeleteInstanceConfigurationParams) WithID

WithID adds the id to the delete instance configuration params

func (*DeleteInstanceConfigurationParams) WithTimeout

WithTimeout adds the timeout to the delete instance configuration params

func (*DeleteInstanceConfigurationParams) WithVersion

WithVersion adds the version to the delete instance configuration params

func (*DeleteInstanceConfigurationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteInstanceConfigurationReader

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

DeleteInstanceConfigurationReader is a Reader for the DeleteInstanceConfiguration structure.

func (*DeleteInstanceConfigurationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetInstanceConfigurationNotFound

type GetInstanceConfigurationNotFound struct {
	Payload *models.BasicFailedReply
}

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

Instance configuration specified by {id} cannot be found (code: 'configuration.instance_configuration_not_found')

func NewGetInstanceConfigurationNotFound

func NewGetInstanceConfigurationNotFound() *GetInstanceConfigurationNotFound

NewGetInstanceConfigurationNotFound creates a GetInstanceConfigurationNotFound with default headers values

func (*GetInstanceConfigurationNotFound) Code added in v1.13.0

Code gets the status code for the get instance configuration not found response

func (*GetInstanceConfigurationNotFound) Error

func (*GetInstanceConfigurationNotFound) GetPayload

func (*GetInstanceConfigurationNotFound) IsClientError added in v1.13.0

func (o *GetInstanceConfigurationNotFound) IsClientError() bool

IsClientError returns true when this get instance configuration not found response has a 4xx status code

func (*GetInstanceConfigurationNotFound) IsCode added in v1.13.0

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

IsCode returns true when this get instance configuration not found response a status code equal to that given

func (*GetInstanceConfigurationNotFound) IsRedirect added in v1.13.0

func (o *GetInstanceConfigurationNotFound) IsRedirect() bool

IsRedirect returns true when this get instance configuration not found response has a 3xx status code

func (*GetInstanceConfigurationNotFound) IsServerError added in v1.13.0

func (o *GetInstanceConfigurationNotFound) IsServerError() bool

IsServerError returns true when this get instance configuration not found response has a 5xx status code

func (*GetInstanceConfigurationNotFound) IsSuccess added in v1.13.0

func (o *GetInstanceConfigurationNotFound) IsSuccess() bool

IsSuccess returns true when this get instance configuration not found response has a 2xx status code

func (*GetInstanceConfigurationNotFound) String added in v1.13.0

type GetInstanceConfigurationOK

type GetInstanceConfigurationOK struct {
	Payload *models.InstanceConfiguration
}

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

An InstanceConfiguration

func NewGetInstanceConfigurationOK

func NewGetInstanceConfigurationOK() *GetInstanceConfigurationOK

NewGetInstanceConfigurationOK creates a GetInstanceConfigurationOK with default headers values

func (*GetInstanceConfigurationOK) Code added in v1.13.0

func (o *GetInstanceConfigurationOK) Code() int

Code gets the status code for the get instance configuration o k response

func (*GetInstanceConfigurationOK) Error

func (*GetInstanceConfigurationOK) GetPayload

func (*GetInstanceConfigurationOK) IsClientError added in v1.13.0

func (o *GetInstanceConfigurationOK) IsClientError() bool

IsClientError returns true when this get instance configuration o k response has a 4xx status code

func (*GetInstanceConfigurationOK) IsCode added in v1.13.0

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

IsCode returns true when this get instance configuration o k response a status code equal to that given

func (*GetInstanceConfigurationOK) IsRedirect added in v1.13.0

func (o *GetInstanceConfigurationOK) IsRedirect() bool

IsRedirect returns true when this get instance configuration o k response has a 3xx status code

func (*GetInstanceConfigurationOK) IsServerError added in v1.13.0

func (o *GetInstanceConfigurationOK) IsServerError() bool

IsServerError returns true when this get instance configuration o k response has a 5xx status code

func (*GetInstanceConfigurationOK) IsSuccess added in v1.13.0

func (o *GetInstanceConfigurationOK) IsSuccess() bool

IsSuccess returns true when this get instance configuration o k response has a 2xx status code

func (*GetInstanceConfigurationOK) String added in v1.13.0

func (o *GetInstanceConfigurationOK) String() string

type GetInstanceConfigurationParams

type GetInstanceConfigurationParams struct {

	/* ConfigVersion.

	   Optionally retrieve the specified config version of the IC (otherwise retrieves the latest/only version)
	*/
	ConfigVersion *int64

	/* ID.

	   ID of the instance configuration
	*/
	ID string

	/* ShowDeleted.

	   If true, if the instance configuration has been marked for deletion it is still returned. Otherwise, instance configurations marked for deletion generate a 404
	*/
	ShowDeleted *bool

	/* ShowMaxZones.

	   If true, will populate the max_zones field of the instance configuration.
	*/
	ShowMaxZones *bool

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

GetInstanceConfigurationParams contains all the parameters to send to the API endpoint

for the get instance configuration operation.

Typically these are written to a http.Request.

func NewGetInstanceConfigurationParams

func NewGetInstanceConfigurationParams() *GetInstanceConfigurationParams

NewGetInstanceConfigurationParams creates a new GetInstanceConfigurationParams 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 NewGetInstanceConfigurationParamsWithContext

func NewGetInstanceConfigurationParamsWithContext(ctx context.Context) *GetInstanceConfigurationParams

NewGetInstanceConfigurationParamsWithContext creates a new GetInstanceConfigurationParams object with the ability to set a context for a request.

func NewGetInstanceConfigurationParamsWithHTTPClient

func NewGetInstanceConfigurationParamsWithHTTPClient(client *http.Client) *GetInstanceConfigurationParams

NewGetInstanceConfigurationParamsWithHTTPClient creates a new GetInstanceConfigurationParams object with the ability to set a custom HTTPClient for a request.

func NewGetInstanceConfigurationParamsWithTimeout

func NewGetInstanceConfigurationParamsWithTimeout(timeout time.Duration) *GetInstanceConfigurationParams

NewGetInstanceConfigurationParamsWithTimeout creates a new GetInstanceConfigurationParams object with the ability to set a timeout on a request.

func (*GetInstanceConfigurationParams) SetConfigVersion added in v1.13.0

func (o *GetInstanceConfigurationParams) SetConfigVersion(configVersion *int64)

SetConfigVersion adds the configVersion to the get instance configuration params

func (*GetInstanceConfigurationParams) SetContext

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

SetContext adds the context to the get instance configuration params

func (*GetInstanceConfigurationParams) SetDefaults added in v1.3.0

func (o *GetInstanceConfigurationParams) SetDefaults()

SetDefaults hydrates default values in the get instance configuration params (not the query body).

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

func (*GetInstanceConfigurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get instance configuration params

func (*GetInstanceConfigurationParams) SetID

SetID adds the id to the get instance configuration params

func (*GetInstanceConfigurationParams) SetShowDeleted

func (o *GetInstanceConfigurationParams) SetShowDeleted(showDeleted *bool)

SetShowDeleted adds the showDeleted to the get instance configuration params

func (*GetInstanceConfigurationParams) SetShowMaxZones added in v1.7.0

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

SetShowMaxZones adds the showMaxZones to the get instance configuration params

func (*GetInstanceConfigurationParams) SetTimeout

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

SetTimeout adds the timeout to the get instance configuration params

func (*GetInstanceConfigurationParams) WithConfigVersion added in v1.13.0

func (o *GetInstanceConfigurationParams) WithConfigVersion(configVersion *int64) *GetInstanceConfigurationParams

WithConfigVersion adds the configVersion to the get instance configuration params

func (*GetInstanceConfigurationParams) WithContext

WithContext adds the context to the get instance configuration params

func (*GetInstanceConfigurationParams) WithDefaults added in v1.3.0

WithDefaults hydrates default values in the get instance configuration params (not the query body).

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

func (*GetInstanceConfigurationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get instance configuration params

func (*GetInstanceConfigurationParams) WithID

WithID adds the id to the get instance configuration params

func (*GetInstanceConfigurationParams) WithShowDeleted

func (o *GetInstanceConfigurationParams) WithShowDeleted(showDeleted *bool) *GetInstanceConfigurationParams

WithShowDeleted adds the showDeleted to the get instance configuration params

func (*GetInstanceConfigurationParams) WithShowMaxZones added in v1.7.0

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

WithShowMaxZones adds the showMaxZones to the get instance configuration params

func (*GetInstanceConfigurationParams) WithTimeout

WithTimeout adds the timeout to the get instance configuration params

func (*GetInstanceConfigurationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetInstanceConfigurationReader

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

GetInstanceConfigurationReader is a Reader for the GetInstanceConfiguration structure.

func (*GetInstanceConfigurationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetInstanceConfigurationsOK

type GetInstanceConfigurationsOK struct {
	Payload []*models.InstanceConfiguration
}

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

A InstanceConfiguration

func NewGetInstanceConfigurationsOK

func NewGetInstanceConfigurationsOK() *GetInstanceConfigurationsOK

NewGetInstanceConfigurationsOK creates a GetInstanceConfigurationsOK with default headers values

func (*GetInstanceConfigurationsOK) Code added in v1.13.0

func (o *GetInstanceConfigurationsOK) Code() int

Code gets the status code for the get instance configurations o k response

func (*GetInstanceConfigurationsOK) Error

func (*GetInstanceConfigurationsOK) GetPayload

func (*GetInstanceConfigurationsOK) IsClientError added in v1.13.0

func (o *GetInstanceConfigurationsOK) IsClientError() bool

IsClientError returns true when this get instance configurations o k response has a 4xx status code

func (*GetInstanceConfigurationsOK) IsCode added in v1.13.0

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

IsCode returns true when this get instance configurations o k response a status code equal to that given

func (*GetInstanceConfigurationsOK) IsRedirect added in v1.13.0

func (o *GetInstanceConfigurationsOK) IsRedirect() bool

IsRedirect returns true when this get instance configurations o k response has a 3xx status code

func (*GetInstanceConfigurationsOK) IsServerError added in v1.13.0

func (o *GetInstanceConfigurationsOK) IsServerError() bool

IsServerError returns true when this get instance configurations o k response has a 5xx status code

func (*GetInstanceConfigurationsOK) IsSuccess added in v1.13.0

func (o *GetInstanceConfigurationsOK) IsSuccess() bool

IsSuccess returns true when this get instance configurations o k response has a 2xx status code

func (*GetInstanceConfigurationsOK) String added in v1.13.0

func (o *GetInstanceConfigurationsOK) String() string

type GetInstanceConfigurationsParams

type GetInstanceConfigurationsParams struct {

	/* IncludeVersions.

	   If true, will return all existing versions of each instance configuration.
	*/
	IncludeVersions *bool

	/* ShowDeleted.

	   If true, instance configurations marked for deletions are also returned. Otherwise, only instance configurations not marked for deletion are returned
	*/
	ShowDeleted *bool

	/* ShowMaxZones.

	   If true, will populate the max_zones field of the instance configurations.
	*/
	ShowMaxZones *bool

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

GetInstanceConfigurationsParams contains all the parameters to send to the API endpoint

for the get instance configurations operation.

Typically these are written to a http.Request.

func NewGetInstanceConfigurationsParams

func NewGetInstanceConfigurationsParams() *GetInstanceConfigurationsParams

NewGetInstanceConfigurationsParams creates a new GetInstanceConfigurationsParams 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 NewGetInstanceConfigurationsParamsWithContext

func NewGetInstanceConfigurationsParamsWithContext(ctx context.Context) *GetInstanceConfigurationsParams

NewGetInstanceConfigurationsParamsWithContext creates a new GetInstanceConfigurationsParams object with the ability to set a context for a request.

func NewGetInstanceConfigurationsParamsWithHTTPClient

func NewGetInstanceConfigurationsParamsWithHTTPClient(client *http.Client) *GetInstanceConfigurationsParams

NewGetInstanceConfigurationsParamsWithHTTPClient creates a new GetInstanceConfigurationsParams object with the ability to set a custom HTTPClient for a request.

func NewGetInstanceConfigurationsParamsWithTimeout

func NewGetInstanceConfigurationsParamsWithTimeout(timeout time.Duration) *GetInstanceConfigurationsParams

NewGetInstanceConfigurationsParamsWithTimeout creates a new GetInstanceConfigurationsParams object with the ability to set a timeout on a request.

func (*GetInstanceConfigurationsParams) SetContext

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

SetContext adds the context to the get instance configurations params

func (*GetInstanceConfigurationsParams) SetDefaults added in v1.3.0

func (o *GetInstanceConfigurationsParams) SetDefaults()

SetDefaults hydrates default values in the get instance configurations params (not the query body).

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

func (*GetInstanceConfigurationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get instance configurations params

func (*GetInstanceConfigurationsParams) SetIncludeVersions added in v1.17.0

func (o *GetInstanceConfigurationsParams) SetIncludeVersions(includeVersions *bool)

SetIncludeVersions adds the includeVersions to the get instance configurations params

func (*GetInstanceConfigurationsParams) SetShowDeleted

func (o *GetInstanceConfigurationsParams) SetShowDeleted(showDeleted *bool)

SetShowDeleted adds the showDeleted to the get instance configurations params

func (*GetInstanceConfigurationsParams) SetShowMaxZones added in v1.7.0

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

SetShowMaxZones adds the showMaxZones to the get instance configurations params

func (*GetInstanceConfigurationsParams) SetTimeout

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

SetTimeout adds the timeout to the get instance configurations params

func (*GetInstanceConfigurationsParams) WithContext

WithContext adds the context to the get instance configurations params

func (*GetInstanceConfigurationsParams) WithDefaults added in v1.3.0

WithDefaults hydrates default values in the get instance configurations params (not the query body).

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

func (*GetInstanceConfigurationsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get instance configurations params

func (*GetInstanceConfigurationsParams) WithIncludeVersions added in v1.17.0

func (o *GetInstanceConfigurationsParams) WithIncludeVersions(includeVersions *bool) *GetInstanceConfigurationsParams

WithIncludeVersions adds the includeVersions to the get instance configurations params

func (*GetInstanceConfigurationsParams) WithShowDeleted

func (o *GetInstanceConfigurationsParams) WithShowDeleted(showDeleted *bool) *GetInstanceConfigurationsParams

WithShowDeleted adds the showDeleted to the get instance configurations params

func (*GetInstanceConfigurationsParams) WithShowMaxZones added in v1.7.0

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

WithShowMaxZones adds the showMaxZones to the get instance configurations params

func (*GetInstanceConfigurationsParams) WithTimeout

WithTimeout adds the timeout to the get instance configurations params

func (*GetInstanceConfigurationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetInstanceConfigurationsReader

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

GetInstanceConfigurationsReader is a Reader for the GetInstanceConfigurations structure.

func (*GetInstanceConfigurationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetInstanceConfigurationBadRequest

type SetInstanceConfigurationBadRequest struct {
	Payload *models.BasicFailedReply
}

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

cluster_type in the InstanceConfiguration model is invalid (code: 'configuration.invalid_cluster_type') or the ZooKeeper operation failed due to bad version, etc. (code: 'configuration.instance_configuration_update_failed') or the id in the InstanceConfiguration model is reserved/prohibited (code: 'configuration.configuration_id_reserved') or the discrete_sizes in the InstanceConfiguration model is invalid (code: 'configuration.invalid_discrete_sizes') or the metadata in the InstanceConfiguration model has empty keys or values (code: 'configuration.bad_meta_data')

func NewSetInstanceConfigurationBadRequest

func NewSetInstanceConfigurationBadRequest() *SetInstanceConfigurationBadRequest

NewSetInstanceConfigurationBadRequest creates a SetInstanceConfigurationBadRequest with default headers values

func (*SetInstanceConfigurationBadRequest) Code added in v1.13.0

Code gets the status code for the set instance configuration bad request response

func (*SetInstanceConfigurationBadRequest) Error

func (*SetInstanceConfigurationBadRequest) GetPayload

func (*SetInstanceConfigurationBadRequest) IsClientError added in v1.13.0

func (o *SetInstanceConfigurationBadRequest) IsClientError() bool

IsClientError returns true when this set instance configuration bad request response has a 4xx status code

func (*SetInstanceConfigurationBadRequest) IsCode added in v1.13.0

IsCode returns true when this set instance configuration bad request response a status code equal to that given

func (*SetInstanceConfigurationBadRequest) IsRedirect added in v1.13.0

func (o *SetInstanceConfigurationBadRequest) IsRedirect() bool

IsRedirect returns true when this set instance configuration bad request response has a 3xx status code

func (*SetInstanceConfigurationBadRequest) IsServerError added in v1.13.0

func (o *SetInstanceConfigurationBadRequest) IsServerError() bool

IsServerError returns true when this set instance configuration bad request response has a 5xx status code

func (*SetInstanceConfigurationBadRequest) IsSuccess added in v1.13.0

IsSuccess returns true when this set instance configuration bad request response has a 2xx status code

func (*SetInstanceConfigurationBadRequest) String added in v1.13.0

type SetInstanceConfigurationCreated

type SetInstanceConfigurationCreated struct {
	Payload *models.VersionedIDResponse
}

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

The instance configuration was created successfully.

func NewSetInstanceConfigurationCreated

func NewSetInstanceConfigurationCreated() *SetInstanceConfigurationCreated

NewSetInstanceConfigurationCreated creates a SetInstanceConfigurationCreated with default headers values

func (*SetInstanceConfigurationCreated) Code added in v1.13.0

Code gets the status code for the set instance configuration created response

func (*SetInstanceConfigurationCreated) Error

func (*SetInstanceConfigurationCreated) GetPayload

func (*SetInstanceConfigurationCreated) IsClientError added in v1.13.0

func (o *SetInstanceConfigurationCreated) IsClientError() bool

IsClientError returns true when this set instance configuration created response has a 4xx status code

func (*SetInstanceConfigurationCreated) IsCode added in v1.13.0

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

IsCode returns true when this set instance configuration created response a status code equal to that given

func (*SetInstanceConfigurationCreated) IsRedirect added in v1.13.0

func (o *SetInstanceConfigurationCreated) IsRedirect() bool

IsRedirect returns true when this set instance configuration created response has a 3xx status code

func (*SetInstanceConfigurationCreated) IsServerError added in v1.13.0

func (o *SetInstanceConfigurationCreated) IsServerError() bool

IsServerError returns true when this set instance configuration created response has a 5xx status code

func (*SetInstanceConfigurationCreated) IsSuccess added in v1.13.0

func (o *SetInstanceConfigurationCreated) IsSuccess() bool

IsSuccess returns true when this set instance configuration created response has a 2xx status code

func (*SetInstanceConfigurationCreated) String added in v1.13.0

type SetInstanceConfigurationForbidden

type SetInstanceConfigurationForbidden struct {
	Payload *models.BasicFailedReply
}

SetInstanceConfigurationForbidden describes a response with status code 403, with default header values.

system_owned or deleted_on cannot be set externally (code: 'configuration.system_owned')

func NewSetInstanceConfigurationForbidden

func NewSetInstanceConfigurationForbidden() *SetInstanceConfigurationForbidden

NewSetInstanceConfigurationForbidden creates a SetInstanceConfigurationForbidden with default headers values

func (*SetInstanceConfigurationForbidden) Code added in v1.13.0

Code gets the status code for the set instance configuration forbidden response

func (*SetInstanceConfigurationForbidden) Error

func (*SetInstanceConfigurationForbidden) GetPayload

func (*SetInstanceConfigurationForbidden) IsClientError added in v1.13.0

func (o *SetInstanceConfigurationForbidden) IsClientError() bool

IsClientError returns true when this set instance configuration forbidden response has a 4xx status code

func (*SetInstanceConfigurationForbidden) IsCode added in v1.13.0

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

IsCode returns true when this set instance configuration forbidden response a status code equal to that given

func (*SetInstanceConfigurationForbidden) IsRedirect added in v1.13.0

func (o *SetInstanceConfigurationForbidden) IsRedirect() bool

IsRedirect returns true when this set instance configuration forbidden response has a 3xx status code

func (*SetInstanceConfigurationForbidden) IsServerError added in v1.13.0

func (o *SetInstanceConfigurationForbidden) IsServerError() bool

IsServerError returns true when this set instance configuration forbidden response has a 5xx status code

func (*SetInstanceConfigurationForbidden) IsSuccess added in v1.13.0

func (o *SetInstanceConfigurationForbidden) IsSuccess() bool

IsSuccess returns true when this set instance configuration forbidden response has a 2xx status code

func (*SetInstanceConfigurationForbidden) String added in v1.13.0

type SetInstanceConfigurationNotFound

type SetInstanceConfigurationNotFound struct {
	Payload *models.BasicFailedReply
}

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

Instance configuration specified by {id} cannot be found or the operation failed (code: 'configuration.instance_configuration_not_found')

func NewSetInstanceConfigurationNotFound

func NewSetInstanceConfigurationNotFound() *SetInstanceConfigurationNotFound

NewSetInstanceConfigurationNotFound creates a SetInstanceConfigurationNotFound with default headers values

func (*SetInstanceConfigurationNotFound) Code added in v1.13.0

Code gets the status code for the set instance configuration not found response

func (*SetInstanceConfigurationNotFound) Error

func (*SetInstanceConfigurationNotFound) GetPayload

func (*SetInstanceConfigurationNotFound) IsClientError added in v1.13.0

func (o *SetInstanceConfigurationNotFound) IsClientError() bool

IsClientError returns true when this set instance configuration not found response has a 4xx status code

func (*SetInstanceConfigurationNotFound) IsCode added in v1.13.0

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

IsCode returns true when this set instance configuration not found response a status code equal to that given

func (*SetInstanceConfigurationNotFound) IsRedirect added in v1.13.0

func (o *SetInstanceConfigurationNotFound) IsRedirect() bool

IsRedirect returns true when this set instance configuration not found response has a 3xx status code

func (*SetInstanceConfigurationNotFound) IsServerError added in v1.13.0

func (o *SetInstanceConfigurationNotFound) IsServerError() bool

IsServerError returns true when this set instance configuration not found response has a 5xx status code

func (*SetInstanceConfigurationNotFound) IsSuccess added in v1.13.0

func (o *SetInstanceConfigurationNotFound) IsSuccess() bool

IsSuccess returns true when this set instance configuration not found response has a 2xx status code

func (*SetInstanceConfigurationNotFound) String added in v1.13.0

type SetInstanceConfigurationOK

type SetInstanceConfigurationOK struct {
	Payload *models.VersionedIDResponse
}

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

The instance configuration was updated successfully.

func NewSetInstanceConfigurationOK

func NewSetInstanceConfigurationOK() *SetInstanceConfigurationOK

NewSetInstanceConfigurationOK creates a SetInstanceConfigurationOK with default headers values

func (*SetInstanceConfigurationOK) Code added in v1.13.0

func (o *SetInstanceConfigurationOK) Code() int

Code gets the status code for the set instance configuration o k response

func (*SetInstanceConfigurationOK) Error

func (*SetInstanceConfigurationOK) GetPayload

func (*SetInstanceConfigurationOK) IsClientError added in v1.13.0

func (o *SetInstanceConfigurationOK) IsClientError() bool

IsClientError returns true when this set instance configuration o k response has a 4xx status code

func (*SetInstanceConfigurationOK) IsCode added in v1.13.0

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

IsCode returns true when this set instance configuration o k response a status code equal to that given

func (*SetInstanceConfigurationOK) IsRedirect added in v1.13.0

func (o *SetInstanceConfigurationOK) IsRedirect() bool

IsRedirect returns true when this set instance configuration o k response has a 3xx status code

func (*SetInstanceConfigurationOK) IsServerError added in v1.13.0

func (o *SetInstanceConfigurationOK) IsServerError() bool

IsServerError returns true when this set instance configuration o k response has a 5xx status code

func (*SetInstanceConfigurationOK) IsSuccess added in v1.13.0

func (o *SetInstanceConfigurationOK) IsSuccess() bool

IsSuccess returns true when this set instance configuration o k response has a 2xx status code

func (*SetInstanceConfigurationOK) String added in v1.13.0

func (o *SetInstanceConfigurationOK) String() string

type SetInstanceConfigurationParams

type SetInstanceConfigurationParams struct {

	/* ConfigControl.

	   If true, then an update that changes immutable fields will create a new version of the IC (leaving the previous ones accessible via 'config_version'). Otherwise such updates will fail.
	*/
	ConfigControl *bool

	/* CreateOnly.

	   If true, will fail if an instance configuration already exists at the given id
	*/
	CreateOnly *bool

	/* ID.

	   ID of the instance configuration
	*/
	ID string

	/* Instance.

	   the Instance Configuration
	*/
	Instance *models.InstanceConfiguration

	/* StrictMode.

	   If true, then allocator_filter and storage_multiplier cannot be changed in an existing IC. Defaults to false unless config_control is true (in which case a new version is created)
	*/
	StrictMode *bool

	/* TestConfig.

	   If true, The IC is added as a test version (set 'instance_config_version': -1 in the deployment request to reference), leaving the existing IC alone. Will error if the IC doesn't already exist.
	*/
	TestConfig *bool

	/* Version.

	   This is a database-level field, not related to the application-level 'config_version', except as described in the following docs. If specified, checks for conflicts against 'x-cloud-resource-version' from the GET request (where the 'config_version' in the GET should match the the 'configuration_version' in the PUT body if the IC is configuration controlled).
	*/
	Version *int64

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

SetInstanceConfigurationParams contains all the parameters to send to the API endpoint

for the set instance configuration operation.

Typically these are written to a http.Request.

func NewSetInstanceConfigurationParams

func NewSetInstanceConfigurationParams() *SetInstanceConfigurationParams

NewSetInstanceConfigurationParams creates a new SetInstanceConfigurationParams 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 NewSetInstanceConfigurationParamsWithContext

func NewSetInstanceConfigurationParamsWithContext(ctx context.Context) *SetInstanceConfigurationParams

NewSetInstanceConfigurationParamsWithContext creates a new SetInstanceConfigurationParams object with the ability to set a context for a request.

func NewSetInstanceConfigurationParamsWithHTTPClient

func NewSetInstanceConfigurationParamsWithHTTPClient(client *http.Client) *SetInstanceConfigurationParams

NewSetInstanceConfigurationParamsWithHTTPClient creates a new SetInstanceConfigurationParams object with the ability to set a custom HTTPClient for a request.

func NewSetInstanceConfigurationParamsWithTimeout

func NewSetInstanceConfigurationParamsWithTimeout(timeout time.Duration) *SetInstanceConfigurationParams

NewSetInstanceConfigurationParamsWithTimeout creates a new SetInstanceConfigurationParams object with the ability to set a timeout on a request.

func (*SetInstanceConfigurationParams) SetConfigControl added in v1.13.0

func (o *SetInstanceConfigurationParams) SetConfigControl(configControl *bool)

SetConfigControl adds the configControl to the set instance configuration params

func (*SetInstanceConfigurationParams) SetContext

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

SetContext adds the context to the set instance configuration params

func (*SetInstanceConfigurationParams) SetCreateOnly

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

SetCreateOnly adds the createOnly to the set instance configuration params

func (*SetInstanceConfigurationParams) SetDefaults added in v1.3.0

func (o *SetInstanceConfigurationParams) SetDefaults()

SetDefaults hydrates default values in the set instance configuration params (not the query body).

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

func (*SetInstanceConfigurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set instance configuration params

func (*SetInstanceConfigurationParams) SetID

SetID adds the id to the set instance configuration params

func (*SetInstanceConfigurationParams) SetInstance

SetInstance adds the instance to the set instance configuration params

func (*SetInstanceConfigurationParams) SetStrictMode added in v1.13.0

func (o *SetInstanceConfigurationParams) SetStrictMode(strictMode *bool)

SetStrictMode adds the strictMode to the set instance configuration params

func (*SetInstanceConfigurationParams) SetTestConfig added in v1.13.0

func (o *SetInstanceConfigurationParams) SetTestConfig(testConfig *bool)

SetTestConfig adds the testConfig to the set instance configuration params

func (*SetInstanceConfigurationParams) SetTimeout

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

SetTimeout adds the timeout to the set instance configuration params

func (*SetInstanceConfigurationParams) SetVersion

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

SetVersion adds the version to the set instance configuration params

func (*SetInstanceConfigurationParams) WithConfigControl added in v1.13.0

func (o *SetInstanceConfigurationParams) WithConfigControl(configControl *bool) *SetInstanceConfigurationParams

WithConfigControl adds the configControl to the set instance configuration params

func (*SetInstanceConfigurationParams) WithContext

WithContext adds the context to the set instance configuration params

func (*SetInstanceConfigurationParams) WithCreateOnly

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

WithCreateOnly adds the createOnly to the set instance configuration params

func (*SetInstanceConfigurationParams) WithDefaults added in v1.3.0

WithDefaults hydrates default values in the set instance configuration params (not the query body).

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

func (*SetInstanceConfigurationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set instance configuration params

func (*SetInstanceConfigurationParams) WithID

WithID adds the id to the set instance configuration params

func (*SetInstanceConfigurationParams) WithInstance

WithInstance adds the instance to the set instance configuration params

func (*SetInstanceConfigurationParams) WithStrictMode added in v1.13.0

func (o *SetInstanceConfigurationParams) WithStrictMode(strictMode *bool) *SetInstanceConfigurationParams

WithStrictMode adds the strictMode to the set instance configuration params

func (*SetInstanceConfigurationParams) WithTestConfig added in v1.13.0

func (o *SetInstanceConfigurationParams) WithTestConfig(testConfig *bool) *SetInstanceConfigurationParams

WithTestConfig adds the testConfig to the set instance configuration params

func (*SetInstanceConfigurationParams) WithTimeout

WithTimeout adds the timeout to the set instance configuration params

func (*SetInstanceConfigurationParams) WithVersion

WithVersion adds the version to the set instance configuration params

func (*SetInstanceConfigurationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetInstanceConfigurationReader

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

SetInstanceConfigurationReader is a Reader for the SetInstanceConfiguration structure.

func (*SetInstanceConfigurationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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