psmdb_cluster

package
v2.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ClustersItems0StatePSMDBCLUSTERSTATEINVALID captures enum value "PSMDB_CLUSTER_STATE_INVALID"
	ClustersItems0StatePSMDBCLUSTERSTATEINVALID string = "PSMDB_CLUSTER_STATE_INVALID"

	// ClustersItems0StatePSMDBCLUSTERSTATECHANGING captures enum value "PSMDB_CLUSTER_STATE_CHANGING"
	ClustersItems0StatePSMDBCLUSTERSTATECHANGING string = "PSMDB_CLUSTER_STATE_CHANGING"

	// ClustersItems0StatePSMDBCLUSTERSTATEREADY captures enum value "PSMDB_CLUSTER_STATE_READY"
	ClustersItems0StatePSMDBCLUSTERSTATEREADY string = "PSMDB_CLUSTER_STATE_READY"

	// ClustersItems0StatePSMDBCLUSTERSTATEFAILED captures enum value "PSMDB_CLUSTER_STATE_FAILED"
	ClustersItems0StatePSMDBCLUSTERSTATEFAILED string = "PSMDB_CLUSTER_STATE_FAILED"

	// ClustersItems0StatePSMDBCLUSTERSTATEDELETING captures enum value "PSMDB_CLUSTER_STATE_DELETING"
	ClustersItems0StatePSMDBCLUSTERSTATEDELETING string = "PSMDB_CLUSTER_STATE_DELETING"

	// ClustersItems0StatePSMDBCLUSTERSTATEPAUSED captures enum value "PSMDB_CLUSTER_STATE_PAUSED"
	ClustersItems0StatePSMDBCLUSTERSTATEPAUSED string = "PSMDB_CLUSTER_STATE_PAUSED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for psmdb cluster API

func (*Client) CreatePSMDBCluster

func (a *Client) CreatePSMDBCluster(params *CreatePSMDBClusterParams) (*CreatePSMDBClusterOK, error)

CreatePSMDBCluster creates PSMDB cluster creates a new PSMDB cluster

func (*Client) DeletePSMDBCluster

func (a *Client) DeletePSMDBCluster(params *DeletePSMDBClusterParams) (*DeletePSMDBClusterOK, error)

DeletePSMDBCluster deletes PSMDB cluster deletes PSMDB cluster

func (*Client) GetPSMDBClusterCredentials

func (a *Client) GetPSMDBClusterCredentials(params *GetPSMDBClusterCredentialsParams) (*GetPSMDBClusterCredentialsOK, error)

GetPSMDBClusterCredentials gets PSMDB cluster credentials returns a PSMDB cluster credentials by cluster name

func (*Client) ListPSMDBClusters

func (a *Client) ListPSMDBClusters(params *ListPSMDBClustersParams) (*ListPSMDBClustersOK, error)

ListPSMDBClusters lists PSMDB clusters returns a list of PSMDB clusters

func (*Client) RestartPSMDBCluster

func (a *Client) RestartPSMDBCluster(params *RestartPSMDBClusterParams) (*RestartPSMDBClusterOK, error)

RestartPSMDBCluster restarts PSMDB cluster restarts PSMDB cluster

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdatePSMDBCluster

func (a *Client) UpdatePSMDBCluster(params *UpdatePSMDBClusterParams) (*UpdatePSMDBClusterOK, error)

UpdatePSMDBCluster updates PSMDB cluster updates existing PSMDB cluster

type ClientService

type ClientService interface {
	CreatePSMDBCluster(params *CreatePSMDBClusterParams) (*CreatePSMDBClusterOK, error)

	DeletePSMDBCluster(params *DeletePSMDBClusterParams) (*DeletePSMDBClusterOK, error)

	GetPSMDBClusterCredentials(params *GetPSMDBClusterCredentialsParams) (*GetPSMDBClusterCredentialsOK, error)

	ListPSMDBClusters(params *ListPSMDBClustersParams) (*ListPSMDBClustersOK, error)

	RestartPSMDBCluster(params *RestartPSMDBClusterParams) (*RestartPSMDBClusterOK, error)

	UpdatePSMDBCluster(params *UpdatePSMDBClusterParams) (*UpdatePSMDBClusterOK, 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 psmdb cluster API client.

type ClustersItems0

type ClustersItems0 struct {

	// Cluster name.
	Name string `json:"name,omitempty"`

	// PSMDBClusterState represents PSMDB cluster CR state.
	//
	//  - PSMDB_CLUSTER_STATE_INVALID: PSMDB_CLUSTER_STATE_INVALID represents unknown state.
	//  - PSMDB_CLUSTER_STATE_CHANGING: PSMDB_CLUSTER_STATE_CHANGING represents a cluster being changed.
	//  - PSMDB_CLUSTER_STATE_READY: PSMDB_CLUSTER_STATE_READY represents a cluster without pending changes.
	//  - PSMDB_CLUSTER_STATE_FAILED: PSMDB_CLUSTER_STATE_FAILED represents a failed cluster.
	//  - PSMDB_CLUSTER_STATE_DELETING: PSMDB_CLUSTER_STATE_DELETING represents a cluster being deleting.
	//  - PSMDB_CLUSTER_STATE_PAUSED: PSMDB_CLUSTER_STATE_PAUSED represents a cluster is paused.
	// Enum: [PSMDB_CLUSTER_STATE_INVALID PSMDB_CLUSTER_STATE_CHANGING PSMDB_CLUSTER_STATE_READY PSMDB_CLUSTER_STATE_FAILED PSMDB_CLUSTER_STATE_DELETING PSMDB_CLUSTER_STATE_PAUSED]
	State *string `json:"state,omitempty"`

	// operation
	Operation *ClustersItems0Operation `json:"operation,omitempty"`

	// params
	Params *ClustersItems0Params `json:"params,omitempty"`
}

ClustersItems0 Cluster represents PSMDB cluster information. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model ClustersItems0

func (*ClustersItems0) MarshalBinary

func (o *ClustersItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClustersItems0) UnmarshalBinary

func (o *ClustersItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClustersItems0) Validate

func (o *ClustersItems0) Validate(formats strfmt.Registry) error

Validate validates this clusters items0

type ClustersItems0Operation

type ClustersItems0Operation struct {

	// Finished steps of the operaion; can decrease or increase compared to the previous value.
	FinishedSteps int32 `json:"finished_steps,omitempty"`

	// Text describing the current operation progress step.
	Message string `json:"message,omitempty"`

	// Total steps needed to finish the operation; can decrease or increase compared to the previous value.
	TotalSteps int32 `json:"total_steps,omitempty"`
}

ClustersItems0Operation RunningOperation respresents a long-running operation. swagger:model ClustersItems0Operation

func (*ClustersItems0Operation) MarshalBinary

func (o *ClustersItems0Operation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClustersItems0Operation) UnmarshalBinary

func (o *ClustersItems0Operation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClustersItems0Operation) Validate

func (o *ClustersItems0Operation) Validate(formats strfmt.Registry) error

Validate validates this clusters items0 operation

type ClustersItems0Params

type ClustersItems0Params struct {

	// Cluster size.
	ClusterSize int32 `json:"cluster_size,omitempty"`

	// replicaset
	Replicaset *ClustersItems0ParamsReplicaset `json:"replicaset,omitempty"`
}

ClustersItems0Params PSMDBClusterParams represents PSMDB cluster parameters that can be updated. swagger:model ClustersItems0Params

func (*ClustersItems0Params) MarshalBinary

func (o *ClustersItems0Params) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClustersItems0Params) UnmarshalBinary

func (o *ClustersItems0Params) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClustersItems0Params) Validate

