etcdbackupconfig

package
v0.0.0-...-192cafe Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 10 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 etcdbackupconfig API

func (*Client) CreateEtcdBackupConfig

func (a *Client) CreateEtcdBackupConfig(params *CreateEtcdBackupConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateEtcdBackupConfigCreated, error)

CreateEtcdBackupConfig Creates a etcd backup config that will belong to the given cluster

func (*Client) DeleteEtcdBackupConfig

func (a *Client) DeleteEtcdBackupConfig(params *DeleteEtcdBackupConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteEtcdBackupConfigOK, error)

DeleteEtcdBackupConfig Deletes a etcd backup config for a given cluster based on its id

func (*Client) GetEtcdBackupConfig

func (a *Client) GetEtcdBackupConfig(params *GetEtcdBackupConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEtcdBackupConfigOK, error)

GetEtcdBackupConfig Gets a etcd backup config for a given cluster based on its id

func (*Client) ListEtcdBackupConfig

func (a *Client) ListEtcdBackupConfig(params *ListEtcdBackupConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListEtcdBackupConfigOK, error)

ListEtcdBackupConfig List etcd backup configs for a given cluster

func (*Client) ListProjectEtcdBackupConfig

func (a *Client) ListProjectEtcdBackupConfig(params *ListProjectEtcdBackupConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProjectEtcdBackupConfigOK, error)

ListProjectEtcdBackupConfig List etcd backup configs for a given project

func (*Client) PatchEtcdBackupConfig

func (a *Client) PatchEtcdBackupConfig(params *PatchEtcdBackupConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchEtcdBackupConfigOK, error)

