clusters

package
v0.0.0-...-0df1b2a Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 12 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 clusters API

func (*Client) CreateCluster

func (a *Client) CreateCluster(params *CreateClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateClusterCreated, error)

CreateCluster creates cluster

Create a cluster.

func (*Client) DeleteCluster

func (a *Client) DeleteCluster(params *DeleteClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteClusterNoContent, error)

DeleteCluster deletes cluster

Cluster identified by the ID.

func (*Client) GetCluster

func (a *Client) GetCluster(params *GetClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClusterOK, error)

GetCluster gets single cluster

Read the details of the cluster.

func (*Client) ListClusters

func (a *Client) ListClusters(params *ListClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListClustersOK, error)

ListClusters lists all kubernetes clusters

Returns the list of all Kubernetes clusters.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateCluster

func (a *Client) UpdateCluster(params *UpdateClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateClusterOK, error)

UpdateCluster updates cluster

update a cluster.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateCluster(params *CreateClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateClusterCreated, error)

	DeleteCluster(params *DeleteClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteClusterNoContent, error)

	GetCluster(params *GetClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClusterOK, error)

	ListClusters(params *ListClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListClustersOK, error)

	UpdateCluster(params *UpdateClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateClusterOK, 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 clusters API client.

type CreateClusterBadRequest

type CreateClusterBadRequest struct {
	Payload *models.Error
}

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

Invalid request

func NewCreateClusterBadRequest

func NewCreateClusterBadRequest() *CreateClusterBadRequest

NewCreateClusterBadRequest creates a CreateClusterBadRequest with default headers values

func (*CreateClusterBadRequest) Code

func (o *CreateClusterBadRequest) Code() int

Code gets the status code for the create cluster bad request response

func (*CreateClusterBadRequest) Error

func (o *CreateClusterBadRequest) Error() string

func (*CreateClusterBadRequest) GetPayload

func (o *CreateClusterBadRequest) GetPayload() *models.Error

func (*CreateClusterBadRequest) IsClientError

func (o *CreateClusterBadRequest) IsClientError() bool

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

func (*CreateClusterBadRequest) IsCode

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

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

func (*CreateClusterBadRequest) IsRedirect

func (o *CreateClusterBadRequest) IsRedirect() bool

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

func (*CreateClusterBadRequest) IsServerError

func (o *CreateClusterBadRequest) IsServerError() bool

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

func (*CreateClusterBadRequest) IsSuccess

func (o *CreateClusterBadRequest) IsSuccess() bool

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

func (*CreateClusterBadRequest) String

func (o *CreateClusterBadRequest) String() string

type CreateClusterConflict

type CreateClusterConflict struct {
}

CreateClusterConflict describes a response with status code 409, with default header values.

Conflict, already existing

func NewCreateClusterConflict

func NewCreateClusterConflict() *CreateClusterConflict

NewCreateClusterConflict creates a CreateClusterConflict with default headers values

func (*CreateClusterConflict) Code

func (o *CreateClusterConflict) Code() int

Code gets the status code for the create cluster conflict response

func (*CreateClusterConflict) Error

func (o *CreateClusterConflict) Error() string

func (*CreateClusterConflict) IsClientError

func (o *CreateClusterConflict) IsClientError() bool

IsClientError returns true when this create cluster conflict response has a 4xx status code

func (*CreateClusterConflict) IsCode

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

IsCode returns true when this create cluster conflict response a status code equal to that given

func (*CreateClusterConflict) IsRedirect

func (o *CreateClusterConflict) IsRedirect() bool

IsRedirect returns true when this create cluster conflict response has a 3xx status code

func (*CreateClusterConflict) IsServerError

func (o *CreateClusterConflict) IsServerError() bool

IsServerError returns true when this create cluster conflict response has a 5xx status code

func (*CreateClusterConflict) IsSuccess

func (o *CreateClusterConflict) IsSuccess() bool

IsSuccess returns true when this create cluster conflict response has a 2xx status code

func (*CreateClusterConflict) String

func (o *CreateClusterConflict) String() string

type CreateClusterCreated

type CreateClusterCreated struct {
	Payload *models.Cluster
}

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

The cluster creation request is accepted

func NewCreateClusterCreated

func NewCreateClusterCreated() *CreateClusterCreated

NewCreateClusterCreated creates a CreateClusterCreated with default headers values

func (*CreateClusterCreated) Code

func (o *CreateClusterCreated) Code() int

Code gets the status code for the create cluster created response

func (*CreateClusterCreated) Error

func (o *CreateClusterCreated) Error() string

func (*CreateClusterCreated) GetPayload

func (o *CreateClusterCreated) GetPayload() *models.Cluster

func (*CreateClusterCreated) IsClientError

func (o *CreateClusterCreated) IsClientError() bool

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

func (*CreateClusterCreated) IsCode

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

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

func (*CreateClusterCreated) IsRedirect

func (o *CreateClusterCreated) IsRedirect() bool

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

func (*CreateClusterCreated) IsServerError

func (o *CreateClusterCreated) IsServerError() bool

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

func (*CreateClusterCreated) IsSuccess

func (o *CreateClusterCreated) IsSuccess() bool

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

func (*CreateClusterCreated) String

func (o *CreateClusterCreated) String() string

type CreateClusterForbidden

type CreateClusterForbidden struct {
}

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

Forbidden

func NewCreateClusterForbidden

func NewCreateClusterForbidden() *CreateClusterForbidden

NewCreateClusterForbidden creates a CreateClusterForbidden with default headers values

func (*CreateClusterForbidden) Code

func (o *CreateClusterForbidden) Code() int

Code gets the status code for the create cluster forbidden response

func (*CreateClusterForbidden) Error

func (o *CreateClusterForbidden) Error() string

func (*CreateClusterForbidden) IsClientError

func (o *CreateClusterForbidden) IsClientError() bool

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

func (*CreateClusterForbidden) IsCode

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

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

func (*CreateClusterForbidden) IsRedirect

func (o *CreateClusterForbidden) IsRedirect() bool

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

func (*CreateClusterForbidden) IsServerError

func (o *CreateClusterForbidden) IsServerError() bool

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

func (*CreateClusterForbidden) IsSuccess

func (o *CreateClusterForbidden) IsSuccess() bool

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

func (*CreateClusterForbidden) String

func (o *CreateClusterForbidden) String() string

type CreateClusterInternalServerError

type CreateClusterInternalServerError struct {
	Payload *models.Error
}

CreateClusterInternalServerError describes a response with status code 500, with default header values.

Unexpected error

func NewCreateClusterInternalServerError

func NewCreateClusterInternalServerError() *CreateClusterInternalServerError

NewCreateClusterInternalServerError creates a CreateClusterInternalServerError with default headers values

func (*CreateClusterInternalServerError) Code

Code gets the status code for the create cluster internal server error response

func (*CreateClusterInternalServerError) Error

func (*CreateClusterInternalServerError) GetPayload

func (*CreateClusterInternalServerError) IsClientError

func (o *CreateClusterInternalServerError) IsClientError() bool

IsClientError returns true when this create cluster internal server error response has a 4xx status code

func (*CreateClusterInternalServerError) IsCode

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

IsCode returns true when this create cluster internal server error response a status code equal to that given

func (*CreateClusterInternalServerError) IsRedirect

func (o *CreateClusterInternalServerError) IsRedirect() bool

IsRedirect returns true when this create cluster internal server error response has a 3xx status code

func (*CreateClusterInternalServerError) IsServerError

func (o *CreateClusterInternalServerError) IsServerError() bool

IsServerError returns true when this create cluster internal server error response has a 5xx status code

func (*CreateClusterInternalServerError) IsSuccess

func (o *CreateClusterInternalServerError) IsSuccess() bool

IsSuccess returns true when this create cluster internal server error response has a 2xx status code

func (*CreateClusterInternalServerError) String

type CreateClusterParams

type CreateClusterParams struct {

	/* Cluster.

	   Cluster that will be created.
	*/
	Cluster *models.Cluster

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

CreateClusterParams contains all the parameters to send to the API endpoint

for the create cluster operation.

Typically these are written to a http.Request.

func NewCreateClusterParams

func NewCreateClusterParams() *CreateClusterParams

NewCreateClusterParams creates a new CreateClusterParams 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 NewCreateClusterParamsWithContext

func NewCreateClusterParamsWithContext(ctx context.Context) *CreateClusterParams

NewCreateClusterParamsWithContext creates a new CreateClusterParams object with the ability to set a context for a request.

func NewCreateClusterParamsWithHTTPClient

func NewCreateClusterParamsWithHTTPClient(client *http.Client) *CreateClusterParams

NewCreateClusterParamsWithHTTPClient creates a new CreateClusterParams object with the ability to set a custom HTTPClient for a request.

func NewCreateClusterParamsWithTimeout

func NewCreateClusterParamsWithTimeout(timeout time.Duration) *CreateClusterParams

NewCreateClusterParamsWithTimeout creates a new CreateClusterParams object with the ability to set a timeout on a request.

func (*CreateClusterParams) SetCluster

func (o *CreateClusterParams) SetCluster(cluster *models.Cluster)

SetCluster adds the cluster to the create cluster params

func (*CreateClusterParams) SetContext

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

SetContext adds the context to the create cluster params

func (*CreateClusterParams) SetDefaults

func (o *CreateClusterParams) SetDefaults()

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

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

func (*CreateClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create cluster params

func (*CreateClusterParams) SetTimeout

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

SetTimeout adds the timeout to the create cluster params

func (*CreateClusterParams) WithCluster

func (o *CreateClusterParams) WithCluster(cluster *models.Cluster) *CreateClusterParams

WithCluster adds the cluster to the create cluster params

func (*CreateClusterParams) WithContext

WithContext adds the context to the create cluster params

func (*CreateClusterParams) WithDefaults

func (o *CreateClusterParams) WithDefaults() *CreateClusterParams

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

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

func (*CreateClusterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create cluster params

func (*CreateClusterParams) WithTimeout

func (o *CreateClusterParams) WithTimeout(timeout time.Duration) *CreateClusterParams

WithTimeout adds the timeout to the create cluster params

func (*CreateClusterParams) WriteToRequest

func (o *CreateClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateClusterReader

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

CreateClusterReader is a Reader for the CreateCluster structure.

func (*CreateClusterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateClusterUnauthorized

type CreateClusterUnauthorized struct {
}

CreateClusterUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewCreateClusterUnauthorized

func NewCreateClusterUnauthorized() *CreateClusterUnauthorized

NewCreateClusterUnauthorized creates a CreateClusterUnauthorized with default headers values

func (*CreateClusterUnauthorized) Code

func (o *CreateClusterUnauthorized) Code() int

Code gets the status code for the create cluster unauthorized response

func (*CreateClusterUnauthorized) Error

func (o *CreateClusterUnauthorized) Error() string

func (*CreateClusterUnauthorized) IsClientError

func (o *CreateClusterUnauthorized) IsClientError() bool

IsClientError returns true when this create cluster unauthorized response has a 4xx status code

func (*CreateClusterUnauthorized) IsCode

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

IsCode returns true when this create cluster unauthorized response a status code equal to that given

func (*CreateClusterUnauthorized) IsRedirect

func (o *CreateClusterUnauthorized) IsRedirect() bool

IsRedirect returns true when this create cluster unauthorized response has a 3xx status code

func (*CreateClusterUnauthorized) IsServerError

func (o *CreateClusterUnauthorized) IsServerError() bool

IsServerError returns true when this create cluster unauthorized response has a 5xx status code

func (*CreateClusterUnauthorized) IsSuccess

func (o *CreateClusterUnauthorized) IsSuccess() bool

IsSuccess returns true when this create cluster unauthorized response has a 2xx status code

func (*CreateClusterUnauthorized) String

func (o *CreateClusterUnauthorized) String() string

type DeleteClusterBadRequest

type DeleteClusterBadRequest struct {
	Payload *models.Error
}

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

Invalid request

func NewDeleteClusterBadRequest

func NewDeleteClusterBadRequest() *DeleteClusterBadRequest

NewDeleteClusterBadRequest creates a DeleteClusterBadRequest with default headers values

func (*DeleteClusterBadRequest) Code

func (o *DeleteClusterBadRequest) Code() int

Code gets the status code for the delete cluster bad request response

func (*DeleteClusterBadRequest) Error

func (o *DeleteClusterBadRequest) Error() string

func (*DeleteClusterBadRequest) GetPayload

func (o *DeleteClusterBadRequest) GetPayload() *models.Error

func (*DeleteClusterBadRequest) IsClientError

func (o *DeleteClusterBadRequest) IsClientError() bool

IsClientError returns true when this delete cluster bad request response has a 4xx status code

func (*DeleteClusterBadRequest) IsCode

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

IsCode returns true when this delete cluster bad request response a status code equal to that given

func (*DeleteClusterBadRequest) IsRedirect

func (o *DeleteClusterBadRequest) IsRedirect() bool

IsRedirect returns true when this delete cluster bad request response has a 3xx status code

func (*DeleteClusterBadRequest) IsServerError

func (o *DeleteClusterBadRequest) IsServerError() bool

IsServerError returns true when this delete cluster bad request response has a 5xx status code

func (*DeleteClusterBadRequest) IsSuccess

func (o *DeleteClusterBadRequest) IsSuccess() bool

IsSuccess returns true when this delete cluster bad request response has a 2xx status code

func (*DeleteClusterBadRequest) String

func (o *DeleteClusterBadRequest) String() string

type DeleteClusterForbidden

type DeleteClusterForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewDeleteClusterForbidden

func NewDeleteClusterForbidden() *DeleteClusterForbidden

NewDeleteClusterForbidden creates a DeleteClusterForbidden with default headers values

func (*DeleteClusterForbidden) Code

func (o *DeleteClusterForbidden) Code() int

Code gets the status code for the delete cluster forbidden response

func (*DeleteClusterForbidden) Error

func (o *DeleteClusterForbidden) Error() string

func (*DeleteClusterForbidden) GetPayload

func (o *DeleteClusterForbidden) GetPayload() *models.Error

func (*DeleteClusterForbidden) IsClientError

func (o *DeleteClusterForbidden) IsClientError() bool

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

func (*DeleteClusterForbidden) IsCode

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

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

func (*DeleteClusterForbidden) IsRedirect

func (o *DeleteClusterForbidden) IsRedirect() bool

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

func (*DeleteClusterForbidden) IsServerError

func (o *DeleteClusterForbidden) IsServerError() bool

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

func (*DeleteClusterForbidden) IsSuccess

func (o *DeleteClusterForbidden) IsSuccess() bool

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

func (*DeleteClusterForbidden) String

func (o *DeleteClusterForbidden) String() string

type DeleteClusterInternalServerError

type DeleteClusterInternalServerError struct {
	Payload *models.Error
}

DeleteClusterInternalServerError describes a response with status code 500, with default header values.

Unexpected error

func NewDeleteClusterInternalServerError

func NewDeleteClusterInternalServerError() *DeleteClusterInternalServerError

NewDeleteClusterInternalServerError creates a DeleteClusterInternalServerError with default headers values

func (*DeleteClusterInternalServerError) Code

Code gets the status code for the delete cluster internal server error response

func (*DeleteClusterInternalServerError) Error

func (*DeleteClusterInternalServerError) GetPayload

func (*DeleteClusterInternalServerError) IsClientError

func (o *DeleteClusterInternalServerError) IsClientError() bool

IsClientError returns true when this delete cluster internal server error response has a 4xx status code

func (*DeleteClusterInternalServerError) IsCode

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

IsCode returns true when this delete cluster internal server error response a status code equal to that given

func (*DeleteClusterInternalServerError) IsRedirect

func (o *DeleteClusterInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete cluster internal server error response has a 3xx status code

func (*DeleteClusterInternalServerError) IsServerError

func (o *DeleteClusterInternalServerError) IsServerError() bool

IsServerError returns true when this delete cluster internal server error response has a 5xx status code

func (*DeleteClusterInternalServerError) IsSuccess

func (o *DeleteClusterInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete cluster internal server error response has a 2xx status code

func (*DeleteClusterInternalServerError) String

type DeleteClusterNoContent

type DeleteClusterNoContent struct {
}

DeleteClusterNoContent describes a response with status code 204, with default header values.

Cluster deleted

func NewDeleteClusterNoContent

func NewDeleteClusterNoContent() *DeleteClusterNoContent

NewDeleteClusterNoContent creates a DeleteClusterNoContent with default headers values

func (*DeleteClusterNoContent) Code

func (o *DeleteClusterNoContent) Code() int

Code gets the status code for the delete cluster no content response

func (*DeleteClusterNoContent) Error

func (o *DeleteClusterNoContent) Error() string

func (*DeleteClusterNoContent) IsClientError

func (o *DeleteClusterNoContent) IsClientError() bool

IsClientError returns true when this delete cluster no content response has a 4xx status code

func (*DeleteClusterNoContent) IsCode

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

IsCode returns true when this delete cluster no content response a status code equal to that given

func (*DeleteClusterNoContent) IsRedirect

func (o *DeleteClusterNoContent) IsRedirect() bool

IsRedirect returns true when this delete cluster no content response has a 3xx status code

func (*DeleteClusterNoContent) IsServerError

func (o *DeleteClusterNoContent) IsServerError() bool

IsServerError returns true when this delete cluster no content response has a 5xx status code

func (*DeleteClusterNoContent) IsSuccess

func (o *DeleteClusterNoContent) IsSuccess() bool

IsSuccess returns true when this delete cluster no content response has a 2xx status code

func (*DeleteClusterNoContent) String

func (o *DeleteClusterNoContent) String() string

type DeleteClusterNotFound

type DeleteClusterNotFound struct {
}

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

Cluster not found

func NewDeleteClusterNotFound

func NewDeleteClusterNotFound() *DeleteClusterNotFound

NewDeleteClusterNotFound creates a DeleteClusterNotFound with default headers values

func (*DeleteClusterNotFound) Code

func (o *DeleteClusterNotFound) Code() int

Code gets the status code for the delete cluster not found response

func (*DeleteClusterNotFound) Error

func (o *DeleteClusterNotFound) Error() string

func (*DeleteClusterNotFound) IsClientError

func (o *DeleteClusterNotFound) IsClientError() bool

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

func (*DeleteClusterNotFound) IsCode

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

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

func (*DeleteClusterNotFound) IsRedirect

func (o *DeleteClusterNotFound) IsRedirect() bool

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

func (*DeleteClusterNotFound) IsServerError

func (o *DeleteClusterNotFound) IsServerError() bool

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

func (*DeleteClusterNotFound) IsSuccess

func (o *DeleteClusterNotFound) IsSuccess() bool

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

func (*DeleteClusterNotFound) String

func (o *DeleteClusterNotFound) String() string

type DeleteClusterParams

type DeleteClusterParams struct {

	/* ClusterID.

	   ID of the cluster.
	*/
	ClusterID string

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

DeleteClusterParams contains all the parameters to send to the API endpoint

for the delete cluster operation.

Typically these are written to a http.Request.

func NewDeleteClusterParams

func NewDeleteClusterParams() *DeleteClusterParams

NewDeleteClusterParams creates a new DeleteClusterParams 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 NewDeleteClusterParamsWithContext

func NewDeleteClusterParamsWithContext(ctx context.Context) *DeleteClusterParams

NewDeleteClusterParamsWithContext creates a new DeleteClusterParams object with the ability to set a context for a request.

func NewDeleteClusterParamsWithHTTPClient

func NewDeleteClusterParamsWithHTTPClient(client *http.Client) *DeleteClusterParams

NewDeleteClusterParamsWithHTTPClient creates a new DeleteClusterParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteClusterParamsWithTimeout

func NewDeleteClusterParamsWithTimeout(timeout time.Duration) *DeleteClusterParams

NewDeleteClusterParamsWithTimeout creates a new DeleteClusterParams object with the ability to set a timeout on a request.

func (*DeleteClusterParams) SetClusterID

func (o *DeleteClusterParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the delete cluster params

func (*DeleteClusterParams) SetContext

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

SetContext adds the context to the delete cluster params

func (*DeleteClusterParams) SetDefaults

func (o *DeleteClusterParams) SetDefaults()

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

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

func (*DeleteClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete cluster params

func (*DeleteClusterParams) SetTimeout

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

SetTimeout adds the timeout to the delete cluster params

func (*DeleteClusterParams) WithClusterID

func (o *DeleteClusterParams) WithClusterID(clusterID string) *DeleteClusterParams

WithClusterID adds the clusterID to the delete cluster params

func (*DeleteClusterParams) WithContext

WithContext adds the context to the delete cluster params

func (*DeleteClusterParams) WithDefaults

func (o *DeleteClusterParams) WithDefaults() *DeleteClusterParams

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

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

func (*DeleteClusterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete cluster params

func (*DeleteClusterParams) WithTimeout

func (o *DeleteClusterParams) WithTimeout(timeout time.Duration) *DeleteClusterParams

WithTimeout adds the timeout to the delete cluster params

func (*DeleteClusterParams) WriteToRequest

func (o *DeleteClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteClusterReader

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

DeleteClusterReader is a Reader for the DeleteCluster structure.

func (*DeleteClusterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteClusterUnauthorized

type DeleteClusterUnauthorized struct {
}

DeleteClusterUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteClusterUnauthorized

func NewDeleteClusterUnauthorized() *DeleteClusterUnauthorized

NewDeleteClusterUnauthorized creates a DeleteClusterUnauthorized with default headers values

func (*DeleteClusterUnauthorized) Code

func (o *DeleteClusterUnauthorized) Code() int

Code gets the status code for the delete cluster unauthorized response

func (*DeleteClusterUnauthorized) Error

func (o *DeleteClusterUnauthorized) Error() string

func (*DeleteClusterUnauthorized) IsClientError

func (o *DeleteClusterUnauthorized) IsClientError() bool

IsClientError returns true when this delete cluster unauthorized response has a 4xx status code

func (*DeleteClusterUnauthorized) IsCode

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

IsCode returns true when this delete cluster unauthorized response a status code equal to that given

func (*DeleteClusterUnauthorized) IsRedirect

func (o *DeleteClusterUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete cluster unauthorized response has a 3xx status code

func (*DeleteClusterUnauthorized) IsServerError

func (o *DeleteClusterUnauthorized) IsServerError() bool

IsServerError returns true when this delete cluster unauthorized response has a 5xx status code

func (*DeleteClusterUnauthorized) IsSuccess

func (o *DeleteClusterUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete cluster unauthorized response has a 2xx status code

func (*DeleteClusterUnauthorized) String

func (o *DeleteClusterUnauthorized) String() string

type GetClusterForbidden

type GetClusterForbidden struct {
}

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

Forbidden

func NewGetClusterForbidden

func NewGetClusterForbidden() *GetClusterForbidden

NewGetClusterForbidden creates a GetClusterForbidden with default headers values

func (*GetClusterForbidden) Code

func (o *GetClusterForbidden) Code() int

Code gets the status code for the get cluster forbidden response

func (*GetClusterForbidden) Error

func (o *GetClusterForbidden) Error() string

func (*GetClusterForbidden) IsClientError

func (o *GetClusterForbidden) IsClientError() bool

IsClientError returns true when this get cluster forbidden response has a 4xx status code

func (*GetClusterForbidden) IsCode

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

IsCode returns true when this get cluster forbidden response a status code equal to that given

func (*GetClusterForbidden) IsRedirect

func (o *GetClusterForbidden) IsRedirect() bool

IsRedirect returns true when this get cluster forbidden response has a 3xx status code

func (*GetClusterForbidden) IsServerError

func (o *GetClusterForbidden) IsServerError() bool

IsServerError returns true when this get cluster forbidden response has a 5xx status code

func (*GetClusterForbidden) IsSuccess

func (o *GetClusterForbidden) IsSuccess() bool

IsSuccess returns true when this get cluster forbidden response has a 2xx status code

func (*GetClusterForbidden) String

func (o *GetClusterForbidden) String() string

type GetClusterInternalServerError

type GetClusterInternalServerError struct {
	Payload *models.Error
}

GetClusterInternalServerError describes a response with status code 500, with default header values.

Unexpected error

func NewGetClusterInternalServerError

func NewGetClusterInternalServerError() *GetClusterInternalServerError

NewGetClusterInternalServerError creates a GetClusterInternalServerError with default headers values

func (*GetClusterInternalServerError) Code

Code gets the status code for the get cluster internal server error response

func (*GetClusterInternalServerError) Error

func (*GetClusterInternalServerError) GetPayload

func (o *GetClusterInternalServerError) GetPayload() *models.Error

func (*GetClusterInternalServerError) IsClientError

func (o *GetClusterInternalServerError) IsClientError() bool

IsClientError returns true when this get cluster internal server error response has a 4xx status code

func (*GetClusterInternalServerError) IsCode

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

IsCode returns true when this get cluster internal server error response a status code equal to that given

func (*GetClusterInternalServerError) IsRedirect

func (o *GetClusterInternalServerError) IsRedirect() bool

IsRedirect returns true when this get cluster internal server error response has a 3xx status code

func (*GetClusterInternalServerError) IsServerError

func (o *GetClusterInternalServerError) IsServerError() bool

IsServerError returns true when this get cluster internal server error response has a 5xx status code

func (*GetClusterInternalServerError) IsSuccess

func (o *GetClusterInternalServerError) IsSuccess() bool

IsSuccess returns true when this get cluster internal server error response has a 2xx status code

func (*GetClusterInternalServerError) String

type GetClusterNotFound

type GetClusterNotFound struct {
}

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

Cluster not found

func NewGetClusterNotFound

func NewGetClusterNotFound() *GetClusterNotFound

NewGetClusterNotFound creates a GetClusterNotFound with default headers values

func (*GetClusterNotFound) Code

func (o *GetClusterNotFound) Code() int

Code gets the status code for the get cluster not found response

func (*GetClusterNotFound) Error

func (o *GetClusterNotFound) Error() string

func (*GetClusterNotFound) IsClientError

func (o *GetClusterNotFound) IsClientError() bool

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

func (*GetClusterNotFound) IsCode

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

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

func (*GetClusterNotFound) IsRedirect

func (o *GetClusterNotFound) IsRedirect() bool

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

func (*GetClusterNotFound) IsServerError

func (o *GetClusterNotFound) IsServerError() bool

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

func (*GetClusterNotFound) IsSuccess

func (o *GetClusterNotFound) IsSuccess() bool

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

func (*GetClusterNotFound) String

func (o *GetClusterNotFound) String() string

type GetClusterOK

type GetClusterOK struct {
	Payload *models.Cluster
}

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

Cluster information.

func NewGetClusterOK

func NewGetClusterOK() *GetClusterOK

NewGetClusterOK creates a GetClusterOK with default headers values

func (*GetClusterOK) Code

func (o *GetClusterOK) Code() int

Code gets the status code for the get cluster o k response

func (*GetClusterOK) Error

func (o *GetClusterOK) Error() string

func (*GetClusterOK) GetPayload

func (o *GetClusterOK) GetPayload() *models.Cluster

func (*GetClusterOK) IsClientError

func (o *GetClusterOK) IsClientError() bool

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

func (*GetClusterOK) IsCode

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

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

func (*GetClusterOK) IsRedirect

func (o *GetClusterOK) IsRedirect() bool

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

func (*GetClusterOK) IsServerError

func (o *GetClusterOK) IsServerError() bool

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

func (*GetClusterOK) IsSuccess

func (o *GetClusterOK) IsSuccess() bool

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

func (*GetClusterOK) String

func (o *GetClusterOK) String() string

type GetClusterParams

type GetClusterParams struct {

	/* ClusterID.

	   ID of the cluster.
	*/
	ClusterID string

	/* Verbose.

	   Include technical data (config items, node pools) in the response, true by default

	   Default: true
	*/
	Verbose *bool

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

GetClusterParams contains all the parameters to send to the API endpoint

for the get cluster operation.

Typically these are written to a http.Request.

func NewGetClusterParams

func NewGetClusterParams() *GetClusterParams

NewGetClusterParams creates a new GetClusterParams 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 NewGetClusterParamsWithContext

func NewGetClusterParamsWithContext(ctx context.Context) *GetClusterParams

NewGetClusterParamsWithContext creates a new GetClusterParams object with the ability to set a context for a request.

func NewGetClusterParamsWithHTTPClient

func NewGetClusterParamsWithHTTPClient(client *http.Client) *GetClusterParams

NewGetClusterParamsWithHTTPClient creates a new GetClusterParams object with the ability to set a custom HTTPClient for a request.

func NewGetClusterParamsWithTimeout

func NewGetClusterParamsWithTimeout(timeout time.Duration) *GetClusterParams

NewGetClusterParamsWithTimeout creates a new GetClusterParams object with the ability to set a timeout on a request.

func (*GetClusterParams) SetClusterID

func (o *GetClusterParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get cluster params

func (*GetClusterParams) SetContext

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

SetContext adds the context to the get cluster params

func (*GetClusterParams) SetDefaults

func (o *GetClusterParams) SetDefaults()

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

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

func (*GetClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get cluster params

func (*GetClusterParams) SetTimeout

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

SetTimeout adds the timeout to the get cluster params

func (*GetClusterParams) SetVerbose

func (o *GetClusterParams) SetVerbose(verbose *bool)

SetVerbose adds the verbose to the get cluster params

func (*GetClusterParams) WithClusterID

func (o *GetClusterParams) WithClusterID(clusterID string) *GetClusterParams

WithClusterID adds the clusterID to the get cluster params

func (*GetClusterParams) WithContext

func (o *GetClusterParams) WithContext(ctx context.Context) *GetClusterParams

WithContext adds the context to the get cluster params

func (*GetClusterParams) WithDefaults

func (o *GetClusterParams) WithDefaults() *GetClusterParams

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

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

func (*GetClusterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get cluster params

func (*GetClusterParams) WithTimeout

func (o *GetClusterParams) WithTimeout(timeout time.Duration) *GetClusterParams

WithTimeout adds the timeout to the get cluster params

func (*GetClusterParams) WithVerbose

func (o *GetClusterParams) WithVerbose(verbose *bool) *GetClusterParams

WithVerbose adds the verbose to the get cluster params

func (*GetClusterParams) WriteToRequest

func (o *GetClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetClusterReader

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

GetClusterReader is a Reader for the GetCluster structure.

func (*GetClusterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetClusterUnauthorized

type GetClusterUnauthorized struct {
}

GetClusterUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetClusterUnauthorized

func NewGetClusterUnauthorized() *GetClusterUnauthorized

NewGetClusterUnauthorized creates a GetClusterUnauthorized with default headers values

func (*GetClusterUnauthorized) Code

func (o *GetClusterUnauthorized) Code() int

Code gets the status code for the get cluster unauthorized response

func (*GetClusterUnauthorized) Error

func (o *GetClusterUnauthorized) Error() string

func (*GetClusterUnauthorized) IsClientError

func (o *GetClusterUnauthorized) IsClientError() bool

IsClientError returns true when this get cluster unauthorized response has a 4xx status code

func (*GetClusterUnauthorized) IsCode

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

IsCode returns true when this get cluster unauthorized response a status code equal to that given

func (*GetClusterUnauthorized) IsRedirect

func (o *GetClusterUnauthorized) IsRedirect() bool

IsRedirect returns true when this get cluster unauthorized response has a 3xx status code

func (*GetClusterUnauthorized) IsServerError

func (o *GetClusterUnauthorized) IsServerError() bool

IsServerError returns true when this get cluster unauthorized response has a 5xx status code

func (*GetClusterUnauthorized) IsSuccess

func (o *GetClusterUnauthorized) IsSuccess() bool

IsSuccess returns true when this get cluster unauthorized response has a 2xx status code

func (*GetClusterUnauthorized) String

func (o *GetClusterUnauthorized) String() string

type ListClustersForbidden

type ListClustersForbidden struct {
}

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

Forbidden

func NewListClustersForbidden

func NewListClustersForbidden() *ListClustersForbidden

NewListClustersForbidden creates a ListClustersForbidden with default headers values

func (*ListClustersForbidden) Code

func (o *ListClustersForbidden) Code() int

Code gets the status code for the list clusters forbidden response

func (*ListClustersForbidden) Error

func (o *ListClustersForbidden) Error() string

func (*ListClustersForbidden) IsClientError

func (o *ListClustersForbidden) IsClientError() bool

IsClientError returns true when this list clusters forbidden response has a 4xx status code

func (*ListClustersForbidden) IsCode

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

IsCode returns true when this list clusters forbidden response a status code equal to that given

func (*ListClustersForbidden) IsRedirect

func (o *ListClustersForbidden) IsRedirect() bool

IsRedirect returns true when this list clusters forbidden response has a 3xx status code

func (*ListClustersForbidden) IsServerError

func (o *ListClustersForbidden) IsServerError() bool

IsServerError returns true when this list clusters forbidden response has a 5xx status code

func (*ListClustersForbidden) IsSuccess

func (o *ListClustersForbidden) IsSuccess() bool

IsSuccess returns true when this list clusters forbidden response has a 2xx status code

func (*ListClustersForbidden) String

func (o *ListClustersForbidden) String() string

type ListClustersInternalServerError

type ListClustersInternalServerError struct {
	Payload *models.Error
}

ListClustersInternalServerError describes a response with status code 500, with default header values.

Unexpected error

func NewListClustersInternalServerError

func NewListClustersInternalServerError() *ListClustersInternalServerError

NewListClustersInternalServerError creates a ListClustersInternalServerError with default headers values

func (*ListClustersInternalServerError) Code

Code gets the status code for the list clusters internal server error response

func (*ListClustersInternalServerError) Error

func (*ListClustersInternalServerError) GetPayload

func (o *ListClustersInternalServerError) GetPayload() *models.Error

func (*ListClustersInternalServerError) IsClientError

func (o *ListClustersInternalServerError) IsClientError() bool

IsClientError returns true when this list clusters internal server error response has a 4xx status code

func (*ListClustersInternalServerError) IsCode

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

IsCode returns true when this list clusters internal server error response a status code equal to that given

func (*ListClustersInternalServerError) IsRedirect

func (o *ListClustersInternalServerError) IsRedirect() bool

IsRedirect returns true when this list clusters internal server error response has a 3xx status code

func (*ListClustersInternalServerError) IsServerError

func (o *ListClustersInternalServerError) IsServerError() bool

IsServerError returns true when this list clusters internal server error response has a 5xx status code

func (*ListClustersInternalServerError) IsSuccess

func (o *ListClustersInternalServerError) IsSuccess() bool

IsSuccess returns true when this list clusters internal server error response has a 2xx status code

func (*ListClustersInternalServerError) String

type ListClustersOK

type ListClustersOK struct {
	Payload *ListClustersOKBody
}

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

List of all Kubernetes clusters.

func NewListClustersOK

func NewListClustersOK() *ListClustersOK

NewListClustersOK creates a ListClustersOK with default headers values

func (*ListClustersOK) Code

func (o *ListClustersOK) Code() int

Code gets the status code for the list clusters o k response

func (*ListClustersOK) Error

func (o *ListClustersOK) Error() string

func (*ListClustersOK) GetPayload

func (o *ListClustersOK) GetPayload() *ListClustersOKBody

func (*ListClustersOK) IsClientError

func (o *ListClustersOK) IsClientError() bool

IsClientError returns true when this list clusters o k response has a 4xx status code

func (*ListClustersOK) IsCode

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

IsCode returns true when this list clusters o k response a status code equal to that given

func (*ListClustersOK) IsRedirect

func (o *ListClustersOK) IsRedirect() bool

IsRedirect returns true when this list clusters o k response has a 3xx status code

func (*ListClustersOK) IsServerError

func (o *ListClustersOK) IsServerError() bool

IsServerError returns true when this list clusters o k response has a 5xx status code

func (*ListClustersOK) IsSuccess

func (o *ListClustersOK) IsSuccess() bool

IsSuccess returns true when this list clusters o k response has a 2xx status code

func (*ListClustersOK) String

func (o *ListClustersOK) String() string

type ListClustersOKBody

type ListClustersOKBody struct {

	// items
	Items []*models.Cluster `json:"items"`
}

ListClustersOKBody list clusters o k body swagger:model ListClustersOKBody

func (*ListClustersOKBody) ContextValidate

func (o *ListClustersOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this list clusters o k body based on the context it is used

func (*ListClustersOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListClustersOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListClustersOKBody) Validate

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

Validate validates this list clusters o k body

type ListClustersParams

type ListClustersParams struct {

	/* Alias.

	   Filter on cluster alias.
	*/
	Alias *string

	/* APIServerURL.

	   Filter on API server URL.
	*/
	APIServerURL *string

	/* Channel.

	   Filter on channel.
	*/
	Channel *string

	/* CostCenter.

	   Filter on cost center number.
	*/
	CostCenter *string

	/* CriticalityLevel.

	   Filter on criticality level.

	   Format: int32
	*/
	CriticalityLevel *int32

	/* Environment.

	   Filter on environment.
	*/
	Environment *string

	/* InfrastructureAccount.

	   Filter on infrastructure account.
	*/
	InfrastructureAccount *string

	/* LifecycleStatus.

	   Filter on cluster lifecycle status.
	*/
	LifecycleStatus *string

	/* LocalID.

	   Filter on local id.
	*/
	LocalID *string

	/* Provider.

	   Filter on provider.
	*/
	Provider *string

	/* Region.

	   Filter on region.
	*/
	Region *string

	/* Verbose.

	   Include technical data (config items, node pools) in the response, true by default

	   Default: true
	*/
	Verbose *bool

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

ListClustersParams contains all the parameters to send to the API endpoint

for the list clusters operation.

Typically these are written to a http.Request.

func NewListClustersParams

func NewListClustersParams() *ListClustersParams

NewListClustersParams creates a new ListClustersParams 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 NewListClustersParamsWithContext

func NewListClustersParamsWithContext(ctx context.Context) *ListClustersParams

NewListClustersParamsWithContext creates a new ListClustersParams object with the ability to set a context for a request.

func NewListClustersParamsWithHTTPClient

func NewListClustersParamsWithHTTPClient(client *http.Client) *ListClustersParams

NewListClustersParamsWithHTTPClient creates a new ListClustersParams object with the ability to set a custom HTTPClient for a request.

func NewListClustersParamsWithTimeout

func NewListClustersParamsWithTimeout(timeout time.Duration) *ListClustersParams

NewListClustersParamsWithTimeout creates a new ListClustersParams object with the ability to set a timeout on a request.

func (*ListClustersParams) SetAPIServerURL

func (o *ListClustersParams) SetAPIServerURL(aPIServerURL *string)

SetAPIServerURL adds the apiServerUrl to the list clusters params

func (*ListClustersParams) SetAlias

func (o *ListClustersParams) SetAlias(alias *string)

SetAlias adds the alias to the list clusters params

func (*ListClustersParams) SetChannel

func (o *ListClustersParams) SetChannel(channel *string)

SetChannel adds the channel to the list clusters params

func (*ListClustersParams) SetContext

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

SetContext adds the context to the list clusters params

func (*ListClustersParams) SetCostCenter

func (o *ListClustersParams) SetCostCenter(costCenter *string)

SetCostCenter adds the costCenter to the list clusters params

func (*ListClustersParams) SetCriticalityLevel

func (o *ListClustersParams) SetCriticalityLevel(criticalityLevel *int32)

SetCriticalityLevel adds the criticalityLevel to the list clusters params

func (*ListClustersParams) SetDefaults

func (o *ListClustersParams) SetDefaults()

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

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

func (*ListClustersParams) SetEnvironment

func (o *ListClustersParams) SetEnvironment(environment *string)

SetEnvironment adds the environment to the list clusters params

func (*ListClustersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list clusters params

func (*ListClustersParams) SetInfrastructureAccount

func (o *ListClustersParams) SetInfrastructureAccount(infrastructureAccount *string)

SetInfrastructureAccount adds the infrastructureAccount to the list clusters params

func (*ListClustersParams) SetLifecycleStatus

func (o *ListClustersParams) SetLifecycleStatus(lifecycleStatus *string)

SetLifecycleStatus adds the lifecycleStatus to the list clusters params

func (*ListClustersParams) SetLocalID

func (o *ListClustersParams) SetLocalID(localID *string)

SetLocalID adds the localId to the list clusters params

func (*ListClustersParams) SetProvider

func (o *ListClustersParams) SetProvider(provider *string)

SetProvider adds the provider to the list clusters params

func (*ListClustersParams) SetRegion

func (o *ListClustersParams) SetRegion(region *string)

SetRegion adds the region to the list clusters params

func (*ListClustersParams) SetTimeout

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

SetTimeout adds the timeout to the list clusters params

func (*ListClustersParams) SetVerbose

func (o *ListClustersParams) SetVerbose(verbose *bool)

SetVerbose adds the verbose to the list clusters params

func (*ListClustersParams) WithAPIServerURL

func (o *ListClustersParams) WithAPIServerURL(aPIServerURL *string) *ListClustersParams

WithAPIServerURL adds the aPIServerURL to the list clusters params

func (*ListClustersParams) WithAlias

func (o *ListClustersParams) WithAlias(alias *string) *ListClustersParams

WithAlias adds the alias to the list clusters params

func (*ListClustersParams) WithChannel

func (o *ListClustersParams) WithChannel(channel *string) *ListClustersParams

WithChannel adds the channel to the list clusters params

func (*ListClustersParams) WithContext

WithContext adds the context to the list clusters params

func (*ListClustersParams) WithCostCenter

func (o *ListClustersParams) WithCostCenter(costCenter *string) *ListClustersParams

WithCostCenter adds the costCenter to the list clusters params

func (*ListClustersParams) WithCriticalityLevel

func (o *ListClustersParams) WithCriticalityLevel(criticalityLevel *int32) *ListClustersParams

WithCriticalityLevel adds the criticalityLevel to the list clusters params

func (*ListClustersParams) WithDefaults

func (o *ListClustersParams) WithDefaults() *ListClustersParams

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

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

func (*ListClustersParams) WithEnvironment

func (o *ListClustersParams) WithEnvironment(environment *string) *ListClustersParams

WithEnvironment adds the environment to the list clusters params

func (*ListClustersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list clusters params

func (*ListClustersParams) WithInfrastructureAccount

func (o *ListClustersParams) WithInfrastructureAccount(infrastructureAccount *string) *ListClustersParams

WithInfrastructureAccount adds the infrastructureAccount to the list clusters params

func (*ListClustersParams) WithLifecycleStatus

func (o *ListClustersParams) WithLifecycleStatus(lifecycleStatus *string) *ListClustersParams

WithLifecycleStatus adds the lifecycleStatus to the list clusters params

func (*ListClustersParams) WithLocalID

func (o *ListClustersParams) WithLocalID(localID *string) *ListClustersParams

WithLocalID adds the localID to the list clusters params

func (*ListClustersParams) WithProvider

func (o *ListClustersParams) WithProvider(provider *string) *ListClustersParams

WithProvider adds the provider to the list clusters params

func (*ListClustersParams) WithRegion

func (o *ListClustersParams) WithRegion(region *string) *ListClustersParams

WithRegion adds the region to the list clusters params

func (*ListClustersParams) WithTimeout

func (o *ListClustersParams) WithTimeout(timeout time.Duration) *ListClustersParams

WithTimeout adds the timeout to the list clusters params

func (*ListClustersParams) WithVerbose

func (o *ListClustersParams) WithVerbose(verbose *bool) *ListClustersParams

WithVerbose adds the verbose to the list clusters params

func (*ListClustersParams) WriteToRequest

func (o *ListClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListClustersReader

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

ListClustersReader is a Reader for the ListClusters structure.

func (*ListClustersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListClustersUnauthorized

type ListClustersUnauthorized struct {
}

ListClustersUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewListClustersUnauthorized

func NewListClustersUnauthorized() *ListClustersUnauthorized

NewListClustersUnauthorized creates a ListClustersUnauthorized with default headers values

func (*ListClustersUnauthorized) Code

func (o *ListClustersUnauthorized) Code() int

Code gets the status code for the list clusters unauthorized response

func (*ListClustersUnauthorized) Error

func (o *ListClustersUnauthorized) Error() string

func (*ListClustersUnauthorized) IsClientError

func (o *ListClustersUnauthorized) IsClientError() bool

IsClientError returns true when this list clusters unauthorized response has a 4xx status code

func (*ListClustersUnauthorized) IsCode

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

IsCode returns true when this list clusters unauthorized response a status code equal to that given

func (*ListClustersUnauthorized) IsRedirect

func (o *ListClustersUnauthorized) IsRedirect() bool

IsRedirect returns true when this list clusters unauthorized response has a 3xx status code

func (*ListClustersUnauthorized) IsServerError

func (o *ListClustersUnauthorized) IsServerError() bool

IsServerError returns true when this list clusters unauthorized response has a 5xx status code

func (*ListClustersUnauthorized) IsSuccess

func (o *ListClustersUnauthorized) IsSuccess() bool

IsSuccess returns true when this list clusters unauthorized response has a 2xx status code

func (*ListClustersUnauthorized) String

func (o *ListClustersUnauthorized) String() string

type UpdateClusterForbidden

type UpdateClusterForbidden struct {
}

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

Forbidden

func NewUpdateClusterForbidden

func NewUpdateClusterForbidden() *UpdateClusterForbidden

NewUpdateClusterForbidden creates a UpdateClusterForbidden with default headers values

func (*UpdateClusterForbidden) Code

func (o *UpdateClusterForbidden) Code() int

Code gets the status code for the update cluster forbidden response

func (*UpdateClusterForbidden) Error

func (o *UpdateClusterForbidden) Error() string

func (*UpdateClusterForbidden) IsClientError

func (o *UpdateClusterForbidden) IsClientError() bool

IsClientError returns true when this update cluster forbidden response has a 4xx status code

func (*UpdateClusterForbidden) IsCode

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

IsCode returns true when this update cluster forbidden response a status code equal to that given

func (*UpdateClusterForbidden) IsRedirect

func (o *UpdateClusterForbidden) IsRedirect() bool

IsRedirect returns true when this update cluster forbidden response has a 3xx status code

func (*UpdateClusterForbidden) IsServerError

func (o *UpdateClusterForbidden) IsServerError() bool

IsServerError returns true when this update cluster forbidden response has a 5xx status code

func (*UpdateClusterForbidden) IsSuccess

func (o *UpdateClusterForbidden) IsSuccess() bool

IsSuccess returns true when this update cluster forbidden response has a 2xx status code

func (*UpdateClusterForbidden) String

func (o *UpdateClusterForbidden) String() string

type UpdateClusterInternalServerError

type UpdateClusterInternalServerError struct {
	Payload *models.Error
}

UpdateClusterInternalServerError describes a response with status code 500, with default header values.

Unexpected error

func NewUpdateClusterInternalServerError

func NewUpdateClusterInternalServerError() *UpdateClusterInternalServerError

NewUpdateClusterInternalServerError creates a UpdateClusterInternalServerError with default headers values

func (*UpdateClusterInternalServerError) Code

Code gets the status code for the update cluster internal server error response

func (*UpdateClusterInternalServerError) Error

func (*UpdateClusterInternalServerError) GetPayload

func (*UpdateClusterInternalServerError) IsClientError

func (o *UpdateClusterInternalServerError) IsClientError() bool

IsClientError returns true when this update cluster internal server error response has a 4xx status code

func (*UpdateClusterInternalServerError) IsCode

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

IsCode returns true when this update cluster internal server error response a status code equal to that given

func (*UpdateClusterInternalServerError) IsRedirect

func (o *UpdateClusterInternalServerError) IsRedirect() bool

IsRedirect returns true when this update cluster internal server error response has a 3xx status code

func (*UpdateClusterInternalServerError) IsServerError

func (o *UpdateClusterInternalServerError) IsServerError() bool

IsServerError returns true when this update cluster internal server error response has a 5xx status code

func (*UpdateClusterInternalServerError) IsSuccess

func (o *UpdateClusterInternalServerError) IsSuccess() bool

IsSuccess returns true when this update cluster internal server error response has a 2xx status code

func (*UpdateClusterInternalServerError) String

type UpdateClusterNotFound

type UpdateClusterNotFound struct {
}

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

Cluster not found

func NewUpdateClusterNotFound

func NewUpdateClusterNotFound() *UpdateClusterNotFound

NewUpdateClusterNotFound creates a UpdateClusterNotFound with default headers values

func (*UpdateClusterNotFound) Code

func (o *UpdateClusterNotFound) Code() int

Code gets the status code for the update cluster not found response

func (*UpdateClusterNotFound) Error

func (o *UpdateClusterNotFound) Error() string

func (*UpdateClusterNotFound) IsClientError

func (o *UpdateClusterNotFound) IsClientError() bool

IsClientError returns true when this update cluster not found response has a 4xx status code

func (*UpdateClusterNotFound) IsCode

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

IsCode returns true when this update cluster not found response a status code equal to that given

func (*UpdateClusterNotFound) IsRedirect

func (o *UpdateClusterNotFound) IsRedirect() bool

IsRedirect returns true when this update cluster not found response has a 3xx status code

func (*UpdateClusterNotFound) IsServerError

func (o *UpdateClusterNotFound) IsServerError() bool

IsServerError returns true when this update cluster not found response has a 5xx status code

func (*UpdateClusterNotFound) IsSuccess

func (o *UpdateClusterNotFound) IsSuccess() bool

IsSuccess returns true when this update cluster not found response has a 2xx status code

func (*UpdateClusterNotFound) String

func (o *UpdateClusterNotFound) String() string

type UpdateClusterOK

type UpdateClusterOK struct {
	Payload *models.Cluster
}

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

The cluster update request is performed and the updated cluster is returned.

func NewUpdateClusterOK

func NewUpdateClusterOK() *UpdateClusterOK

NewUpdateClusterOK creates a UpdateClusterOK with default headers values

func (*UpdateClusterOK) Code

func (o *UpdateClusterOK) Code() int

Code gets the status code for the update cluster o k response

func (*UpdateClusterOK) Error

func (o *UpdateClusterOK) Error() string

func (*UpdateClusterOK) GetPayload

func (o *UpdateClusterOK) GetPayload() *models.Cluster

func (*UpdateClusterOK) IsClientError

func (o *UpdateClusterOK) IsClientError() bool

IsClientError returns true when this update cluster o k response has a 4xx status code

func (*UpdateClusterOK) IsCode

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

IsCode returns true when this update cluster o k response a status code equal to that given

func (*UpdateClusterOK) IsRedirect

func (o *UpdateClusterOK) IsRedirect() bool

IsRedirect returns true when this update cluster o k response has a 3xx status code

func (*UpdateClusterOK) IsServerError

func (o *UpdateClusterOK) IsServerError() bool

IsServerError returns true when this update cluster o k response has a 5xx status code

func (*UpdateClusterOK) IsSuccess

func (o *UpdateClusterOK) IsSuccess() bool

IsSuccess returns true when this update cluster o k response has a 2xx status code

func (*UpdateClusterOK) String

func (o *UpdateClusterOK) String() string

type UpdateClusterParams

type UpdateClusterParams struct {

	/* Cluster.

	   Cluster that will be updated.
	*/
	Cluster *models.ClusterUpdate

	/* ClusterID.

	   ID of the cluster.
	*/
	ClusterID string

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

UpdateClusterParams contains all the parameters to send to the API endpoint

for the update cluster operation.

Typically these are written to a http.Request.

func NewUpdateClusterParams

func NewUpdateClusterParams() *UpdateClusterParams

NewUpdateClusterParams creates a new UpdateClusterParams 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 NewUpdateClusterParamsWithContext

func NewUpdateClusterParamsWithContext(ctx context.Context) *UpdateClusterParams

NewUpdateClusterParamsWithContext creates a new UpdateClusterParams object with the ability to set a context for a request.

func NewUpdateClusterParamsWithHTTPClient

func NewUpdateClusterParamsWithHTTPClient(client *http.Client) *UpdateClusterParams

NewUpdateClusterParamsWithHTTPClient creates a new UpdateClusterParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateClusterParamsWithTimeout

func NewUpdateClusterParamsWithTimeout(timeout time.Duration) *UpdateClusterParams

NewUpdateClusterParamsWithTimeout creates a new UpdateClusterParams object with the ability to set a timeout on a request.

func (*UpdateClusterParams) SetCluster

func (o *UpdateClusterParams) SetCluster(cluster *models.ClusterUpdate)

SetCluster adds the cluster to the update cluster params

func (*UpdateClusterParams) SetClusterID

func (o *UpdateClusterParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the update cluster params

func (*UpdateClusterParams) SetContext

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

SetContext adds the context to the update cluster params

func (*UpdateClusterParams) SetDefaults

func (o *UpdateClusterParams) SetDefaults()

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

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

func (*UpdateClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update cluster params

func (*UpdateClusterParams) SetTimeout

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

SetTimeout adds the timeout to the update cluster params

func (*UpdateClusterParams) WithCluster

func (o *UpdateClusterParams) WithCluster(cluster *models.ClusterUpdate) *UpdateClusterParams

WithCluster adds the cluster to the update cluster params

func (*UpdateClusterParams) WithClusterID

func (o *UpdateClusterParams) WithClusterID(clusterID string) *UpdateClusterParams

WithClusterID adds the clusterID to the update cluster params

func (*UpdateClusterParams) WithContext

WithContext adds the context to the update cluster params

func (*UpdateClusterParams) WithDefaults

func (o *UpdateClusterParams) WithDefaults() *UpdateClusterParams

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

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

func (*UpdateClusterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update cluster params

func (*UpdateClusterParams) WithTimeout

func (o *UpdateClusterParams) WithTimeout(timeout time.Duration) *UpdateClusterParams

WithTimeout adds the timeout to the update cluster params

func (*UpdateClusterParams) WriteToRequest

func (o *UpdateClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateClusterReader

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

UpdateClusterReader is a Reader for the UpdateCluster structure.

func (*UpdateClusterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateClusterUnauthorized

type UpdateClusterUnauthorized struct {
}

UpdateClusterUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewUpdateClusterUnauthorized

func NewUpdateClusterUnauthorized() *UpdateClusterUnauthorized

NewUpdateClusterUnauthorized creates a UpdateClusterUnauthorized with default headers values

func (*UpdateClusterUnauthorized) Code

func (o *UpdateClusterUnauthorized) Code() int

Code gets the status code for the update cluster unauthorized response

func (*UpdateClusterUnauthorized) Error

func (o *UpdateClusterUnauthorized) Error() string

func (*UpdateClusterUnauthorized) IsClientError

func (o *UpdateClusterUnauthorized) IsClientError() bool

IsClientError returns true when this update cluster unauthorized response has a 4xx status code

func (*UpdateClusterUnauthorized) IsCode

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

IsCode returns true when this update cluster unauthorized response a status code equal to that given

func (*UpdateClusterUnauthorized) IsRedirect

func (o *UpdateClusterUnauthorized) IsRedirect() bool

IsRedirect returns true when this update cluster unauthorized response has a 3xx status code

func (*UpdateClusterUnauthorized) IsServerError

func (o *UpdateClusterUnauthorized) IsServerError() bool

IsServerError returns true when this update cluster unauthorized response has a 5xx status code

func (*UpdateClusterUnauthorized) IsSuccess

func (o *UpdateClusterUnauthorized) IsSuccess() bool

IsSuccess returns true when this update cluster unauthorized response has a 2xx status code

func (*UpdateClusterUnauthorized) String

func (o *UpdateClusterUnauthorized) String() string

Jump to

Keyboard shortcuts

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