func (o *ClustersItems0Params) Validate(formats strfmt.Registry) error

Validate validates this clusters items0 params

type ClustersItems0ParamsReplicaset

type ClustersItems0ParamsReplicaset struct {

	// Disk size in bytes.
	DiskSize string `json:"disk_size,omitempty"`

	// compute resources
	ComputeResources *ClustersItems0ParamsReplicasetComputeResources `json:"compute_resources,omitempty"`
}

ClustersItems0ParamsReplicaset ReplicaSet container parameters. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model ClustersItems0ParamsReplicaset

func (*ClustersItems0ParamsReplicaset) MarshalBinary

func (o *ClustersItems0ParamsReplicaset) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClustersItems0ParamsReplicaset) UnmarshalBinary

func (o *ClustersItems0ParamsReplicaset) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClustersItems0ParamsReplicaset) Validate

func (o *ClustersItems0ParamsReplicaset) Validate(formats strfmt.Registry) error

Validate validates this clusters items0 params replicaset

type ClustersItems0ParamsReplicasetComputeResources

type ClustersItems0ParamsReplicasetComputeResources struct {

	// CPUs in milliCPUs; 1000m = 1 vCPU.
	CPUm int32 `json:"cpu_m,omitempty"`

	// Memory in bytes.
	MemoryBytes string `json:"memory_bytes,omitempty"`
}

ClustersItems0ParamsReplicasetComputeResources ComputeResources represents container computer resources requests or limits. swagger:model ClustersItems0ParamsReplicasetComputeResources

func (*ClustersItems0ParamsReplicasetComputeResources) MarshalBinary

MarshalBinary interface implementation

func (*ClustersItems0ParamsReplicasetComputeResources) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ClustersItems0ParamsReplicasetComputeResources) Validate

Validate validates this clusters items0 params replicaset compute resources

type CreatePSMDBClusterBody

type CreatePSMDBClusterBody struct {

	// Kubernetes cluster name.
	KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"`

	// PSMDB cluster name.
	// a DNS-1035 label must consist of lower case alphanumeric characters or '-',
	// start with an alphabetic character, and end with an alphanumeric character
	// (e.g. 'my-name',  or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')
	Name string `json:"name,omitempty"`

	// params
	Params *CreatePSMDBClusterParamsBodyParams `json:"params,omitempty"`
}

CreatePSMDBClusterBody create PSMDB cluster body swagger:model CreatePSMDBClusterBody

func (*CreatePSMDBClusterBody) MarshalBinary

func (o *CreatePSMDBClusterBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreatePSMDBClusterBody) UnmarshalBinary

func (o *CreatePSMDBClusterBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreatePSMDBClusterBody) Validate

func (o *CreatePSMDBClusterBody) Validate(formats strfmt.Registry) error

Validate validates this create PSMDB cluster body

type CreatePSMDBClusterDefault

type CreatePSMDBClusterDefault struct {
	Payload *CreatePSMDBClusterDefaultBody
	// contains filtered or unexported fields
}

CreatePSMDBClusterDefault handles this case with default header values.

An unexpected error response.

func NewCreatePSMDBClusterDefault

func NewCreatePSMDBClusterDefault(code int) *CreatePSMDBClusterDefault

NewCreatePSMDBClusterDefault creates a CreatePSMDBClusterDefault with default headers values

func (*CreatePSMDBClusterDefault) Code

func (o *CreatePSMDBClusterDefault) Code() int

Code gets the status code for the create PSMDB cluster default response

func (*CreatePSMDBClusterDefault) Error

func (o *CreatePSMDBClusterDefault) Error() string

func (*CreatePSMDBClusterDefault) GetPayload

type CreatePSMDBClusterDefaultBody

type CreatePSMDBClusterDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

CreatePSMDBClusterDefaultBody create PSMDB cluster default body swagger:model CreatePSMDBClusterDefaultBody

func (*CreatePSMDBClusterDefaultBody) MarshalBinary

func (o *CreatePSMDBClusterDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreatePSMDBClusterDefaultBody) UnmarshalBinary

