universe_cluster_mutations

package
v0.0.0-...-af0b780 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for universe cluster mutations API

func (*Client) CreateAllClusters

func (a *Client) CreateAllClusters(params *CreateAllClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAllClustersOK, error)

CreateAllClusters creates universe clusters

This will configure and create universe with (optionally) multiple clusters. Just fill in the userIntent for PRIMARY and (optionally) an ASYNC cluster

func (*Client) CreateReadOnlyCluster

func (a *Client) CreateReadOnlyCluster(params *CreateReadOnlyClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateReadOnlyClusterOK, error)

CreateReadOnlyCluster creates read only cluster

This will add a readonly cluster to existing universe. Just fill in the userIntent for ASYNC cluster.

func (*Client) DeleteReadonlyCluster

func (a *Client) DeleteReadonlyCluster(params *DeleteReadonlyClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteReadonlyClusterOK, error)

DeleteReadonlyCluster deletes readonly cluster

This will delete readonly cluster of existing universe.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdatePrimaryCluster

func (a *Client) UpdatePrimaryCluster(params *UpdatePrimaryClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePrimaryClusterOK, error)

UpdatePrimaryCluster updates primary cluster

This will update primary cluster of existing universe.Use API to GET current universe. Lookup universeDetails attribute of the universe resource returned. Update the necessary field (e.g. numNodes) Use this updated universeDetails as request body. See https://github.com/yugabyte/yugabyte-db/blob/master/managed/api-examples/python-simple/edit-universe.ipynb

func (*Client) UpdateReadOnlyCluster

func (a *Client) UpdateReadOnlyCluster(params *UpdateReadOnlyClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateReadOnlyClusterOK, error)

UpdateReadOnlyCluster updates readonly cluster