PatchEtcdBackupConfig Patches a etcd backup config for a given cluster based on its id

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateEtcdBackupConfig(params *CreateEtcdBackupConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateEtcdBackupConfigCreated, error)

	DeleteEtcdBackupConfig(params *DeleteEtcdBackupConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteEtcdBackupConfigOK, error)

	GetEtcdBackupConfig(params *GetEtcdBackupConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEtcdBackupConfigOK, error)

	ListEtcdBackupConfig(params *ListEtcdBackupConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListEtcdBackupConfigOK, error)

	ListProjectEtcdBackupConfig(params *ListProjectEtcdBackupConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProjectEtcdBackupConfigOK, error)

	PatchEtcdBackupConfig(params *PatchEtcdBackupConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchEtcdBackupConfigOK, 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 etcdbackupconfig API client.

type CreateEtcdBackupConfigCreated

type CreateEtcdBackupConfigCreated struct {
	Payload *models.EtcdBackupConfig
}
CreateEtcdBackupConfigCreated describes a response with status code 201, with default header values.

EtcdBackupConfig

func NewCreateEtcdBackupConfigCreated

func NewCreateEtcdBackupConfigCreated() *CreateEtcdBackupConfigCreated

NewCreateEtcdBackupConfigCreated creates a CreateEtcdBackupConfigCreated with default headers values

func (*CreateEtcdBackupConfigCreated) Error

func (*CreateEtcdBackupConfigCreated) GetPayload

type CreateEtcdBackupConfigDefault

type CreateEtcdBackupConfigDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
CreateEtcdBackupConfigDefault describes a response with status code -1, with default header values.

errorResponse

func NewCreateEtcdBackupConfigDefault

func NewCreateEtcdBackupConfigDefault(code int) *CreateEtcdBackupConfigDefault

NewCreateEtcdBackupConfigDefault creates a CreateEtcdBackupConfigDefault with default headers values

func (*CreateEtcdBackupConfigDefault) Code

Code gets the status code for the create etcd backup config default response

func (*CreateEtcdBackupConfigDefault) Error

func (*CreateEtcdBackupConfigDefault) GetPayload

type CreateEtcdBackupConfigForbidden

type CreateEtcdBackupConfigForbidden struct {
}
CreateEtcdBackupConfigForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewCreateEtcdBackupConfigForbidden

func NewCreateEtcdBackupConfigForbidden() *CreateEtcdBackupConfigForbidden

NewCreateEtcdBackupConfigForbidden creates a CreateEtcdBackupConfigForbidden with default headers values

func (*CreateEtcdBackupConfigForbidden) Error

type CreateEtcdBackupConfigParams

type CreateEtcdBackupConfigParams struct {

	// Body.
	Body *models.EbcBody

	// ClusterID.
	ClusterID string

	// ProjectID.
	ProjectID string

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

CreateEtcdBackupConfigParams contains all the parameters to send to the API endpoint

for the create etcd backup config operation.

Typically these are written to a http.Request.

func NewCreateEtcdBackupConfigParams

func NewCreateEtcdBackupConfigParams() *CreateEtcdBackupConfigParams

NewCreateEtcdBackupConfigParams creates a new CreateEtcdBackupConfigParams 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 NewCreateEtcdBackupConfigParamsWithContext

func NewCreateEtcdBackupConfigParamsWithContext(ctx context.Context) *CreateEtcdBackupConfigParams

NewCreateEtcdBackupConfigParamsWithContext creates a new CreateEtcdBackupConfigParams object with the ability to set a context for a request.

func NewCreateEtcdBackupConfigParamsWithHTTPClient

func NewCreateEtcdBackupConfigParamsWithHTTPClient(client *http.Client) *CreateEtcdBackupConfigParams

NewCreateEtcdBackupConfigParamsWithHTTPClient creates a new CreateEtcdBackupConfigParams object with the ability to set a custom HTTPClient for a request.

func NewCreateEtcdBackupConfigParamsWithTimeout

func NewCreateEtcdBackupConfigParamsWithTimeout(timeout time.Duration) *CreateEtcdBackupConfigParams

NewCreateEtcdBackupConfigParamsWithTimeout creates a new CreateEtcdBackupConfigParams object with the ability to set a timeout on a request.

func (*CreateEtcdBackupConfigParams) SetBody

func (o *CreateEtcdBackupConfigParams) SetBody(body *models.EbcBody)

SetBody adds the body to the create etcd backup config params

func (*CreateEtcdBackupConfigParams) SetClusterID

func (o *CreateEtcdBackupConfigParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the create etcd backup config params

func (*CreateEtcdBackupConfigParams) SetContext

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

SetContext adds the context to the create etcd backup config params

func (*CreateEtcdBackupConfigParams) SetDefaults

func (o *CreateEtcdBackupConfigParams) SetDefaults()

SetDefaults hydrates default values in the create etcd backup config params (not the query body).

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

func (*CreateEtcdBackupConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create etcd backup config params

func (*CreateEtcdBackupConfigParams) SetProjectID

func (o *CreateEtcdBackupConfigParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the create etcd backup config params

func (*CreateEtcdBackupConfigParams) SetTimeout

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

SetTimeout adds the timeout to the create etcd backup config params

func (*CreateEtcdBackupConfigParams) WithBody

WithBody adds the body to the create etcd backup config params

func (*CreateEtcdBackupConfigParams) WithClusterID

WithClusterID adds the clusterID to the create etcd backup config params

func (*CreateEtcdBackupConfigParams) WithContext

WithContext adds the context to the create etcd backup config params

func (*CreateEtcdBackupConfigParams) WithDefaults

WithDefaults hydrates default values in the create etcd backup config params (not the query body).

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

func (*CreateEtcdBackupConfigParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create etcd backup config params

func (*CreateEtcdBackupConfigParams) WithProjectID

WithProjectID adds the projectID to the create etcd backup config params

func (*CreateEtcdBackupConfigParams) WithTimeout

WithTimeout adds the timeout to the create etcd backup config params

func (*CreateEtcdBackupConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateEtcdBackupConfigReader

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

CreateEtcdBackupConfigReader is a Reader for the CreateEtcdBackupConfig structure.

func (*CreateEtcdBackupConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateEtcdBackupConfigUnauthorized

type CreateEtcdBackupConfigUnauthorized struct {
}
CreateEtcdBackupConfigUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewCreateEtcdBackupConfigUnauthorized

func NewCreateEtcdBackupConfigUnauthorized() *CreateEtcdBackupConfigUnauthorized

NewCreateEtcdBackupConfigUnauthorized creates a CreateEtcdBackupConfigUnauthorized with default headers values

func (*CreateEtcdBackupConfigUnauthorized) Error

type DeleteEtcdBackupConfigDefault

type DeleteEtcdBackupConfigDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
DeleteEtcdBackupConfigDefault describes a response with status code -1, with default header values.

errorResponse

func NewDeleteEtcdBackupConfigDefault

func NewDeleteEtcdBackupConfigDefault(code int) *DeleteEtcdBackupConfigDefault

NewDeleteEtcdBackupConfigDefault creates a DeleteEtcdBackupConfigDefault with default headers values

func (*DeleteEtcdBackupConfigDefault) Code

Code gets the status code for the delete etcd backup config default response

func (*DeleteEtcdBackupConfigDefault) Error

func (*DeleteEtcdBackupConfigDefault) GetPayload

type DeleteEtcdBackupConfigForbidden

type DeleteEtcdBackupConfigForbidden struct {
}
DeleteEtcdBackupConfigForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewDeleteEtcdBackupConfigForbidden

func NewDeleteEtcdBackupConfigForbidden() *DeleteEtcdBackupConfigForbidden

NewDeleteEtcdBackupConfigForbidden creates a DeleteEtcdBackupConfigForbidden with default headers values

func (*DeleteEtcdBackupConfigForbidden) Error

type DeleteEtcdBackupConfigOK

type DeleteEtcdBackupConfigOK struct {
}
DeleteEtcdBackupConfigOK describes a response with status code 200, with default header values.

EmptyResponse is a empty response

func NewDeleteEtcdBackupConfigOK

func NewDeleteEtcdBackupConfigOK() *DeleteEtcdBackupConfigOK

NewDeleteEtcdBackupConfigOK creates a DeleteEtcdBackupConfigOK with default headers values

func (*DeleteEtcdBackupConfigOK) Error

func (o *DeleteEtcdBackupConfigOK) Error() string

type DeleteEtcdBackupConfigParams

type DeleteEtcdBackupConfigParams struct {

	// ClusterID.
	ClusterID string

	// EbcID.
	EtcdBackupConfigID string

	// ProjectID.
	ProjectID string

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

DeleteEtcdBackupConfigParams contains all the parameters to send to the API endpoint

for the delete etcd backup config operation.

Typically these are written to a http.Request.

func NewDeleteEtcdBackupConfigParams

func NewDeleteEtcdBackupConfigParams() *DeleteEtcdBackupConfigParams

NewDeleteEtcdBackupConfigParams creates a new DeleteEtcdBackupConfigParams 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 NewDeleteEtcdBackupConfigParamsWithContext

func NewDeleteEtcdBackupConfigParamsWithContext(ctx context.Context) *DeleteEtcdBackupConfigParams

NewDeleteEtcdBackupConfigParamsWithContext creates a new DeleteEtcdBackupConfigParams object with the ability to set a context for a request.

func NewDeleteEtcdBackupConfigParamsWithHTTPClient

func NewDeleteEtcdBackupConfigParamsWithHTTPClient(client *http.Client) *DeleteEtcdBackupConfigParams

NewDeleteEtcdBackupConfigParamsWithHTTPClient creates a new DeleteEtcdBackupConfigParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteEtcdBackupConfigParamsWithTimeout

func NewDeleteEtcdBackupConfigParamsWithTimeout(timeout time.Duration) *DeleteEtcdBackupConfigParams

NewDeleteEtcdBackupConfigParamsWithTimeout creates a new DeleteEtcdBackupConfigParams object with the ability to set a timeout on a request.

func (*DeleteEtcdBackupConfigParams) SetClusterID

func (o *DeleteEtcdBackupConfigParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the delete etcd backup config params

func (*DeleteEtcdBackupConfigParams) SetContext

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

SetContext adds the context to the delete etcd backup config params

func (*DeleteEtcdBackupConfigParams) SetDefaults

func (o *DeleteEtcdBackupConfigParams) SetDefaults()

SetDefaults hydrates default values in the delete etcd backup config params (not the query body).

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

func (*DeleteEtcdBackupConfigParams) SetEtcdBackupConfigID

func (o *DeleteEtcdBackupConfigParams) SetEtcdBackupConfigID(ebcID string)

SetEtcdBackupConfigID adds the ebcId to the delete etcd backup config params

func (*DeleteEtcdBackupConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete etcd backup config params

func (*DeleteEtcdBackupConfigParams) SetProjectID

func (o *DeleteEtcdBackupConfigParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the delete etcd backup config params

func (*DeleteEtcdBackupConfigParams) SetTimeout

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

SetTimeout adds the timeout to the delete etcd backup config params

func (*DeleteEtcdBackupConfigParams) WithClusterID

WithClusterID adds the clusterID to the delete etcd backup config params

func (*DeleteEtcdBackupConfigParams) WithContext

WithContext adds the context to the delete etcd backup config params

func (*DeleteEtcdBackupConfigParams) WithDefaults

WithDefaults hydrates default values in the delete etcd backup config params (not the query body).

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

func (*DeleteEtcdBackupConfigParams) WithEtcdBackupConfigID

func (o *DeleteEtcdBackupConfigParams) WithEtcdBackupConfigID(ebcID string) *DeleteEtcdBackupConfigParams

WithEtcdBackupConfigID adds the ebcID to the delete etcd backup config params

func (*DeleteEtcdBackupConfigParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete etcd backup config params

func (*DeleteEtcdBackupConfigParams) WithProjectID

WithProjectID adds the projectID to the delete etcd backup config params

func (*DeleteEtcdBackupConfigParams) WithTimeout

WithTimeout adds the timeout to the delete etcd backup config params

func (*DeleteEtcdBackupConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteEtcdBackupConfigReader

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

DeleteEtcdBackupConfigReader is a Reader for the DeleteEtcdBackupConfig structure.

func (*DeleteEtcdBackupConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteEtcdBackupConfigUnauthorized

type DeleteEtcdBackupConfigUnauthorized struct {
}
DeleteEtcdBackupConfigUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewDeleteEtcdBackupConfigUnauthorized

func NewDeleteEtcdBackupConfigUnauthorized() *DeleteEtcdBackupConfigUnauthorized

NewDeleteEtcdBackupConfigUnauthorized creates a DeleteEtcdBackupConfigUnauthorized with default headers values

func (*DeleteEtcdBackupConfigUnauthorized) Error

type GetEtcdBackupConfigDefault

type GetEtcdBackupConfigDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
GetEtcdBackupConfigDefault describes a response with status code -1, with default header values.

errorResponse

func NewGetEtcdBackupConfigDefault

func NewGetEtcdBackupConfigDefault(code int) *GetEtcdBackupConfigDefault

NewGetEtcdBackupConfigDefault creates a GetEtcdBackupConfigDefault with default headers values

func (*GetEtcdBackupConfigDefault) Code

func (o *GetEtcdBackupConfigDefault) Code() int

Code gets the status code for the get etcd backup config default response

func (*GetEtcdBackupConfigDefault) Error

func (*GetEtcdBackupConfigDefault) GetPayload

type GetEtcdBackupConfigForbidden

type GetEtcdBackupConfigForbidden struct {
}
GetEtcdBackupConfigForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewGetEtcdBackupConfigForbidden

func NewGetEtcdBackupConfigForbidden() *GetEtcdBackupConfigForbidden

NewGetEtcdBackupConfigForbidden creates a GetEtcdBackupConfigForbidden with default headers values

func (*GetEtcdBackupConfigForbidden) Error

type GetEtcdBackupConfigOK

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

EtcdBackupConfig

func NewGetEtcdBackupConfigOK

func NewGetEtcdBackupConfigOK() *GetEtcdBackupConfigOK

NewGetEtcdBackupConfigOK creates a GetEtcdBackupConfigOK with default headers values

func (*GetEtcdBackupConfigOK) Error

func (o *GetEtcdBackupConfigOK) Error() string

func (*GetEtcdBackupConfigOK) GetPayload

type GetEtcdBackupConfigParams

type GetEtcdBackupConfigParams struct {

	// ClusterID.
	ClusterID string

	// EbcID.
	EtcdBackupConfigID string

	// ProjectID.
	ProjectID string

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

GetEtcdBackupConfigParams contains all the parameters to send to the API endpoint

for the get etcd backup config operation.

Typically these are written to a http.Request.

func NewGetEtcdBackupConfigParams

func NewGetEtcdBackupConfigParams() *GetEtcdBackupConfigParams

NewGetEtcdBackupConfigParams creates a new GetEtcdBackupConfigParams 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 NewGetEtcdBackupConfigParamsWithContext

func NewGetEtcdBackupConfigParamsWithContext(ctx context.Context) *GetEtcdBackupConfigParams

NewGetEtcdBackupConfigParamsWithContext creates a new GetEtcdBackupConfigParams object with the ability to set a context for a request.

func NewGetEtcdBackupConfigParamsWithHTTPClient

func NewGetEtcdBackupConfigParamsWithHTTPClient(client *http.Client) *GetEtcdBackupConfigParams

NewGetEtcdBackupConfigParamsWithHTTPClient creates a new GetEtcdBackupConfigParams object with the ability to set a custom HTTPClient for a request.

func NewGetEtcdBackupConfigParamsWithTimeout

func NewGetEtcdBackupConfigParamsWithTimeout(timeout time.Duration) *GetEtcdBackupConfigParams

NewGetEtcdBackupConfigParamsWithTimeout creates a new GetEtcdBackupConfigParams object with the ability to set a timeout on a request.

func (*GetEtcdBackupConfigParams) SetClusterID

func (o *GetEtcdBackupConfigParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get etcd backup config params

func (*GetEtcdBackupConfigParams) SetContext

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

SetContext adds the context to the get etcd backup config params

func (*GetEtcdBackupConfigParams) SetDefaults

func (o *GetEtcdBackupConfigParams) SetDefaults()

SetDefaults hydrates default values in the get etcd backup config params (not the query body).

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

func (*GetEtcdBackupConfigParams) SetEtcdBackupConfigID

func (o *GetEtcdBackupConfigParams) SetEtcdBackupConfigID(ebcID string)

SetEtcdBackupConfigID adds the ebcId to the get etcd backup config params

func (*GetEtcdBackupConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get etcd backup config params

func (*GetEtcdBackupConfigParams) SetProjectID

func (o *GetEtcdBackupConfigParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the get etcd backup config params

func (*GetEtcdBackupConfigParams) SetTimeout

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

SetTimeout adds the timeout to the get etcd backup config params

func (*GetEtcdBackupConfigParams) WithClusterID

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

WithClusterID adds the clusterID to the get etcd backup config params

func (*GetEtcdBackupConfigParams) WithContext

WithContext adds the context to the get etcd backup config params

func (*GetEtcdBackupConfigParams) WithDefaults

WithDefaults hydrates default values in the get etcd backup config params (not the query body).

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

func (*GetEtcdBackupConfigParams) WithEtcdBackupConfigID

func (o *GetEtcdBackupConfigParams) WithEtcdBackupConfigID(ebcID string) *GetEtcdBackupConfigParams

WithEtcdBackupConfigID adds the ebcID to the get etcd backup config params

func (*GetEtcdBackupConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get etcd backup config params

func (*GetEtcdBackupConfigParams) WithProjectID

func (o *GetEtcdBackupConfigParams) WithProjectID(projectID string) *GetEtcdBackupConfigParams

WithProjectID adds the projectID to the get etcd backup config params

func (*GetEtcdBackupConfigParams) WithTimeout

WithTimeout adds the timeout to the get etcd backup config params

func (*GetEtcdBackupConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetEtcdBackupConfigReader

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

GetEtcdBackupConfigReader is a Reader for the GetEtcdBackupConfig structure.

func (*GetEtcdBackupConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetEtcdBackupConfigUnauthorized

type GetEtcdBackupConfigUnauthorized struct {
}
GetEtcdBackupConfigUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewGetEtcdBackupConfigUnauthorized

func NewGetEtcdBackupConfigUnauthorized() *GetEtcdBackupConfigUnauthorized

NewGetEtcdBackupConfigUnauthorized creates a GetEtcdBackupConfigUnauthorized with default headers values

func (*GetEtcdBackupConfigUnauthorized) Error

type ListEtcdBackupConfigDefault

type ListEtcdBackupConfigDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
ListEtcdBackupConfigDefault describes a response with status code -1, with default header values.

errorResponse

func NewListEtcdBackupConfigDefault

func NewListEtcdBackupConfigDefault(code int) *ListEtcdBackupConfigDefault

NewListEtcdBackupConfigDefault creates a ListEtcdBackupConfigDefault with default headers values

func (*ListEtcdBackupConfigDefault) Code

func (o *ListEtcdBackupConfigDefault) Code() int

Code gets the status code for the list etcd backup config default response

func (*ListEtcdBackupConfigDefault) Error

func (*ListEtcdBackupConfigDefault) GetPayload

type ListEtcdBackupConfigForbidden

type ListEtcdBackupConfigForbidden struct {
}
ListEtcdBackupConfigForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewListEtcdBackupConfigForbidden

func NewListEtcdBackupConfigForbidden() *ListEtcdBackupConfigForbidden

NewListEtcdBackupConfigForbidden creates a ListEtcdBackupConfigForbidden with default headers values

func (*ListEtcdBackupConfigForbidden) Error

type ListEtcdBackupConfigOK

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

EtcdBackupConfig

func NewListEtcdBackupConfigOK

func NewListEtcdBackupConfigOK() *ListEtcdBackupConfigOK

NewListEtcdBackupConfigOK creates a ListEtcdBackupConfigOK with default headers values

func (*ListEtcdBackupConfigOK) Error

func (o *ListEtcdBackupConfigOK) Error() string

func (*ListEtcdBackupConfigOK) GetPayload

func (o *ListEtcdBackupConfigOK) GetPayload() []*models.EtcdBackupConfig

type ListEtcdBackupConfigParams

type ListEtcdBackupConfigParams struct {

	// ClusterID.
	ClusterID string

	// ProjectID.
	ProjectID string

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

ListEtcdBackupConfigParams contains all the parameters to send to the API endpoint

for the list etcd backup config operation.

Typically these are written to a http.Request.

func NewListEtcdBackupConfigParams

func NewListEtcdBackupConfigParams() *ListEtcdBackupConfigParams

NewListEtcdBackupConfigParams creates a new ListEtcdBackupConfigParams 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 NewListEtcdBackupConfigParamsWithContext

func NewListEtcdBackupConfigParamsWithContext(ctx context.Context) *ListEtcdBackupConfigParams

NewListEtcdBackupConfigParamsWithContext creates a new ListEtcdBackupConfigParams object with the ability to set a context for a request.

func NewListEtcdBackupConfigParamsWithHTTPClient

func NewListEtcdBackupConfigParamsWithHTTPClient(client *http.Client) *ListEtcdBackupConfigParams

NewListEtcdBackupConfigParamsWithHTTPClient creates a new ListEtcdBackupConfigParams object with the ability to set a custom HTTPClient for a request.

func NewListEtcdBackupConfigParamsWithTimeout

func NewListEtcdBackupConfigParamsWithTimeout(timeout time.Duration) *ListEtcdBackupConfigParams

NewListEtcdBackupConfigParamsWithTimeout creates a new ListEtcdBackupConfigParams object with the ability to set a timeout on a request.

func (*ListEtcdBackupConfigParams) SetClusterID

func (o *ListEtcdBackupConfigParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the list etcd backup config params

func (*ListEtcdBackupConfigParams) SetContext

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

SetContext adds the context to the list etcd backup config params

func (*ListEtcdBackupConfigParams) SetDefaults

func (o *ListEtcdBackupConfigParams) SetDefaults()

SetDefaults hydrates default values in the list etcd backup config params (not the query body).

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

func (*ListEtcdBackupConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list etcd backup config params

func (*ListEtcdBackupConfigParams) SetProjectID

func (o *ListEtcdBackupConfigParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list etcd backup config params

func (*ListEtcdBackupConfigParams) SetTimeout

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

SetTimeout adds the timeout to the list etcd backup config params

func (*ListEtcdBackupConfigParams) WithClusterID

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

WithClusterID adds the clusterID to the list etcd backup config params

func (*ListEtcdBackupConfigParams) WithContext

WithContext adds the context to the list etcd backup config params

func (*ListEtcdBackupConfigParams) WithDefaults

WithDefaults hydrates default values in the list etcd backup config params (not the query body).

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

func (*ListEtcdBackupConfigParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list etcd backup config params

func (*ListEtcdBackupConfigParams) WithProjectID

func (o *ListEtcdBackupConfigParams) WithProjectID(projectID string) *ListEtcdBackupConfigParams

WithProjectID adds the projectID to the list etcd backup config params

func (*ListEtcdBackupConfigParams) WithTimeout

WithTimeout adds the timeout to the list etcd backup config params

func (*ListEtcdBackupConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListEtcdBackupConfigReader

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

ListEtcdBackupConfigReader is a Reader for the ListEtcdBackupConfig structure.

func (*ListEtcdBackupConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListEtcdBackupConfigUnauthorized

type ListEtcdBackupConfigUnauthorized struct {
}
ListEtcdBackupConfigUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewListEtcdBackupConfigUnauthorized

func NewListEtcdBackupConfigUnauthorized() *ListEtcdBackupConfigUnauthorized

NewListEtcdBackupConfigUnauthorized creates a ListEtcdBackupConfigUnauthorized with default headers values

func (*ListEtcdBackupConfigUnauthorized) Error

type ListProjectEtcdBackupConfigDefault

type ListProjectEtcdBackupConfigDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
ListProjectEtcdBackupConfigDefault describes a response with status code -1, with default header values.

errorResponse

func NewListProjectEtcdBackupConfigDefault

func NewListProjectEtcdBackupConfigDefault(code int) *ListProjectEtcdBackupConfigDefault

NewListProjectEtcdBackupConfigDefault creates a ListProjectEtcdBackupConfigDefault with default headers values

func (*ListProjectEtcdBackupConfigDefault) Code

Code gets the status code for the list project etcd backup config default response

func (*ListProjectEtcdBackupConfigDefault) Error

func (*ListProjectEtcdBackupConfigDefault) GetPayload

type ListProjectEtcdBackupConfigForbidden

type ListProjectEtcdBackupConfigForbidden struct {
}
ListProjectEtcdBackupConfigForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewListProjectEtcdBackupConfigForbidden

func NewListProjectEtcdBackupConfigForbidden() *ListProjectEtcdBackupConfigForbidden

NewListProjectEtcdBackupConfigForbidden creates a ListProjectEtcdBackupConfigForbidden with default headers values

func (*ListProjectEtcdBackupConfigForbidden) Error

type ListProjectEtcdBackupConfigOK

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

EtcdBackupConfig

func NewListProjectEtcdBackupConfigOK

func NewListProjectEtcdBackupConfigOK() *ListProjectEtcdBackupConfigOK

NewListProjectEtcdBackupConfigOK creates a ListProjectEtcdBackupConfigOK with default headers values

func (*ListProjectEtcdBackupConfigOK) Error

func (*ListProjectEtcdBackupConfigOK) GetPayload

type ListProjectEtcdBackupConfigParams

type ListProjectEtcdBackupConfigParams struct {

	// ProjectID.
	ProjectID string

	// Type.
	Type *string

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

ListProjectEtcdBackupConfigParams contains all the parameters to send to the API endpoint

for the list project etcd backup config operation.

Typically these are written to a http.Request.

func NewListProjectEtcdBackupConfigParams

func NewListProjectEtcdBackupConfigParams() *ListProjectEtcdBackupConfigParams

NewListProjectEtcdBackupConfigParams creates a new ListProjectEtcdBackupConfigParams 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 NewListProjectEtcdBackupConfigParamsWithContext

func NewListProjectEtcdBackupConfigParamsWithContext(ctx context.Context) *ListProjectEtcdBackupConfigParams

NewListProjectEtcdBackupConfigParamsWithContext creates a new ListProjectEtcdBackupConfigParams object with the ability to set a context for a request.

func NewListProjectEtcdBackupConfigParamsWithHTTPClient

func NewListProjectEtcdBackupConfigParamsWithHTTPClient(client *http.Client) *ListProjectEtcdBackupConfigParams

NewListProjectEtcdBackupConfigParamsWithHTTPClient creates a new ListProjectEtcdBackupConfigParams object with the ability to set a custom HTTPClient for a request.

func NewListProjectEtcdBackupConfigParamsWithTimeout

func NewListProjectEtcdBackupConfigParamsWithTimeout(timeout time.Duration) *ListProjectEtcdBackupConfigParams

NewListProjectEtcdBackupConfigParamsWithTimeout creates a new ListProjectEtcdBackupConfigParams object with the ability to set a timeout on a request.

func (*ListProjectEtcdBackupConfigParams) SetContext

SetContext adds the context to the list project etcd backup config params

func (*ListProjectEtcdBackupConfigParams) SetDefaults

func (o *ListProjectEtcdBackupConfigParams) SetDefaults()

SetDefaults hydrates default values in the list project etcd backup config params (not the query body).

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

func (*ListProjectEtcdBackupConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list project etcd backup config params

func (*ListProjectEtcdBackupConfigParams) SetProjectID

func (o *ListProjectEtcdBackupConfigParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list project etcd backup config params

func (*ListProjectEtcdBackupConfigParams) SetTimeout

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

SetTimeout adds the timeout to the list project etcd backup config params

func (*ListProjectEtcdBackupConfigParams) SetType

func (o *ListProjectEtcdBackupConfigParams) SetType(typeVar *string)

SetType adds the type to the list project etcd backup config params

func (*ListProjectEtcdBackupConfigParams) WithContext

WithContext adds the context to the list project etcd backup config params

func (*ListProjectEtcdBackupConfigParams) WithDefaults

WithDefaults hydrates default values in the list project etcd backup config params (not the query body).

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

func (*ListProjectEtcdBackupConfigParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list project etcd backup config params

func (*ListProjectEtcdBackupConfigParams) WithProjectID

WithProjectID adds the projectID to the list project etcd backup config params

func (*ListProjectEtcdBackupConfigParams) WithTimeout

WithTimeout adds the timeout to the list project etcd backup config params

func (*ListProjectEtcdBackupConfigParams) WithType

WithType adds the typeVar to the list project etcd backup config params

func (*ListProjectEtcdBackupConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListProjectEtcdBackupConfigReader

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

ListProjectEtcdBackupConfigReader is a Reader for the ListProjectEtcdBackupConfig structure.

func (*ListProjectEtcdBackupConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListProjectEtcdBackupConfigUnauthorized

type ListProjectEtcdBackupConfigUnauthorized struct {
}
ListProjectEtcdBackupConfigUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewListProjectEtcdBackupConfigUnauthorized

func NewListProjectEtcdBackupConfigUnauthorized() *ListProjectEtcdBackupConfigUnauthorized

NewListProjectEtcdBackupConfigUnauthorized creates a ListProjectEtcdBackupConfigUnauthorized with default headers values

func (*ListProjectEtcdBackupConfigUnauthorized) Error

type PatchEtcdBackupConfigDefault

type PatchEtcdBackupConfigDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
PatchEtcdBackupConfigDefault describes a response with status code -1, with default header values.

errorResponse

func NewPatchEtcdBackupConfigDefault

func NewPatchEtcdBackupConfigDefault(code int) *PatchEtcdBackupConfigDefault

NewPatchEtcdBackupConfigDefault creates a PatchEtcdBackupConfigDefault with default headers values

func (*PatchEtcdBackupConfigDefault) Code

Code gets the status code for the patch etcd backup config default response

func (*PatchEtcdBackupConfigDefault) Error

func (*PatchEtcdBackupConfigDefault) GetPayload

type PatchEtcdBackupConfigForbidden

type PatchEtcdBackupConfigForbidden struct {
}
PatchEtcdBackupConfigForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewPatchEtcdBackupConfigForbidden

func NewPatchEtcdBackupConfigForbidden() *PatchEtcdBackupConfigForbidden

NewPatchEtcdBackupConfigForbidden creates a PatchEtcdBackupConfigForbidden with default headers values

func (*PatchEtcdBackupConfigForbidden) Error

type PatchEtcdBackupConfigOK

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

EtcdBackupConfig

func NewPatchEtcdBackupConfigOK

func NewPatchEtcdBackupConfigOK() *PatchEtcdBackupConfigOK

NewPatchEtcdBackupConfigOK creates a PatchEtcdBackupConfigOK with default headers values

func (*PatchEtcdBackupConfigOK) Error

func (o *PatchEtcdBackupConfigOK) Error() string

func (*PatchEtcdBackupConfigOK) GetPayload

type PatchEtcdBackupConfigParams

type PatchEtcdBackupConfigParams struct {

	// Body.
	Body *models.EtcdBackupConfigSpec

	// ClusterID.
	ClusterID string

	// EbcID.
	EtcdBackupConfigID string

	// ProjectID.
	ProjectID string

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

PatchEtcdBackupConfigParams contains all the parameters to send to the API endpoint

for the patch etcd backup config operation.

Typically these are written to a http.Request.

func NewPatchEtcdBackupConfigParams

func NewPatchEtcdBackupConfigParams() *PatchEtcdBackupConfigParams

NewPatchEtcdBackupConfigParams creates a new PatchEtcdBackupConfigParams 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 NewPatchEtcdBackupConfigParamsWithContext

func NewPatchEtcdBackupConfigParamsWithContext(ctx context.Context) *PatchEtcdBackupConfigParams

NewPatchEtcdBackupConfigParamsWithContext creates a new PatchEtcdBackupConfigParams object with the ability to set a context for a request.

func NewPatchEtcdBackupConfigParamsWithHTTPClient

func NewPatchEtcdBackupConfigParamsWithHTTPClient(client *http.Client) *PatchEtcdBackupConfigParams

NewPatchEtcdBackupConfigParamsWithHTTPClient creates a new PatchEtcdBackupConfigParams object with the ability to set a custom HTTPClient for a request.

func NewPatchEtcdBackupConfigParamsWithTimeout

func NewPatchEtcdBackupConfigParamsWithTimeout(timeout time.Duration) *PatchEtcdBackupConfigParams

NewPatchEtcdBackupConfigParamsWithTimeout creates a new PatchEtcdBackupConfigParams object with the ability to set a timeout on a request.

func (*PatchEtcdBackupConfigParams) SetBody

SetBody adds the body to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) SetClusterID

func (o *PatchEtcdBackupConfigParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) SetContext

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

SetContext adds the context to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) SetDefaults

func (o *PatchEtcdBackupConfigParams) SetDefaults()

SetDefaults hydrates default values in the patch etcd backup config params (not the query body).

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

func (*PatchEtcdBackupConfigParams) SetEtcdBackupConfigID

func (o *PatchEtcdBackupConfigParams) SetEtcdBackupConfigID(ebcID string)

SetEtcdBackupConfigID adds the ebcId to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) SetProjectID

func (o *PatchEtcdBackupConfigParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) SetTimeout

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

SetTimeout adds the timeout to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) WithBody

WithBody adds the body to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) WithClusterID

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

WithClusterID adds the clusterID to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) WithContext

WithContext adds the context to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) WithDefaults

WithDefaults hydrates default values in the patch etcd backup config params (not the query body).

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

func (*PatchEtcdBackupConfigParams) WithEtcdBackupConfigID

func (o *PatchEtcdBackupConfigParams) WithEtcdBackupConfigID(ebcID string) *PatchEtcdBackupConfigParams

WithEtcdBackupConfigID adds the ebcID to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) WithProjectID

func (o *PatchEtcdBackupConfigParams) WithProjectID(projectID string) *PatchEtcdBackupConfigParams

WithProjectID adds the projectID to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) WithTimeout

WithTimeout adds the timeout to the patch etcd backup config params

func (*PatchEtcdBackupConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchEtcdBackupConfigReader

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

PatchEtcdBackupConfigReader is a Reader for the PatchEtcdBackupConfig structure.

func (*PatchEtcdBackupConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchEtcdBackupConfigUnauthorized

type PatchEtcdBackupConfigUnauthorized struct {
}
PatchEtcdBackupConfigUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewPatchEtcdBackupConfigUnauthorized

func NewPatchEtcdBackupConfigUnauthorized() *PatchEtcdBackupConfigUnauthorized

NewPatchEtcdBackupConfigUnauthorized creates a PatchEtcdBackupConfigUnauthorized with default headers values

func (*PatchEtcdBackupConfigUnauthorized) Error

Jump to

Keyboard shortcuts

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