func (o *CreatePSMDBClusterDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreatePSMDBClusterDefaultBody) Validate

func (o *CreatePSMDBClusterDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this create PSMDB cluster default body

type CreatePSMDBClusterOK

type CreatePSMDBClusterOK struct {
	Payload interface{}
}

CreatePSMDBClusterOK handles this case with default header values.

A successful response.

func NewCreatePSMDBClusterOK

func NewCreatePSMDBClusterOK() *CreatePSMDBClusterOK

NewCreatePSMDBClusterOK creates a CreatePSMDBClusterOK with default headers values

func (*CreatePSMDBClusterOK) Error

func (o *CreatePSMDBClusterOK) Error() string

func (*CreatePSMDBClusterOK) GetPayload

func (o *CreatePSMDBClusterOK) GetPayload() interface{}

type CreatePSMDBClusterParams

type CreatePSMDBClusterParams struct {

	/*Body*/
	Body CreatePSMDBClusterBody

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

CreatePSMDBClusterParams contains all the parameters to send to the API endpoint for the create PSMDB cluster operation typically these are written to a http.Request

func NewCreatePSMDBClusterParams

func NewCreatePSMDBClusterParams() *CreatePSMDBClusterParams

NewCreatePSMDBClusterParams creates a new CreatePSMDBClusterParams object with the default values initialized.

func NewCreatePSMDBClusterParamsWithContext

func NewCreatePSMDBClusterParamsWithContext(ctx context.Context) *CreatePSMDBClusterParams

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

func NewCreatePSMDBClusterParamsWithHTTPClient

func NewCreatePSMDBClusterParamsWithHTTPClient(client *http.Client) *CreatePSMDBClusterParams

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

func NewCreatePSMDBClusterParamsWithTimeout

func NewCreatePSMDBClusterParamsWithTimeout(timeout time.Duration) *CreatePSMDBClusterParams

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

func (*CreatePSMDBClusterParams) SetBody

SetBody adds the body to the create PSMDB cluster params

func (*CreatePSMDBClusterParams) SetContext

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

SetContext adds the context to the create PSMDB cluster params

func (*CreatePSMDBClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create PSMDB cluster params

func (*CreatePSMDBClusterParams) SetTimeout

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

SetTimeout adds the timeout to the create PSMDB cluster params

func (*CreatePSMDBClusterParams) WithBody

WithBody adds the body to the create PSMDB cluster params

func (*CreatePSMDBClusterParams) WithContext

WithContext adds the context to the create PSMDB cluster params

func (*CreatePSMDBClusterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create PSMDB cluster params

func (*CreatePSMDBClusterParams) WithTimeout

WithTimeout adds the timeout to the create PSMDB cluster params

func (*CreatePSMDBClusterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreatePSMDBClusterParamsBodyParams

type CreatePSMDBClusterParamsBodyParams struct {

	// Cluster size.
	ClusterSize int32 `json:"cluster_size,omitempty"`

	// replicaset
	Replicaset *CreatePSMDBClusterParamsBodyParamsReplicaset `json:"replicaset,omitempty"`
}

CreatePSMDBClusterParamsBodyParams PSMDBClusterParams represents PSMDB cluster parameters that can be updated. swagger:model CreatePSMDBClusterParamsBodyParams

func (*CreatePSMDBClusterParamsBodyParams) MarshalBinary

func (o *CreatePSMDBClusterParamsBodyParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreatePSMDBClusterParamsBodyParams) UnmarshalBinary

func (o *CreatePSMDBClusterParamsBodyParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreatePSMDBClusterParamsBodyParams) Validate

Validate validates this create PSMDB cluster params body params

type CreatePSMDBClusterParamsBodyParamsReplicaset

type CreatePSMDBClusterParamsBodyParamsReplicaset struct {

	// Disk size in bytes.
	DiskSize string `json:"disk_size,omitempty"`

	// compute resources
	ComputeResources *CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources `json:"compute_resources,omitempty"`
}

CreatePSMDBClusterParamsBodyParamsReplicaset ReplicaSet container parameters. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model CreatePSMDBClusterParamsBodyParamsReplicaset

func (*CreatePSMDBClusterParamsBodyParamsReplicaset) MarshalBinary

MarshalBinary interface implementation

func (*CreatePSMDBClusterParamsBodyParamsReplicaset) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreatePSMDBClusterParamsBodyParamsReplicaset) Validate

Validate validates this create PSMDB cluster params body params replicaset

type CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources

type CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources struct {

	// CPUs in milliCPUs; 1000m = 1 vCPU.
	CPUm int32 `json:"cpu_m,omitempty"`

	// Memory in bytes.
	MemoryBytes string `json:"memory_bytes,omitempty"`
}

CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources ComputeResources represents container computer resources requests or limits. swagger:model CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources

func (*CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources) MarshalBinary

MarshalBinary interface implementation

func (*CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources) Validate

Validate validates this create PSMDB cluster params body params replicaset compute resources

type CreatePSMDBClusterReader

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

CreatePSMDBClusterReader is a Reader for the CreatePSMDBCluster structure.

func (*CreatePSMDBClusterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePSMDBClusterBody

type DeletePSMDBClusterBody struct {

	// Kubernetes cluster name.
	KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"`

	// PSMDB cluster name.
	Name string `json:"name,omitempty"`
}

DeletePSMDBClusterBody delete PSMDB cluster body swagger:model DeletePSMDBClusterBody

func (*DeletePSMDBClusterBody) MarshalBinary

func (o *DeletePSMDBClusterBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeletePSMDBClusterBody) UnmarshalBinary

func (o *DeletePSMDBClusterBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeletePSMDBClusterBody) Validate

func (o *DeletePSMDBClusterBody) Validate(formats strfmt.Registry) error

Validate validates this delete PSMDB cluster body

type DeletePSMDBClusterDefault

type DeletePSMDBClusterDefault struct {
	Payload *DeletePSMDBClusterDefaultBody
	// contains filtered or unexported fields
}

DeletePSMDBClusterDefault handles this case with default header values.

An unexpected error response.

func NewDeletePSMDBClusterDefault

func NewDeletePSMDBClusterDefault(code int) *DeletePSMDBClusterDefault

NewDeletePSMDBClusterDefault creates a DeletePSMDBClusterDefault with default headers values

func (*DeletePSMDBClusterDefault) Code

func (o *DeletePSMDBClusterDefault) Code() int

Code gets the status code for the delete PSMDB cluster default response

func (*DeletePSMDBClusterDefault) Error

func (o *DeletePSMDBClusterDefault) Error() string

func (*DeletePSMDBClusterDefault) GetPayload

type DeletePSMDBClusterDefaultBody

type DeletePSMDBClusterDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

DeletePSMDBClusterDefaultBody delete PSMDB cluster default body swagger:model DeletePSMDBClusterDefaultBody

func (*DeletePSMDBClusterDefaultBody) MarshalBinary

func (o *DeletePSMDBClusterDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeletePSMDBClusterDefaultBody) UnmarshalBinary

func (o *DeletePSMDBClusterDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeletePSMDBClusterDefaultBody) Validate

func (o *DeletePSMDBClusterDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this delete PSMDB cluster default body

type DeletePSMDBClusterOK

type DeletePSMDBClusterOK struct {
	Payload interface{}
}

DeletePSMDBClusterOK handles this case with default header values.

A successful response.

func NewDeletePSMDBClusterOK

func NewDeletePSMDBClusterOK() *DeletePSMDBClusterOK

NewDeletePSMDBClusterOK creates a DeletePSMDBClusterOK with default headers values

func (*DeletePSMDBClusterOK) Error

func (o *DeletePSMDBClusterOK) Error() string

func (*DeletePSMDBClusterOK) GetPayload

func (o *DeletePSMDBClusterOK) GetPayload() interface{}

type DeletePSMDBClusterParams

type DeletePSMDBClusterParams struct {

	/*Body*/
	Body DeletePSMDBClusterBody

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

DeletePSMDBClusterParams contains all the parameters to send to the API endpoint for the delete PSMDB cluster operation typically these are written to a http.Request

func NewDeletePSMDBClusterParams

func NewDeletePSMDBClusterParams() *DeletePSMDBClusterParams

NewDeletePSMDBClusterParams creates a new DeletePSMDBClusterParams object with the default values initialized.

func NewDeletePSMDBClusterParamsWithContext

func NewDeletePSMDBClusterParamsWithContext(ctx context.Context) *DeletePSMDBClusterParams

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

func NewDeletePSMDBClusterParamsWithHTTPClient

func NewDeletePSMDBClusterParamsWithHTTPClient(client *http.Client) *DeletePSMDBClusterParams

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

func NewDeletePSMDBClusterParamsWithTimeout

func NewDeletePSMDBClusterParamsWithTimeout(timeout time.Duration) *DeletePSMDBClusterParams

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

func (*DeletePSMDBClusterParams) SetBody

SetBody adds the body to the delete PSMDB cluster params

func (*DeletePSMDBClusterParams) SetContext

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

SetContext adds the context to the delete PSMDB cluster params

func (*DeletePSMDBClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete PSMDB cluster params

func (*DeletePSMDBClusterParams) SetTimeout

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

SetTimeout adds the timeout to the delete PSMDB cluster params

func (*DeletePSMDBClusterParams) WithBody

WithBody adds the body to the delete PSMDB cluster params

func (*DeletePSMDBClusterParams) WithContext

WithContext adds the context to the delete PSMDB cluster params

func (*DeletePSMDBClusterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete PSMDB cluster params

func (*DeletePSMDBClusterParams) WithTimeout

WithTimeout adds the timeout to the delete PSMDB cluster params

func (*DeletePSMDBClusterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeletePSMDBClusterReader

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

DeletePSMDBClusterReader is a Reader for the DeletePSMDBCluster structure.

func (*DeletePSMDBClusterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DetailsItems0

type DetailsItems0 struct {

	// type url
	TypeURL string `json:"type_url,omitempty"`

	// value
	// Format: byte
	Value strfmt.Base64 `json:"value,omitempty"`
}

DetailsItems0 details items0 swagger:model DetailsItems0

func (*DetailsItems0) MarshalBinary

func (o *DetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DetailsItems0) UnmarshalBinary

func (o *DetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailsItems0) Validate

func (o *DetailsItems0) Validate(formats strfmt.Registry) error

Validate validates this details items0

type GetPSMDBClusterCredentialsBody

type GetPSMDBClusterCredentialsBody struct {

	// Kubernetes cluster name.
	KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"`

	// PSMDB cluster name.
	Name string `json:"name,omitempty"`
}

GetPSMDBClusterCredentialsBody get PSMDB cluster credentials body swagger:model GetPSMDBClusterCredentialsBody

func (*GetPSMDBClusterCredentialsBody) MarshalBinary

func (o *GetPSMDBClusterCredentialsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetPSMDBClusterCredentialsBody) UnmarshalBinary

func (o *GetPSMDBClusterCredentialsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetPSMDBClusterCredentialsBody) Validate

func (o *GetPSMDBClusterCredentialsBody) Validate(formats strfmt.Registry) error

Validate validates this get PSMDB cluster credentials body

type GetPSMDBClusterCredentialsDefault

type GetPSMDBClusterCredentialsDefault struct {
	Payload *GetPSMDBClusterCredentialsDefaultBody
	// contains filtered or unexported fields
}

GetPSMDBClusterCredentialsDefault handles this case with default header values.

An unexpected error response.

func NewGetPSMDBClusterCredentialsDefault

func NewGetPSMDBClusterCredentialsDefault(code int) *GetPSMDBClusterCredentialsDefault

NewGetPSMDBClusterCredentialsDefault creates a GetPSMDBClusterCredentialsDefault with default headers values

func (*GetPSMDBClusterCredentialsDefault) Code

Code gets the status code for the get PSMDB cluster credentials default response

func (*GetPSMDBClusterCredentialsDefault) Error

func (*GetPSMDBClusterCredentialsDefault) GetPayload

type GetPSMDBClusterCredentialsDefaultBody

type GetPSMDBClusterCredentialsDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

GetPSMDBClusterCredentialsDefaultBody get PSMDB cluster credentials default body swagger:model GetPSMDBClusterCredentialsDefaultBody

func (*GetPSMDBClusterCredentialsDefaultBody) MarshalBinary

func (o *GetPSMDBClusterCredentialsDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetPSMDBClusterCredentialsDefaultBody) UnmarshalBinary

func (o *GetPSMDBClusterCredentialsDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetPSMDBClusterCredentialsDefaultBody) Validate

Validate validates this get PSMDB cluster credentials default body

type GetPSMDBClusterCredentialsOK

type GetPSMDBClusterCredentialsOK struct {
	Payload *GetPSMDBClusterCredentialsOKBody
}

GetPSMDBClusterCredentialsOK handles this case with default header values.

A successful response.

func NewGetPSMDBClusterCredentialsOK

func NewGetPSMDBClusterCredentialsOK() *GetPSMDBClusterCredentialsOK

NewGetPSMDBClusterCredentialsOK creates a GetPSMDBClusterCredentialsOK with default headers values

func (*GetPSMDBClusterCredentialsOK) Error

func (*GetPSMDBClusterCredentialsOK) GetPayload

type GetPSMDBClusterCredentialsOKBody

type GetPSMDBClusterCredentialsOKBody struct {

	// connection credentials
	ConnectionCredentials *GetPSMDBClusterCredentialsOKBodyConnectionCredentials `json:"connection_credentials,omitempty"`
}

GetPSMDBClusterCredentialsOKBody get PSMDB cluster credentials OK body swagger:model GetPSMDBClusterCredentialsOKBody

func (*GetPSMDBClusterCredentialsOKBody) MarshalBinary

func (o *GetPSMDBClusterCredentialsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetPSMDBClusterCredentialsOKBody) UnmarshalBinary

func (o *GetPSMDBClusterCredentialsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetPSMDBClusterCredentialsOKBody) Validate

Validate validates this get PSMDB cluster credentials OK body

type GetPSMDBClusterCredentialsOKBodyConnectionCredentials

type GetPSMDBClusterCredentialsOKBodyConnectionCredentials struct {

	// MongoDB username.
	Username string `json:"username,omitempty"`

	// MongoDB password.
	Password string `json:"password,omitempty"`

	// MongoDB host.
	Host string `json:"host,omitempty"`

	// MongoDB port.
	Port int32 `json:"port,omitempty"`

	// Replicaset name.
	Replicaset string `json:"replicaset,omitempty"`
}

GetPSMDBClusterCredentialsOKBodyConnectionCredentials PSMDBCredentials is a credentials to connect to PSMDB. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model GetPSMDBClusterCredentialsOKBodyConnectionCredentials

func (*GetPSMDBClusterCredentialsOKBodyConnectionCredentials) MarshalBinary

MarshalBinary interface implementation

func (*GetPSMDBClusterCredentialsOKBodyConnectionCredentials) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetPSMDBClusterCredentialsOKBodyConnectionCredentials) Validate

Validate validates this get PSMDB cluster credentials OK body connection credentials

type GetPSMDBClusterCredentialsParams

type GetPSMDBClusterCredentialsParams struct {

	/*Body*/
	Body GetPSMDBClusterCredentialsBody

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

GetPSMDBClusterCredentialsParams contains all the parameters to send to the API endpoint for the get PSMDB cluster credentials operation typically these are written to a http.Request

func NewGetPSMDBClusterCredentialsParams

func NewGetPSMDBClusterCredentialsParams() *GetPSMDBClusterCredentialsParams

NewGetPSMDBClusterCredentialsParams creates a new GetPSMDBClusterCredentialsParams object with the default values initialized.

func NewGetPSMDBClusterCredentialsParamsWithContext

func NewGetPSMDBClusterCredentialsParamsWithContext(ctx context.Context) *GetPSMDBClusterCredentialsParams

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

func NewGetPSMDBClusterCredentialsParamsWithHTTPClient

func NewGetPSMDBClusterCredentialsParamsWithHTTPClient(client *http.Client) *GetPSMDBClusterCredentialsParams

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

func NewGetPSMDBClusterCredentialsParamsWithTimeout

func NewGetPSMDBClusterCredentialsParamsWithTimeout(timeout time.Duration) *GetPSMDBClusterCredentialsParams

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

func (*GetPSMDBClusterCredentialsParams) SetBody

SetBody adds the body to the get PSMDB cluster credentials params

func (*GetPSMDBClusterCredentialsParams) SetContext

SetContext adds the context to the get PSMDB cluster credentials params

func (*GetPSMDBClusterCredentialsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get PSMDB cluster credentials params

func (*GetPSMDBClusterCredentialsParams) SetTimeout

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

SetTimeout adds the timeout to the get PSMDB cluster credentials params

func (*GetPSMDBClusterCredentialsParams) WithBody

WithBody adds the body to the get PSMDB cluster credentials params

func (*GetPSMDBClusterCredentialsParams) WithContext

WithContext adds the context to the get PSMDB cluster credentials params

func (*GetPSMDBClusterCredentialsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get PSMDB cluster credentials params

func (*GetPSMDBClusterCredentialsParams) WithTimeout

WithTimeout adds the timeout to the get PSMDB cluster credentials params

func (*GetPSMDBClusterCredentialsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPSMDBClusterCredentialsReader

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

GetPSMDBClusterCredentialsReader is a Reader for the GetPSMDBClusterCredentials structure.

func (*GetPSMDBClusterCredentialsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListPSMDBClustersBody

type ListPSMDBClustersBody struct {

	// Kubernetes cluster name.
	KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"`
}

ListPSMDBClustersBody list PSMDB clusters body swagger:model ListPSMDBClustersBody

func (*ListPSMDBClustersBody) MarshalBinary

func (o *ListPSMDBClustersBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListPSMDBClustersBody) UnmarshalBinary

func (o *ListPSMDBClustersBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListPSMDBClustersBody) Validate

func (o *ListPSMDBClustersBody) Validate(formats strfmt.Registry) error

Validate validates this list PSMDB clusters body

type ListPSMDBClustersDefault

type ListPSMDBClustersDefault struct {
	Payload *ListPSMDBClustersDefaultBody
	// contains filtered or unexported fields
}

ListPSMDBClustersDefault handles this case with default header values.

An unexpected error response.

func NewListPSMDBClustersDefault

func NewListPSMDBClustersDefault(code int) *ListPSMDBClustersDefault

NewListPSMDBClustersDefault creates a ListPSMDBClustersDefault with default headers values

func (*ListPSMDBClustersDefault) Code

func (o *ListPSMDBClustersDefault) Code() int

Code gets the status code for the list PSMDB clusters default response

func (*ListPSMDBClustersDefault) Error

func (o *ListPSMDBClustersDefault) Error() string

func (*ListPSMDBClustersDefault) GetPayload

type ListPSMDBClustersDefaultBody

type ListPSMDBClustersDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

ListPSMDBClustersDefaultBody list PSMDB clusters default body swagger:model ListPSMDBClustersDefaultBody

func (*ListPSMDBClustersDefaultBody) MarshalBinary

func (o *ListPSMDBClustersDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListPSMDBClustersDefaultBody) UnmarshalBinary

func (o *ListPSMDBClustersDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListPSMDBClustersDefaultBody) Validate

func (o *ListPSMDBClustersDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this list PSMDB clusters default body

type ListPSMDBClustersOK

type ListPSMDBClustersOK struct {
	Payload *ListPSMDBClustersOKBody
}

ListPSMDBClustersOK handles this case with default header values.

A successful response.

func NewListPSMDBClustersOK

func NewListPSMDBClustersOK() *ListPSMDBClustersOK

NewListPSMDBClustersOK creates a ListPSMDBClustersOK with default headers values

func (*ListPSMDBClustersOK) Error

func (o *ListPSMDBClustersOK) Error() string

func (*ListPSMDBClustersOK) GetPayload

type ListPSMDBClustersOKBody

type ListPSMDBClustersOKBody struct {

	// PSMDB clusters information.
	Clusters []*ClustersItems0 `json:"clusters"`
}

ListPSMDBClustersOKBody list PSMDB clusters OK body swagger:model ListPSMDBClustersOKBody

func (*ListPSMDBClustersOKBody) MarshalBinary

func (o *ListPSMDBClustersOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListPSMDBClustersOKBody) UnmarshalBinary

func (o *ListPSMDBClustersOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListPSMDBClustersOKBody) Validate

func (o *ListPSMDBClustersOKBody) Validate(formats strfmt.Registry) error

Validate validates this list PSMDB clusters OK body

type ListPSMDBClustersParams

type ListPSMDBClustersParams struct {

	/*Body*/
	Body ListPSMDBClustersBody

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

ListPSMDBClustersParams contains all the parameters to send to the API endpoint for the list PSMDB clusters operation typically these are written to a http.Request

func NewListPSMDBClustersParams

func NewListPSMDBClustersParams() *ListPSMDBClustersParams

NewListPSMDBClustersParams creates a new ListPSMDBClustersParams object with the default values initialized.

func NewListPSMDBClustersParamsWithContext

func NewListPSMDBClustersParamsWithContext(ctx context.Context) *ListPSMDBClustersParams

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

func NewListPSMDBClustersParamsWithHTTPClient

func NewListPSMDBClustersParamsWithHTTPClient(client *http.Client) *ListPSMDBClustersParams

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

func NewListPSMDBClustersParamsWithTimeout

func NewListPSMDBClustersParamsWithTimeout(timeout time.Duration) *ListPSMDBClustersParams

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

func (*ListPSMDBClustersParams) SetBody

SetBody adds the body to the list PSMDB clusters params

func (*ListPSMDBClustersParams) SetContext

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

SetContext adds the context to the list PSMDB clusters params

func (*ListPSMDBClustersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list PSMDB clusters params

func (*ListPSMDBClustersParams) SetTimeout

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

SetTimeout adds the timeout to the list PSMDB clusters params

func (*ListPSMDBClustersParams) WithBody

WithBody adds the body to the list PSMDB clusters params

func (*ListPSMDBClustersParams) WithContext

WithContext adds the context to the list PSMDB clusters params

func (*ListPSMDBClustersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list PSMDB clusters params

func (*ListPSMDBClustersParams) WithTimeout

WithTimeout adds the timeout to the list PSMDB clusters params

func (*ListPSMDBClustersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListPSMDBClustersReader

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

ListPSMDBClustersReader is a Reader for the ListPSMDBClusters structure.

func (*ListPSMDBClustersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestartPSMDBClusterBody

type RestartPSMDBClusterBody struct {

	// Kubernetes cluster name.
	KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"`

	// PSMDB cluster name.
	Name string `json:"name,omitempty"`
}

RestartPSMDBClusterBody restart PSMDB cluster body swagger:model RestartPSMDBClusterBody

func (*RestartPSMDBClusterBody) MarshalBinary

func (o *RestartPSMDBClusterBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestartPSMDBClusterBody) UnmarshalBinary

func (o *RestartPSMDBClusterBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestartPSMDBClusterBody) Validate

func (o *RestartPSMDBClusterBody) Validate(formats strfmt.Registry) error

Validate validates this restart PSMDB cluster body

type RestartPSMDBClusterDefault

type RestartPSMDBClusterDefault struct {
	Payload *RestartPSMDBClusterDefaultBody
	// contains filtered or unexported fields
}

RestartPSMDBClusterDefault handles this case with default header values.

An unexpected error response.

func NewRestartPSMDBClusterDefault

func NewRestartPSMDBClusterDefault(code int) *RestartPSMDBClusterDefault

NewRestartPSMDBClusterDefault creates a RestartPSMDBClusterDefault with default headers values

func (*RestartPSMDBClusterDefault) Code

func (o *RestartPSMDBClusterDefault) Code() int

Code gets the status code for the restart PSMDB cluster default response

func (*RestartPSMDBClusterDefault) Error

func (*RestartPSMDBClusterDefault) GetPayload

type RestartPSMDBClusterDefaultBody

type RestartPSMDBClusterDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

RestartPSMDBClusterDefaultBody restart PSMDB cluster default body swagger:model RestartPSMDBClusterDefaultBody

func (*RestartPSMDBClusterDefaultBody) MarshalBinary

func (o *RestartPSMDBClusterDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestartPSMDBClusterDefaultBody) UnmarshalBinary

func (o *RestartPSMDBClusterDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestartPSMDBClusterDefaultBody) Validate

func (o *RestartPSMDBClusterDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this restart PSMDB cluster default body

type RestartPSMDBClusterOK

type RestartPSMDBClusterOK struct {
	Payload interface{}
}

RestartPSMDBClusterOK handles this case with default header values.

A successful response.

func NewRestartPSMDBClusterOK

func NewRestartPSMDBClusterOK() *RestartPSMDBClusterOK

NewRestartPSMDBClusterOK creates a RestartPSMDBClusterOK with default headers values

func (*RestartPSMDBClusterOK) Error

func (o *RestartPSMDBClusterOK) Error() string

func (*RestartPSMDBClusterOK) GetPayload

func (o *RestartPSMDBClusterOK) GetPayload() interface{}

type RestartPSMDBClusterParams

type RestartPSMDBClusterParams struct {

	/*Body*/
	Body RestartPSMDBClusterBody

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

RestartPSMDBClusterParams contains all the parameters to send to the API endpoint for the restart PSMDB cluster operation typically these are written to a http.Request

func NewRestartPSMDBClusterParams

func NewRestartPSMDBClusterParams() *RestartPSMDBClusterParams

NewRestartPSMDBClusterParams creates a new RestartPSMDBClusterParams object with the default values initialized.

func NewRestartPSMDBClusterParamsWithContext

func NewRestartPSMDBClusterParamsWithContext(ctx context.Context) *RestartPSMDBClusterParams

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

func NewRestartPSMDBClusterParamsWithHTTPClient

func NewRestartPSMDBClusterParamsWithHTTPClient(client *http.Client) *RestartPSMDBClusterParams

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

func NewRestartPSMDBClusterParamsWithTimeout

func NewRestartPSMDBClusterParamsWithTimeout(timeout time.Duration) *RestartPSMDBClusterParams

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

func (*RestartPSMDBClusterParams) SetBody

SetBody adds the body to the restart PSMDB cluster params

func (*RestartPSMDBClusterParams) SetContext

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

SetContext adds the context to the restart PSMDB cluster params

func (*RestartPSMDBClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the restart PSMDB cluster params

func (*RestartPSMDBClusterParams) SetTimeout

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

SetTimeout adds the timeout to the restart PSMDB cluster params

func (*RestartPSMDBClusterParams) WithBody

WithBody adds the body to the restart PSMDB cluster params

func (*RestartPSMDBClusterParams) WithContext

WithContext adds the context to the restart PSMDB cluster params

func (*RestartPSMDBClusterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the restart PSMDB cluster params

func (*RestartPSMDBClusterParams) WithTimeout

WithTimeout adds the timeout to the restart PSMDB cluster params

func (*RestartPSMDBClusterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RestartPSMDBClusterReader

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

RestartPSMDBClusterReader is a Reader for the RestartPSMDBCluster structure.

func (*RestartPSMDBClusterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdatePSMDBClusterBody

type UpdatePSMDBClusterBody struct {

	// Kubernetes cluster name.
	KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"`

	// PSMDB cluster name.
	Name string `json:"name,omitempty"`

	// params
	Params *UpdatePSMDBClusterParamsBodyParams `json:"params,omitempty"`
}

UpdatePSMDBClusterBody update PSMDB cluster body swagger:model UpdatePSMDBClusterBody

func (*UpdatePSMDBClusterBody) MarshalBinary

func (o *UpdatePSMDBClusterBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdatePSMDBClusterBody) UnmarshalBinary

func (o *UpdatePSMDBClusterBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdatePSMDBClusterBody) Validate

func (o *UpdatePSMDBClusterBody) Validate(formats strfmt.Registry) error

Validate validates this update PSMDB cluster body

type UpdatePSMDBClusterDefault

type UpdatePSMDBClusterDefault struct {
	Payload *UpdatePSMDBClusterDefaultBody
	// contains filtered or unexported fields
}

UpdatePSMDBClusterDefault handles this case with default header values.

An unexpected error response.

func NewUpdatePSMDBClusterDefault

func NewUpdatePSMDBClusterDefault(code int) *UpdatePSMDBClusterDefault

NewUpdatePSMDBClusterDefault creates a UpdatePSMDBClusterDefault with default headers values

func (*UpdatePSMDBClusterDefault) Code

func (o *UpdatePSMDBClusterDefault) Code() int

Code gets the status code for the update PSMDB cluster default response

func (*UpdatePSMDBClusterDefault) Error

func (o *UpdatePSMDBClusterDefault) Error() string

func (*UpdatePSMDBClusterDefault) GetPayload

type UpdatePSMDBClusterDefaultBody

type UpdatePSMDBClusterDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

UpdatePSMDBClusterDefaultBody update PSMDB cluster default body swagger:model UpdatePSMDBClusterDefaultBody

func (*UpdatePSMDBClusterDefaultBody) MarshalBinary

func (o *UpdatePSMDBClusterDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdatePSMDBClusterDefaultBody) UnmarshalBinary

func (o *UpdatePSMDBClusterDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdatePSMDBClusterDefaultBody) Validate

func (o *UpdatePSMDBClusterDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this update PSMDB cluster default body

type UpdatePSMDBClusterOK

type UpdatePSMDBClusterOK struct {
	Payload interface{}
}

UpdatePSMDBClusterOK handles this case with default header values.

A successful response.

func NewUpdatePSMDBClusterOK

func NewUpdatePSMDBClusterOK() *UpdatePSMDBClusterOK

NewUpdatePSMDBClusterOK creates a UpdatePSMDBClusterOK with default headers values

func (*UpdatePSMDBClusterOK) Error

func (o *UpdatePSMDBClusterOK) Error() string

func (*UpdatePSMDBClusterOK) GetPayload

func (o *UpdatePSMDBClusterOK) GetPayload() interface{}

type UpdatePSMDBClusterParams

type UpdatePSMDBClusterParams struct {

	/*Body*/
	Body UpdatePSMDBClusterBody

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

UpdatePSMDBClusterParams contains all the parameters to send to the API endpoint for the update PSMDB cluster operation typically these are written to a http.Request

func NewUpdatePSMDBClusterParams

func NewUpdatePSMDBClusterParams() *UpdatePSMDBClusterParams

NewUpdatePSMDBClusterParams creates a new UpdatePSMDBClusterParams object with the default values initialized.

func NewUpdatePSMDBClusterParamsWithContext

func NewUpdatePSMDBClusterParamsWithContext(ctx context.Context) *UpdatePSMDBClusterParams

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

func NewUpdatePSMDBClusterParamsWithHTTPClient

func NewUpdatePSMDBClusterParamsWithHTTPClient(client *http.Client) *UpdatePSMDBClusterParams

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

func NewUpdatePSMDBClusterParamsWithTimeout

func NewUpdatePSMDBClusterParamsWithTimeout(timeout time.Duration) *UpdatePSMDBClusterParams

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

func (*UpdatePSMDBClusterParams) SetBody

SetBody adds the body to the update PSMDB cluster params

func (*UpdatePSMDBClusterParams) SetContext

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

SetContext adds the context to the update PSMDB cluster params

func (*UpdatePSMDBClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update PSMDB cluster params

func (*UpdatePSMDBClusterParams) SetTimeout

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

SetTimeout adds the timeout to the update PSMDB cluster params

func (*UpdatePSMDBClusterParams) WithBody

WithBody adds the body to the update PSMDB cluster params

func (*UpdatePSMDBClusterParams) WithContext

WithContext adds the context to the update PSMDB cluster params

func (*UpdatePSMDBClusterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update PSMDB cluster params

func (*UpdatePSMDBClusterParams) WithTimeout

WithTimeout adds the timeout to the update PSMDB cluster params

func (*UpdatePSMDBClusterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdatePSMDBClusterParamsBodyParams

type UpdatePSMDBClusterParamsBodyParams struct {

	// Cluster size.
	ClusterSize int32 `json:"cluster_size,omitempty"`

	// Suspend cluster `pause: true`.
	Suspend bool `json:"suspend,omitempty"`

	// Resume cluster `pause: false`.
	Resume bool `json:"resume,omitempty"`

	// replicaset
	Replicaset *UpdatePSMDBClusterParamsBodyParamsReplicaset `json:"replicaset,omitempty"`
}

UpdatePSMDBClusterParamsBodyParams UpdatePSMDBClusterParams represents PSMDB cluster parameters that can be updated. swagger:model UpdatePSMDBClusterParamsBodyParams

func (*UpdatePSMDBClusterParamsBodyParams) MarshalBinary

func (o *UpdatePSMDBClusterParamsBodyParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdatePSMDBClusterParamsBodyParams) UnmarshalBinary

func (o *UpdatePSMDBClusterParamsBodyParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdatePSMDBClusterParamsBodyParams) Validate

Validate validates this update PSMDB cluster params body params

type UpdatePSMDBClusterParamsBodyParamsReplicaset

type UpdatePSMDBClusterParamsBodyParamsReplicaset struct {

	// compute resources
	ComputeResources *UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources `json:"compute_resources,omitempty"`
}

UpdatePSMDBClusterParamsBodyParamsReplicaset ReplicaSet container parameters. swagger:model UpdatePSMDBClusterParamsBodyParamsReplicaset

func (*UpdatePSMDBClusterParamsBodyParamsReplicaset) MarshalBinary

MarshalBinary interface implementation

func (*UpdatePSMDBClusterParamsBodyParamsReplicaset) UnmarshalBinary

UnmarshalBinary interface implementation

func (*UpdatePSMDBClusterParamsBodyParamsReplicaset) Validate

Validate validates this update PSMDB cluster params body params replicaset

type UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources

type UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources struct {

	// CPUs in milliCPUs; 1000m = 1 vCPU.
	CPUm int32 `json:"cpu_m,omitempty"`

	// Memory in bytes.
	MemoryBytes string `json:"memory_bytes,omitempty"`
}

UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources ComputeResources represents container computer resources requests or limits. swagger:model UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources

func (*UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources) MarshalBinary

MarshalBinary interface implementation

func (*UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources) UnmarshalBinary

UnmarshalBinary interface implementation

func (*UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources) Validate

Validate validates this update PSMDB cluster params body params replicaset compute resources

type UpdatePSMDBClusterReader

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

UpdatePSMDBClusterReader is a Reader for the UpdatePSMDBCluster structure.

func (*UpdatePSMDBClusterReader) ReadResponse

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