This will update readonly cluster of existing universe.Use API to GET current universe. Lookup universeDetails attribute of the universe resource returned. Update the necessary field (e.g. numNodes) Use this updated universeDetails as request body. See https://github.com/yugabyte/yugabyte-db/blob/master/managed/api-examples/python-simple/edit-universe.ipynb

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateAllClusters(params *CreateAllClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAllClustersOK, error)

	CreateReadOnlyCluster(params *CreateReadOnlyClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateReadOnlyClusterOK, error)

	DeleteReadonlyCluster(params *DeleteReadonlyClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteReadonlyClusterOK, error)

	UpdatePrimaryCluster(params *UpdatePrimaryClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePrimaryClusterOK, error)

	UpdateReadOnlyCluster(params *UpdateReadOnlyClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateReadOnlyClusterOK, 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 universe cluster mutations API client.

type CreateAllClustersOK

type CreateAllClustersOK struct {
	Payload *models.YBPTask
}
CreateAllClustersOK describes a response with status code 200, with default header values.

successful operation

func NewCreateAllClustersOK

func NewCreateAllClustersOK() *CreateAllClustersOK

NewCreateAllClustersOK creates a CreateAllClustersOK with default headers values

func (*CreateAllClustersOK) Error

func (o *CreateAllClustersOK) Error() string

func (*CreateAllClustersOK) GetPayload

func (o *CreateAllClustersOK) GetPayload() *models.YBPTask

type CreateAllClustersParams

type CreateAllClustersParams struct {

	// UniverseConfigureTaskParams.
	UniverseConfigureTaskParams *models.UniverseConfigureTaskParams

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

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

CreateAllClustersParams contains all the parameters to send to the API endpoint

for the create all clusters operation.

Typically these are written to a http.Request.

func NewCreateAllClustersParams

func NewCreateAllClustersParams() *CreateAllClustersParams

NewCreateAllClustersParams creates a new CreateAllClustersParams 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 NewCreateAllClustersParamsWithContext

func NewCreateAllClustersParamsWithContext(ctx context.Context) *CreateAllClustersParams

NewCreateAllClustersParamsWithContext creates a new CreateAllClustersParams object with the ability to set a context for a request.

func NewCreateAllClustersParamsWithHTTPClient

func NewCreateAllClustersParamsWithHTTPClient(client *http.Client) *CreateAllClustersParams

NewCreateAllClustersParamsWithHTTPClient creates a new CreateAllClustersParams object with the ability to set a custom HTTPClient for a request.

func NewCreateAllClustersParamsWithTimeout

func NewCreateAllClustersParamsWithTimeout(timeout time.Duration) *CreateAllClustersParams

NewCreateAllClustersParamsWithTimeout creates a new CreateAllClustersParams object with the ability to set a timeout on a request.

func (*CreateAllClustersParams) SetCUUID

func (o *CreateAllClustersParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the create all clusters params

func (*CreateAllClustersParams) SetContext

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

SetContext adds the context to the create all clusters params

func (*CreateAllClustersParams) SetDefaults

func (o *CreateAllClustersParams) SetDefaults()

SetDefaults hydrates default values in the create all clusters params (not the query body).

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

func (*CreateAllClustersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create all clusters params

func (*CreateAllClustersParams) SetTimeout

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

SetTimeout adds the timeout to the create all clusters params

func (*CreateAllClustersParams) SetUniverseConfigureTaskParams

func (o *CreateAllClustersParams) SetUniverseConfigureTaskParams(universeConfigureTaskParams *models.UniverseConfigureTaskParams)

SetUniverseConfigureTaskParams adds the universeConfigureTaskParams to the create all clusters params

func (*CreateAllClustersParams) WithCUUID

WithCUUID adds the cUUID to the create all clusters params

func (*CreateAllClustersParams) WithContext

WithContext adds the context to the create all clusters params

func (*CreateAllClustersParams) WithDefaults

WithDefaults hydrates default values in the create all clusters params (not the query body).

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

func (*CreateAllClustersParams) WithHTTPClient

func (o *CreateAllClustersParams) WithHTTPClient(client *http.Client) *CreateAllClustersParams

WithHTTPClient adds the HTTPClient to the create all clusters params

func (*CreateAllClustersParams) WithTimeout

WithTimeout adds the timeout to the create all clusters params

func (*CreateAllClustersParams) WithUniverseConfigureTaskParams

func (o *CreateAllClustersParams) WithUniverseConfigureTaskParams(universeConfigureTaskParams *models.UniverseConfigureTaskParams) *CreateAllClustersParams

WithUniverseConfigureTaskParams adds the universeConfigureTaskParams to the create all clusters params

func (*CreateAllClustersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateAllClustersReader

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

CreateAllClustersReader is a Reader for the CreateAllClusters structure.

func (*CreateAllClustersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateReadOnlyClusterOK

type CreateReadOnlyClusterOK struct {
	Payload *models.YBPTask
}
CreateReadOnlyClusterOK describes a response with status code 200, with default header values.

successful operation

func NewCreateReadOnlyClusterOK

func NewCreateReadOnlyClusterOK() *CreateReadOnlyClusterOK

NewCreateReadOnlyClusterOK creates a CreateReadOnlyClusterOK with default headers values

func (*CreateReadOnlyClusterOK) Error

func (o *CreateReadOnlyClusterOK) Error() string

func (*CreateReadOnlyClusterOK) GetPayload

func (o *CreateReadOnlyClusterOK) GetPayload() *models.YBPTask

type CreateReadOnlyClusterParams

type CreateReadOnlyClusterParams struct {

	// UniverseConfigureTaskParams.
	UniverseConfigureTaskParams *models.UniverseDefinitionTaskParams

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// UniUUID.
	//
	// Format: uuid
	UniUUID strfmt.UUID

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

CreateReadOnlyClusterParams contains all the parameters to send to the API endpoint

for the create read only cluster operation.

Typically these are written to a http.Request.

func NewCreateReadOnlyClusterParams

func NewCreateReadOnlyClusterParams() *CreateReadOnlyClusterParams

NewCreateReadOnlyClusterParams creates a new CreateReadOnlyClusterParams 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 NewCreateReadOnlyClusterParamsWithContext

func NewCreateReadOnlyClusterParamsWithContext(ctx context.Context) *CreateReadOnlyClusterParams

NewCreateReadOnlyClusterParamsWithContext creates a new CreateReadOnlyClusterParams object with the ability to set a context for a request.

func NewCreateReadOnlyClusterParamsWithHTTPClient

func NewCreateReadOnlyClusterParamsWithHTTPClient(client *http.Client) *CreateReadOnlyClusterParams

NewCreateReadOnlyClusterParamsWithHTTPClient creates a new CreateReadOnlyClusterParams object with the ability to set a custom HTTPClient for a request.

func NewCreateReadOnlyClusterParamsWithTimeout

func NewCreateReadOnlyClusterParamsWithTimeout(timeout time.Duration) *CreateReadOnlyClusterParams

NewCreateReadOnlyClusterParamsWithTimeout creates a new CreateReadOnlyClusterParams object with the ability to set a timeout on a request.

func (*CreateReadOnlyClusterParams) SetCUUID

func (o *CreateReadOnlyClusterParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the create read only cluster params

func (*CreateReadOnlyClusterParams) SetContext

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

SetContext adds the context to the create read only cluster params

func (*CreateReadOnlyClusterParams) SetDefaults

func (o *CreateReadOnlyClusterParams) SetDefaults()

SetDefaults hydrates default values in the create read only cluster params (not the query body).

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

func (*CreateReadOnlyClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create read only cluster params

func (*CreateReadOnlyClusterParams) SetTimeout

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

SetTimeout adds the timeout to the create read only cluster params

func (*CreateReadOnlyClusterParams) SetUniUUID

func (o *CreateReadOnlyClusterParams) SetUniUUID(uniUUID strfmt.UUID)

SetUniUUID adds the uniUuid to the create read only cluster params

func (*CreateReadOnlyClusterParams) SetUniverseConfigureTaskParams

func (o *CreateReadOnlyClusterParams) SetUniverseConfigureTaskParams(universeConfigureTaskParams *models.UniverseDefinitionTaskParams)

SetUniverseConfigureTaskParams adds the universeConfigureTaskParams to the create read only cluster params

func (*CreateReadOnlyClusterParams) WithCUUID

WithCUUID adds the cUUID to the create read only cluster params

func (*CreateReadOnlyClusterParams) WithContext

WithContext adds the context to the create read only cluster params

func (*CreateReadOnlyClusterParams) WithDefaults

WithDefaults hydrates default values in the create read only cluster params (not the query body).

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

func (*CreateReadOnlyClusterParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create read only cluster params

func (*CreateReadOnlyClusterParams) WithTimeout

WithTimeout adds the timeout to the create read only cluster params

func (*CreateReadOnlyClusterParams) WithUniUUID

WithUniUUID adds the uniUUID to the create read only cluster params

func (*CreateReadOnlyClusterParams) WithUniverseConfigureTaskParams

func (o *CreateReadOnlyClusterParams) WithUniverseConfigureTaskParams(universeConfigureTaskParams *models.UniverseDefinitionTaskParams) *CreateReadOnlyClusterParams

WithUniverseConfigureTaskParams adds the universeConfigureTaskParams to the create read only cluster params

func (*CreateReadOnlyClusterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateReadOnlyClusterReader

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

CreateReadOnlyClusterReader is a Reader for the CreateReadOnlyCluster structure.

func (*CreateReadOnlyClusterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteReadonlyClusterOK

type DeleteReadonlyClusterOK struct {
	Payload *models.YBPTask
}
DeleteReadonlyClusterOK describes a response with status code 200, with default header values.

successful operation

func NewDeleteReadonlyClusterOK

func NewDeleteReadonlyClusterOK() *DeleteReadonlyClusterOK

NewDeleteReadonlyClusterOK creates a DeleteReadonlyClusterOK with default headers values

func (*DeleteReadonlyClusterOK) Error

func (o *DeleteReadonlyClusterOK) Error() string

func (*DeleteReadonlyClusterOK) GetPayload

func (o *DeleteReadonlyClusterOK) GetPayload() *models.YBPTask

type DeleteReadonlyClusterParams

type DeleteReadonlyClusterParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// ClustUUID.
	//
	// Format: uuid
	ClustUUID strfmt.UUID

	// IsForceDelete.
	IsForceDelete *bool

	// UniUUID.
	//
	// Format: uuid
	UniUUID strfmt.UUID

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

DeleteReadonlyClusterParams contains all the parameters to send to the API endpoint

for the delete readonly cluster operation.

Typically these are written to a http.Request.

func NewDeleteReadonlyClusterParams

func NewDeleteReadonlyClusterParams() *DeleteReadonlyClusterParams

NewDeleteReadonlyClusterParams creates a new DeleteReadonlyClusterParams 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 NewDeleteReadonlyClusterParamsWithContext

func NewDeleteReadonlyClusterParamsWithContext(ctx context.Context) *DeleteReadonlyClusterParams

NewDeleteReadonlyClusterParamsWithContext creates a new DeleteReadonlyClusterParams object with the ability to set a context for a request.

func NewDeleteReadonlyClusterParamsWithHTTPClient

func NewDeleteReadonlyClusterParamsWithHTTPClient(client *http.Client) *DeleteReadonlyClusterParams

NewDeleteReadonlyClusterParamsWithHTTPClient creates a new DeleteReadonlyClusterParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteReadonlyClusterParamsWithTimeout

func NewDeleteReadonlyClusterParamsWithTimeout(timeout time.Duration) *DeleteReadonlyClusterParams

NewDeleteReadonlyClusterParamsWithTimeout creates a new DeleteReadonlyClusterParams object with the ability to set a timeout on a request.

func (*DeleteReadonlyClusterParams) SetCUUID

func (o *DeleteReadonlyClusterParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) SetClustUUID

func (o *DeleteReadonlyClusterParams) SetClustUUID(clustUUID strfmt.UUID)

SetClustUUID adds the clustUuid to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) SetContext

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

SetContext adds the context to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) SetDefaults

func (o *DeleteReadonlyClusterParams) SetDefaults()

SetDefaults hydrates default values in the delete readonly cluster params (not the query body).

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

func (*DeleteReadonlyClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) SetIsForceDelete

func (o *DeleteReadonlyClusterParams) SetIsForceDelete(isForceDelete *bool)

SetIsForceDelete adds the isForceDelete to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) SetTimeout

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

SetTimeout adds the timeout to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) SetUniUUID

func (o *DeleteReadonlyClusterParams) SetUniUUID(uniUUID strfmt.UUID)

SetUniUUID adds the uniUuid to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) WithCUUID

WithCUUID adds the cUUID to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) WithClustUUID

WithClustUUID adds the clustUUID to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) WithContext

WithContext adds the context to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) WithDefaults

WithDefaults hydrates default values in the delete readonly cluster params (not the query body).

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

func (*DeleteReadonlyClusterParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) WithIsForceDelete

func (o *DeleteReadonlyClusterParams) WithIsForceDelete(isForceDelete *bool) *DeleteReadonlyClusterParams

WithIsForceDelete adds the isForceDelete to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) WithTimeout

WithTimeout adds the timeout to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) WithUniUUID

WithUniUUID adds the uniUUID to the delete readonly cluster params

func (*DeleteReadonlyClusterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteReadonlyClusterReader

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

DeleteReadonlyClusterReader is a Reader for the DeleteReadonlyCluster structure.

func (*DeleteReadonlyClusterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdatePrimaryClusterOK

type UpdatePrimaryClusterOK struct {
	Payload *models.YBPTask
}
UpdatePrimaryClusterOK describes a response with status code 200, with default header values.

successful operation

func NewUpdatePrimaryClusterOK

func NewUpdatePrimaryClusterOK() *UpdatePrimaryClusterOK

NewUpdatePrimaryClusterOK creates a UpdatePrimaryClusterOK with default headers values

func (*UpdatePrimaryClusterOK) Error

func (o *UpdatePrimaryClusterOK) Error() string

func (*UpdatePrimaryClusterOK) GetPayload

func (o *UpdatePrimaryClusterOK) GetPayload() *models.YBPTask

type UpdatePrimaryClusterParams

type UpdatePrimaryClusterParams struct {

	// UniverseConfigureTaskParams.
	UniverseConfigureTaskParams *models.UniverseConfigureTaskParams

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// UniUUID.
	//
	// Format: uuid
	UniUUID strfmt.UUID

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

UpdatePrimaryClusterParams contains all the parameters to send to the API endpoint

for the update primary cluster operation.

Typically these are written to a http.Request.

func NewUpdatePrimaryClusterParams

func NewUpdatePrimaryClusterParams() *UpdatePrimaryClusterParams

NewUpdatePrimaryClusterParams creates a new UpdatePrimaryClusterParams 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 NewUpdatePrimaryClusterParamsWithContext

func NewUpdatePrimaryClusterParamsWithContext(ctx context.Context) *UpdatePrimaryClusterParams

NewUpdatePrimaryClusterParamsWithContext creates a new UpdatePrimaryClusterParams object with the ability to set a context for a request.

func NewUpdatePrimaryClusterParamsWithHTTPClient

func NewUpdatePrimaryClusterParamsWithHTTPClient(client *http.Client) *UpdatePrimaryClusterParams

NewUpdatePrimaryClusterParamsWithHTTPClient creates a new UpdatePrimaryClusterParams object with the ability to set a custom HTTPClient for a request.

func NewUpdatePrimaryClusterParamsWithTimeout

func NewUpdatePrimaryClusterParamsWithTimeout(timeout time.Duration) *UpdatePrimaryClusterParams

NewUpdatePrimaryClusterParamsWithTimeout creates a new UpdatePrimaryClusterParams object with the ability to set a timeout on a request.

func (*UpdatePrimaryClusterParams) SetCUUID

func (o *UpdatePrimaryClusterParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the update primary cluster params

func (*UpdatePrimaryClusterParams) SetContext

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

SetContext adds the context to the update primary cluster params

func (*UpdatePrimaryClusterParams) SetDefaults

func (o *UpdatePrimaryClusterParams) SetDefaults()

SetDefaults hydrates default values in the update primary cluster params (not the query body).

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

func (*UpdatePrimaryClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update primary cluster params

func (*UpdatePrimaryClusterParams) SetTimeout

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

SetTimeout adds the timeout to the update primary cluster params

func (*UpdatePrimaryClusterParams) SetUniUUID

func (o *UpdatePrimaryClusterParams) SetUniUUID(uniUUID strfmt.UUID)

SetUniUUID adds the uniUuid to the update primary cluster params

func (*UpdatePrimaryClusterParams) SetUniverseConfigureTaskParams

func (o *UpdatePrimaryClusterParams) SetUniverseConfigureTaskParams(universeConfigureTaskParams *models.UniverseConfigureTaskParams)

SetUniverseConfigureTaskParams adds the universeConfigureTaskParams to the update primary cluster params

func (*UpdatePrimaryClusterParams) WithCUUID

WithCUUID adds the cUUID to the update primary cluster params

func (*UpdatePrimaryClusterParams) WithContext

WithContext adds the context to the update primary cluster params

func (*UpdatePrimaryClusterParams) WithDefaults

WithDefaults hydrates default values in the update primary cluster params (not the query body).

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

func (*UpdatePrimaryClusterParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update primary cluster params

func (*UpdatePrimaryClusterParams) WithTimeout

WithTimeout adds the timeout to the update primary cluster params

func (*UpdatePrimaryClusterParams) WithUniUUID

WithUniUUID adds the uniUUID to the update primary cluster params

func (*UpdatePrimaryClusterParams) WithUniverseConfigureTaskParams

func (o *UpdatePrimaryClusterParams) WithUniverseConfigureTaskParams(universeConfigureTaskParams *models.UniverseConfigureTaskParams) *UpdatePrimaryClusterParams

WithUniverseConfigureTaskParams adds the universeConfigureTaskParams to the update primary cluster params

func (*UpdatePrimaryClusterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdatePrimaryClusterReader

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

UpdatePrimaryClusterReader is a Reader for the UpdatePrimaryCluster structure.

func (*UpdatePrimaryClusterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateReadOnlyClusterOK

type UpdateReadOnlyClusterOK struct {
	Payload *models.YBPTask
}
UpdateReadOnlyClusterOK describes a response with status code 200, with default header values.

successful operation

func NewUpdateReadOnlyClusterOK

func NewUpdateReadOnlyClusterOK() *UpdateReadOnlyClusterOK

NewUpdateReadOnlyClusterOK creates a UpdateReadOnlyClusterOK with default headers values

func (*UpdateReadOnlyClusterOK) Error

func (o *UpdateReadOnlyClusterOK) Error() string

func (*UpdateReadOnlyClusterOK) GetPayload

func (o *UpdateReadOnlyClusterOK) GetPayload() *models.YBPTask

type UpdateReadOnlyClusterParams

type UpdateReadOnlyClusterParams struct {

	// UniverseConfigureTaskParams.
	UniverseConfigureTaskParams *models.UniverseConfigureTaskParams

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// UniUUID.
	//
	// Format: uuid
	UniUUID strfmt.UUID

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

UpdateReadOnlyClusterParams contains all the parameters to send to the API endpoint

for the update read only cluster operation.

Typically these are written to a http.Request.

func NewUpdateReadOnlyClusterParams

func NewUpdateReadOnlyClusterParams() *UpdateReadOnlyClusterParams

NewUpdateReadOnlyClusterParams creates a new UpdateReadOnlyClusterParams 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 NewUpdateReadOnlyClusterParamsWithContext

func NewUpdateReadOnlyClusterParamsWithContext(ctx context.Context) *UpdateReadOnlyClusterParams

NewUpdateReadOnlyClusterParamsWithContext creates a new UpdateReadOnlyClusterParams object with the ability to set a context for a request.

func NewUpdateReadOnlyClusterParamsWithHTTPClient

func NewUpdateReadOnlyClusterParamsWithHTTPClient(client *http.Client) *UpdateReadOnlyClusterParams

NewUpdateReadOnlyClusterParamsWithHTTPClient creates a new UpdateReadOnlyClusterParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateReadOnlyClusterParamsWithTimeout

func NewUpdateReadOnlyClusterParamsWithTimeout(timeout time.Duration) *UpdateReadOnlyClusterParams

NewUpdateReadOnlyClusterParamsWithTimeout creates a new UpdateReadOnlyClusterParams object with the ability to set a timeout on a request.

func (*UpdateReadOnlyClusterParams) SetCUUID

func (o *UpdateReadOnlyClusterParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the update read only cluster params

func (*UpdateReadOnlyClusterParams) SetContext

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

SetContext adds the context to the update read only cluster params

func (*UpdateReadOnlyClusterParams) SetDefaults

func (o *UpdateReadOnlyClusterParams) SetDefaults()

SetDefaults hydrates default values in the update read only cluster params (not the query body).

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

func (*UpdateReadOnlyClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update read only cluster params

func (*UpdateReadOnlyClusterParams) SetTimeout

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

SetTimeout adds the timeout to the update read only cluster params

func (*UpdateReadOnlyClusterParams) SetUniUUID

func (o *UpdateReadOnlyClusterParams) SetUniUUID(uniUUID strfmt.UUID)

SetUniUUID adds the uniUuid to the update read only cluster params

func (*UpdateReadOnlyClusterParams) SetUniverseConfigureTaskParams

func (o *UpdateReadOnlyClusterParams) SetUniverseConfigureTaskParams(universeConfigureTaskParams *models.UniverseConfigureTaskParams)

SetUniverseConfigureTaskParams adds the universeConfigureTaskParams to the update read only cluster params

func (*UpdateReadOnlyClusterParams) WithCUUID

WithCUUID adds the cUUID to the update read only cluster params

func (*UpdateReadOnlyClusterParams) WithContext

WithContext adds the context to the update read only cluster params

func (*UpdateReadOnlyClusterParams) WithDefaults

WithDefaults hydrates default values in the update read only cluster params (not the query body).

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

func (*UpdateReadOnlyClusterParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update read only cluster params

func (*UpdateReadOnlyClusterParams) WithTimeout

WithTimeout adds the timeout to the update read only cluster params

func (*UpdateReadOnlyClusterParams) WithUniUUID

WithUniUUID adds the uniUUID to the update read only cluster params

func (*UpdateReadOnlyClusterParams) WithUniverseConfigureTaskParams

func (o *UpdateReadOnlyClusterParams) WithUniverseConfigureTaskParams(universeConfigureTaskParams *models.UniverseConfigureTaskParams) *UpdateReadOnlyClusterParams

WithUniverseConfigureTaskParams adds the universeConfigureTaskParams to the update read only cluster params

func (*UpdateReadOnlyClusterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateReadOnlyClusterReader

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

UpdateReadOnlyClusterReader is a Reader for the UpdateReadOnlyCluster structure.

func (*UpdateReadOnlyClusterReader) ReadResponse

func (o *UpdateReadOnlyClusterReader) 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