etcdrestore

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 etcdrestore API

func (*Client) CreateEtcdRestore

func (a *Client) CreateEtcdRestore(params *CreateEtcdRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateEtcdRestoreCreated, error)

CreateEtcdRestore Creates a etcd backup restore for a given cluster

func (*Client) DeleteEtcdRestore

func (a *Client) DeleteEtcdRestore(params *DeleteEtcdRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteEtcdRestoreOK, error)

DeleteEtcdRestore Deletes a etcd restore config for a given cluster based on its name

func (*Client) GetEtcdRestore

func (a *Client) GetEtcdRestore(params *GetEtcdRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEtcdRestoreOK, error)

GetEtcdRestore Gets a etcd backup restore for a given cluster based on its name

func (*Client) ListEtcdRestore

func (a *Client) ListEtcdRestore(params *ListEtcdRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListEtcdRestoreOK, error)

ListEtcdRestore List etcd backup restores for a given cluster

func (*Client) ListProjectEtcdRestore

func (a *Client) ListProjectEtcdRestore(params *ListProjectEtcdRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProjectEtcdRestoreOK, error)

ListProjectEtcdRestore List etcd backup restores for a given project

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 {
	CreateEtcdRestore(params *CreateEtcdRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateEtcdRestoreCreated, error)

	DeleteEtcdRestore(params *DeleteEtcdRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteEtcdRestoreOK, error)

	GetEtcdRestore(params *GetEtcdRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEtcdRestoreOK, error)

	ListEtcdRestore(params *ListEtcdRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListEtcdRestoreOK, error)

	ListProjectEtcdRestore(params *ListProjectEtcdRestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProjectEtcdRestoreOK, 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 etcdrestore API client.

type CreateEtcdRestoreCreated

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

EtcdBackupConfig

func NewCreateEtcdRestoreCreated

func NewCreateEtcdRestoreCreated() *CreateEtcdRestoreCreated

NewCreateEtcdRestoreCreated creates a CreateEtcdRestoreCreated with default headers values

func (*CreateEtcdRestoreCreated) Error

func (o *CreateEtcdRestoreCreated) Error() string

func (*CreateEtcdRestoreCreated) GetPayload

type CreateEtcdRestoreDefault

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

errorResponse

func NewCreateEtcdRestoreDefault

func NewCreateEtcdRestoreDefault(code int) *CreateEtcdRestoreDefault

NewCreateEtcdRestoreDefault creates a CreateEtcdRestoreDefault with default headers values

func (*CreateEtcdRestoreDefault) Code

func (o *CreateEtcdRestoreDefault) Code() int

Code gets the status code for the create etcd restore default response

func (*CreateEtcdRestoreDefault) Error

func (o *CreateEtcdRestoreDefault) Error() string

func (*CreateEtcdRestoreDefault) GetPayload

type CreateEtcdRestoreForbidden

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

EmptyResponse is a empty response

func NewCreateEtcdRestoreForbidden

func NewCreateEtcdRestoreForbidden() *CreateEtcdRestoreForbidden

NewCreateEtcdRestoreForbidden creates a CreateEtcdRestoreForbidden with default headers values

func (*CreateEtcdRestoreForbidden) Error

type CreateEtcdRestoreParams

type CreateEtcdRestoreParams struct {

	// Body.
	Body *models.ErBody

	// ClusterID.
	ClusterID string

	// ProjectID.
	ProjectID string

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

CreateEtcdRestoreParams contains all the parameters to send to the API endpoint

for the create etcd restore operation.

Typically these are written to a http.Request.

func NewCreateEtcdRestoreParams

func NewCreateEtcdRestoreParams() *CreateEtcdRestoreParams

NewCreateEtcdRestoreParams creates a new CreateEtcdRestoreParams 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 NewCreateEtcdRestoreParamsWithContext

func NewCreateEtcdRestoreParamsWithContext(ctx context.Context) *CreateEtcdRestoreParams

NewCreateEtcdRestoreParamsWithContext creates a new CreateEtcdRestoreParams object with the ability to set a context for a request.

func NewCreateEtcdRestoreParamsWithHTTPClient

func NewCreateEtcdRestoreParamsWithHTTPClient(client *http.Client) *CreateEtcdRestoreParams

NewCreateEtcdRestoreParamsWithHTTPClient creates a new CreateEtcdRestoreParams object with the ability to set a custom HTTPClient for a request.

func NewCreateEtcdRestoreParamsWithTimeout

func NewCreateEtcdRestoreParamsWithTimeout(timeout time.Duration) *CreateEtcdRestoreParams

NewCreateEtcdRestoreParamsWithTimeout creates a new CreateEtcdRestoreParams object with the ability to set a timeout on a request.

func (*CreateEtcdRestoreParams) SetBody

func (o *CreateEtcdRestoreParams) SetBody(body *models.ErBody)

SetBody adds the body to the create etcd restore params

func (*CreateEtcdRestoreParams) SetClusterID

func (o *CreateEtcdRestoreParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the create etcd restore params

func (*CreateEtcdRestoreParams) SetContext

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

SetContext adds the context to the create etcd restore params

func (*CreateEtcdRestoreParams) SetDefaults

func (o *CreateEtcdRestoreParams) SetDefaults()

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

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

func (*CreateEtcdRestoreParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create etcd restore params

func (*CreateEtcdRestoreParams) SetProjectID

func (o *CreateEtcdRestoreParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the create etcd restore params

func (*CreateEtcdRestoreParams) SetTimeout

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

SetTimeout adds the timeout to the create etcd restore params

func (*CreateEtcdRestoreParams) WithBody

WithBody adds the body to the create etcd restore params

func (*CreateEtcdRestoreParams) WithClusterID

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

WithClusterID adds the clusterID to the create etcd restore params

func (*CreateEtcdRestoreParams) WithContext

WithContext adds the context to the create etcd restore params

func (*CreateEtcdRestoreParams) WithDefaults

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

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

func (*CreateEtcdRestoreParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create etcd restore params

func (*CreateEtcdRestoreParams) WithProjectID

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

WithProjectID adds the projectID to the create etcd restore params

func (*CreateEtcdRestoreParams) WithTimeout

WithTimeout adds the timeout to the create etcd restore params

func (*CreateEtcdRestoreParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateEtcdRestoreReader

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

CreateEtcdRestoreReader is a Reader for the CreateEtcdRestore structure.

func (*CreateEtcdRestoreReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateEtcdRestoreUnauthorized

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

EmptyResponse is a empty response

func NewCreateEtcdRestoreUnauthorized

func NewCreateEtcdRestoreUnauthorized() *CreateEtcdRestoreUnauthorized

NewCreateEtcdRestoreUnauthorized creates a CreateEtcdRestoreUnauthorized with default headers values

func (*CreateEtcdRestoreUnauthorized) Error

type DeleteEtcdRestoreConflict

type DeleteEtcdRestoreConflict struct {
	Payload *models.ErrorResponse
}
DeleteEtcdRestoreConflict describes a response with status code 409, with default header values.

errorResponse

func NewDeleteEtcdRestoreConflict

func NewDeleteEtcdRestoreConflict() *DeleteEtcdRestoreConflict

NewDeleteEtcdRestoreConflict creates a DeleteEtcdRestoreConflict with default headers values

func (*DeleteEtcdRestoreConflict) Error

func (o *DeleteEtcdRestoreConflict) Error() string

func (*DeleteEtcdRestoreConflict) GetPayload

type DeleteEtcdRestoreDefault

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

errorResponse

func NewDeleteEtcdRestoreDefault

func NewDeleteEtcdRestoreDefault(code int) *DeleteEtcdRestoreDefault

NewDeleteEtcdRestoreDefault creates a DeleteEtcdRestoreDefault with default headers values

func (*DeleteEtcdRestoreDefault) Code

func (o *DeleteEtcdRestoreDefault) Code() int

Code gets the status code for the delete etcd restore default response

func (*DeleteEtcdRestoreDefault) Error

func (o *DeleteEtcdRestoreDefault) Error() string

func (*DeleteEtcdRestoreDefault) GetPayload

type DeleteEtcdRestoreForbidden

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

EmptyResponse is a empty response

func NewDeleteEtcdRestoreForbidden

func NewDeleteEtcdRestoreForbidden() *DeleteEtcdRestoreForbidden

NewDeleteEtcdRestoreForbidden creates a DeleteEtcdRestoreForbidden with default headers values

func (*DeleteEtcdRestoreForbidden) Error

type DeleteEtcdRestoreOK

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

EmptyResponse is a empty response

func NewDeleteEtcdRestoreOK

func NewDeleteEtcdRestoreOK() *DeleteEtcdRestoreOK

NewDeleteEtcdRestoreOK creates a DeleteEtcdRestoreOK with default headers values

func (*DeleteEtcdRestoreOK) Error

func (o *DeleteEtcdRestoreOK) Error() string

type DeleteEtcdRestoreParams

type DeleteEtcdRestoreParams struct {

	// ClusterID.
	ClusterID string

	// ErName.
	EtcdRestoreName string

	// ProjectID.
	ProjectID string

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

DeleteEtcdRestoreParams contains all the parameters to send to the API endpoint

for the delete etcd restore operation.

Typically these are written to a http.Request.

func NewDeleteEtcdRestoreParams

func NewDeleteEtcdRestoreParams() *DeleteEtcdRestoreParams

NewDeleteEtcdRestoreParams creates a new DeleteEtcdRestoreParams 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 NewDeleteEtcdRestoreParamsWithContext

func NewDeleteEtcdRestoreParamsWithContext(ctx context.Context) *DeleteEtcdRestoreParams

NewDeleteEtcdRestoreParamsWithContext creates a new DeleteEtcdRestoreParams object with the ability to set a context for a request.

func NewDeleteEtcdRestoreParamsWithHTTPClient

func NewDeleteEtcdRestoreParamsWithHTTPClient(client *http.Client) *DeleteEtcdRestoreParams

NewDeleteEtcdRestoreParamsWithHTTPClient creates a new DeleteEtcdRestoreParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteEtcdRestoreParamsWithTimeout

func NewDeleteEtcdRestoreParamsWithTimeout(timeout time.Duration) *DeleteEtcdRestoreParams

NewDeleteEtcdRestoreParamsWithTimeout creates a new DeleteEtcdRestoreParams object with the ability to set a timeout on a request.

func (*DeleteEtcdRestoreParams) SetClusterID

func (o *DeleteEtcdRestoreParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the delete etcd restore params

func (*DeleteEtcdRestoreParams) SetContext

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

SetContext adds the context to the delete etcd restore params

func (*DeleteEtcdRestoreParams) SetDefaults

func (o *DeleteEtcdRestoreParams) SetDefaults()

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

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

func (*DeleteEtcdRestoreParams) SetEtcdRestoreName

func (o *DeleteEtcdRestoreParams) SetEtcdRestoreName(erName string)

SetEtcdRestoreName adds the erName to the delete etcd restore params

func (*DeleteEtcdRestoreParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete etcd restore params

func (*DeleteEtcdRestoreParams) SetProjectID

func (o *DeleteEtcdRestoreParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the delete etcd restore params

func (*DeleteEtcdRestoreParams) SetTimeout

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

SetTimeout adds the timeout to the delete etcd restore params

func (*DeleteEtcdRestoreParams) WithClusterID

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

WithClusterID adds the clusterID to the delete etcd restore params

func (*DeleteEtcdRestoreParams) WithContext

WithContext adds the context to the delete etcd restore params

func (*DeleteEtcdRestoreParams) WithDefaults

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

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

func (*DeleteEtcdRestoreParams) WithEtcdRestoreName

func (o *DeleteEtcdRestoreParams) WithEtcdRestoreName(erName string) *DeleteEtcdRestoreParams

WithEtcdRestoreName adds the erName to the delete etcd restore params

func (*DeleteEtcdRestoreParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete etcd restore params

func (*DeleteEtcdRestoreParams) WithProjectID

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

WithProjectID adds the projectID to the delete etcd restore params

func (*DeleteEtcdRestoreParams) WithTimeout

WithTimeout adds the timeout to the delete etcd restore params

func (*DeleteEtcdRestoreParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteEtcdRestoreReader

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

DeleteEtcdRestoreReader is a Reader for the DeleteEtcdRestore structure.

func (*DeleteEtcdRestoreReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteEtcdRestoreUnauthorized

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

EmptyResponse is a empty response

func NewDeleteEtcdRestoreUnauthorized

func NewDeleteEtcdRestoreUnauthorized() *DeleteEtcdRestoreUnauthorized

NewDeleteEtcdRestoreUnauthorized creates a DeleteEtcdRestoreUnauthorized with default headers values

func (*DeleteEtcdRestoreUnauthorized) Error

type GetEtcdRestoreDefault

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

errorResponse

func NewGetEtcdRestoreDefault

func NewGetEtcdRestoreDefault(code int) *GetEtcdRestoreDefault

NewGetEtcdRestoreDefault creates a GetEtcdRestoreDefault with default headers values

func (*GetEtcdRestoreDefault) Code

func (o *GetEtcdRestoreDefault) Code() int

Code gets the status code for the get etcd restore default response

func (*GetEtcdRestoreDefault) Error

func (o *GetEtcdRestoreDefault) Error() string

func (*GetEtcdRestoreDefault) GetPayload

func (o *GetEtcdRestoreDefault) GetPayload() *models.ErrorResponse

type GetEtcdRestoreForbidden

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

EmptyResponse is a empty response

func NewGetEtcdRestoreForbidden

func NewGetEtcdRestoreForbidden() *GetEtcdRestoreForbidden

NewGetEtcdRestoreForbidden creates a GetEtcdRestoreForbidden with default headers values

func (*GetEtcdRestoreForbidden) Error

func (o *GetEtcdRestoreForbidden) Error() string

type GetEtcdRestoreOK

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

EtcdRestore

func NewGetEtcdRestoreOK

func NewGetEtcdRestoreOK() *GetEtcdRestoreOK

NewGetEtcdRestoreOK creates a GetEtcdRestoreOK with default headers values

func (*GetEtcdRestoreOK) Error

func (o *GetEtcdRestoreOK) Error() string

func (*GetEtcdRestoreOK) GetPayload

func (o *GetEtcdRestoreOK) GetPayload() *models.EtcdRestore

type GetEtcdRestoreParams

type GetEtcdRestoreParams struct {

	// ClusterID.
	ClusterID string

	// ErName.
	EtcdRestoreName string

	// ProjectID.
	ProjectID string

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

GetEtcdRestoreParams contains all the parameters to send to the API endpoint

for the get etcd restore operation.

Typically these are written to a http.Request.

func NewGetEtcdRestoreParams

func NewGetEtcdRestoreParams() *GetEtcdRestoreParams

NewGetEtcdRestoreParams creates a new GetEtcdRestoreParams 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 NewGetEtcdRestoreParamsWithContext

func NewGetEtcdRestoreParamsWithContext(ctx context.Context) *GetEtcdRestoreParams

NewGetEtcdRestoreParamsWithContext creates a new GetEtcdRestoreParams object with the ability to set a context for a request.

func NewGetEtcdRestoreParamsWithHTTPClient

func NewGetEtcdRestoreParamsWithHTTPClient(client *http.Client) *GetEtcdRestoreParams

NewGetEtcdRestoreParamsWithHTTPClient creates a new GetEtcdRestoreParams object with the ability to set a custom HTTPClient for a request.

func NewGetEtcdRestoreParamsWithTimeout

func NewGetEtcdRestoreParamsWithTimeout(timeout time.Duration) *GetEtcdRestoreParams

NewGetEtcdRestoreParamsWithTimeout creates a new GetEtcdRestoreParams object with the ability to set a timeout on a request.

func (*GetEtcdRestoreParams) SetClusterID

func (o *GetEtcdRestoreParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get etcd restore params

func (*GetEtcdRestoreParams) SetContext

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

SetContext adds the context to the get etcd restore params

func (*GetEtcdRestoreParams) SetDefaults

func (o *GetEtcdRestoreParams) SetDefaults()

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

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

func (*GetEtcdRestoreParams) SetEtcdRestoreName

func (o *GetEtcdRestoreParams) SetEtcdRestoreName(erName string)

SetEtcdRestoreName adds the erName to the get etcd restore params

func (*GetEtcdRestoreParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get etcd restore params

func (*GetEtcdRestoreParams) SetProjectID

func (o *GetEtcdRestoreParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the get etcd restore params

func (*GetEtcdRestoreParams) SetTimeout

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

SetTimeout adds the timeout to the get etcd restore params

func (*GetEtcdRestoreParams) WithClusterID

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

WithClusterID adds the clusterID to the get etcd restore params

func (*GetEtcdRestoreParams) WithContext

WithContext adds the context to the get etcd restore params

func (*GetEtcdRestoreParams) WithDefaults

func (o *GetEtcdRestoreParams) WithDefaults() *GetEtcdRestoreParams

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

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

func (*GetEtcdRestoreParams) WithEtcdRestoreName

func (o *GetEtcdRestoreParams) WithEtcdRestoreName(erName string) *GetEtcdRestoreParams

WithEtcdRestoreName adds the erName to the get etcd restore params

func (*GetEtcdRestoreParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get etcd restore params

func (*GetEtcdRestoreParams) WithProjectID

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

WithProjectID adds the projectID to the get etcd restore params

func (*GetEtcdRestoreParams) WithTimeout

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

WithTimeout adds the timeout to the get etcd restore params

func (*GetEtcdRestoreParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetEtcdRestoreReader

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

GetEtcdRestoreReader is a Reader for the GetEtcdRestore structure.

func (*GetEtcdRestoreReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetEtcdRestoreUnauthorized

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

EmptyResponse is a empty response

func NewGetEtcdRestoreUnauthorized

func NewGetEtcdRestoreUnauthorized() *GetEtcdRestoreUnauthorized

NewGetEtcdRestoreUnauthorized creates a GetEtcdRestoreUnauthorized with default headers values

func (*GetEtcdRestoreUnauthorized) Error

type ListEtcdRestoreDefault

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

errorResponse

func NewListEtcdRestoreDefault

func NewListEtcdRestoreDefault(code int) *ListEtcdRestoreDefault

NewListEtcdRestoreDefault creates a ListEtcdRestoreDefault with default headers values

func (*ListEtcdRestoreDefault) Code

func (o *ListEtcdRestoreDefault) Code() int

Code gets the status code for the list etcd restore default response

func (*ListEtcdRestoreDefault) Error

func (o *ListEtcdRestoreDefault) Error() string

func (*ListEtcdRestoreDefault) GetPayload

func (o *ListEtcdRestoreDefault) GetPayload() *models.ErrorResponse

type ListEtcdRestoreForbidden

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

EmptyResponse is a empty response

func NewListEtcdRestoreForbidden

func NewListEtcdRestoreForbidden() *ListEtcdRestoreForbidden

NewListEtcdRestoreForbidden creates a ListEtcdRestoreForbidden with default headers values

func (*ListEtcdRestoreForbidden) Error

func (o *ListEtcdRestoreForbidden) Error() string

type ListEtcdRestoreOK

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

EtcdRestore

func NewListEtcdRestoreOK

func NewListEtcdRestoreOK() *ListEtcdRestoreOK

NewListEtcdRestoreOK creates a ListEtcdRestoreOK with default headers values

func (*ListEtcdRestoreOK) Error

func (o *ListEtcdRestoreOK) Error() string

func (*ListEtcdRestoreOK) GetPayload

func (o *ListEtcdRestoreOK) GetPayload() []*models.EtcdRestore

type ListEtcdRestoreParams

type ListEtcdRestoreParams struct {

	// ClusterID.
	ClusterID string

	// ProjectID.
	ProjectID string

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

ListEtcdRestoreParams contains all the parameters to send to the API endpoint

for the list etcd restore operation.

Typically these are written to a http.Request.

func NewListEtcdRestoreParams

func NewListEtcdRestoreParams() *ListEtcdRestoreParams

NewListEtcdRestoreParams creates a new ListEtcdRestoreParams 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 NewListEtcdRestoreParamsWithContext

func NewListEtcdRestoreParamsWithContext(ctx context.Context) *ListEtcdRestoreParams

NewListEtcdRestoreParamsWithContext creates a new ListEtcdRestoreParams object with the ability to set a context for a request.

func NewListEtcdRestoreParamsWithHTTPClient

func NewListEtcdRestoreParamsWithHTTPClient(client *http.Client) *ListEtcdRestoreParams

NewListEtcdRestoreParamsWithHTTPClient creates a new ListEtcdRestoreParams object with the ability to set a custom HTTPClient for a request.

func NewListEtcdRestoreParamsWithTimeout

func NewListEtcdRestoreParamsWithTimeout(timeout time.Duration) *ListEtcdRestoreParams

NewListEtcdRestoreParamsWithTimeout creates a new ListEtcdRestoreParams object with the ability to set a timeout on a request.

func (*ListEtcdRestoreParams) SetClusterID

func (o *ListEtcdRestoreParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the list etcd restore params

func (*ListEtcdRestoreParams) SetContext

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

SetContext adds the context to the list etcd restore params

func (*ListEtcdRestoreParams) SetDefaults

func (o *ListEtcdRestoreParams) SetDefaults()

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

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

func (*ListEtcdRestoreParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list etcd restore params

func (*ListEtcdRestoreParams) SetProjectID

func (o *ListEtcdRestoreParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list etcd restore params

func (*ListEtcdRestoreParams) SetTimeout

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

SetTimeout adds the timeout to the list etcd restore params

func (*ListEtcdRestoreParams) WithClusterID

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

WithClusterID adds the clusterID to the list etcd restore params

func (*ListEtcdRestoreParams) WithContext

WithContext adds the context to the list etcd restore params

func (*ListEtcdRestoreParams) WithDefaults

func (o *ListEtcdRestoreParams) WithDefaults() *ListEtcdRestoreParams

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

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

func (*ListEtcdRestoreParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list etcd restore params

func (*ListEtcdRestoreParams) WithProjectID

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

WithProjectID adds the projectID to the list etcd restore params

func (*ListEtcdRestoreParams) WithTimeout

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

WithTimeout adds the timeout to the list etcd restore params

func (*ListEtcdRestoreParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListEtcdRestoreReader

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

ListEtcdRestoreReader is a Reader for the ListEtcdRestore structure.

func (*ListEtcdRestoreReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListEtcdRestoreUnauthorized

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

EmptyResponse is a empty response

func NewListEtcdRestoreUnauthorized

func NewListEtcdRestoreUnauthorized() *ListEtcdRestoreUnauthorized

NewListEtcdRestoreUnauthorized creates a ListEtcdRestoreUnauthorized with default headers values

func (*ListEtcdRestoreUnauthorized) Error

type ListProjectEtcdRestoreDefault

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

errorResponse

func NewListProjectEtcdRestoreDefault

func NewListProjectEtcdRestoreDefault(code int) *ListProjectEtcdRestoreDefault

NewListProjectEtcdRestoreDefault creates a ListProjectEtcdRestoreDefault with default headers values

func (*ListProjectEtcdRestoreDefault) Code

Code gets the status code for the list project etcd restore default response

func (*ListProjectEtcdRestoreDefault) Error

func (*ListProjectEtcdRestoreDefault) GetPayload

type ListProjectEtcdRestoreForbidden

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

EmptyResponse is a empty response

func NewListProjectEtcdRestoreForbidden

func NewListProjectEtcdRestoreForbidden() *ListProjectEtcdRestoreForbidden

NewListProjectEtcdRestoreForbidden creates a ListProjectEtcdRestoreForbidden with default headers values

func (*ListProjectEtcdRestoreForbidden) Error

type ListProjectEtcdRestoreOK

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

EtcdRestore

func NewListProjectEtcdRestoreOK

func NewListProjectEtcdRestoreOK() *ListProjectEtcdRestoreOK

NewListProjectEtcdRestoreOK creates a ListProjectEtcdRestoreOK with default headers values

func (*ListProjectEtcdRestoreOK) Error

func (o *ListProjectEtcdRestoreOK) Error() string

func (*ListProjectEtcdRestoreOK) GetPayload

func (o *ListProjectEtcdRestoreOK) GetPayload() []*models.EtcdRestore

type ListProjectEtcdRestoreParams

type ListProjectEtcdRestoreParams struct {

	// ProjectID.
	ProjectID string

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

ListProjectEtcdRestoreParams contains all the parameters to send to the API endpoint

for the list project etcd restore operation.

Typically these are written to a http.Request.

func NewListProjectEtcdRestoreParams

func NewListProjectEtcdRestoreParams() *ListProjectEtcdRestoreParams

NewListProjectEtcdRestoreParams creates a new ListProjectEtcdRestoreParams 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 NewListProjectEtcdRestoreParamsWithContext

func NewListProjectEtcdRestoreParamsWithContext(ctx context.Context) *ListProjectEtcdRestoreParams

NewListProjectEtcdRestoreParamsWithContext creates a new ListProjectEtcdRestoreParams object with the ability to set a context for a request.

func NewListProjectEtcdRestoreParamsWithHTTPClient

func NewListProjectEtcdRestoreParamsWithHTTPClient(client *http.Client) *ListProjectEtcdRestoreParams

NewListProjectEtcdRestoreParamsWithHTTPClient creates a new ListProjectEtcdRestoreParams object with the ability to set a custom HTTPClient for a request.

func NewListProjectEtcdRestoreParamsWithTimeout

func NewListProjectEtcdRestoreParamsWithTimeout(timeout time.Duration) *ListProjectEtcdRestoreParams

NewListProjectEtcdRestoreParamsWithTimeout creates a new ListProjectEtcdRestoreParams object with the ability to set a timeout on a request.

func (*ListProjectEtcdRestoreParams) SetContext

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

SetContext adds the context to the list project etcd restore params

func (*ListProjectEtcdRestoreParams) SetDefaults

func (o *ListProjectEtcdRestoreParams) SetDefaults()

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

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

func (*ListProjectEtcdRestoreParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list project etcd restore params

func (*ListProjectEtcdRestoreParams) SetProjectID

func (o *ListProjectEtcdRestoreParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list project etcd restore params

func (*ListProjectEtcdRestoreParams) SetTimeout

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

SetTimeout adds the timeout to the list project etcd restore params

func (*ListProjectEtcdRestoreParams) WithContext

WithContext adds the context to the list project etcd restore params

func (*ListProjectEtcdRestoreParams) WithDefaults

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

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

func (*ListProjectEtcdRestoreParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list project etcd restore params

func (*ListProjectEtcdRestoreParams) WithProjectID

WithProjectID adds the projectID to the list project etcd restore params

func (*ListProjectEtcdRestoreParams) WithTimeout

WithTimeout adds the timeout to the list project etcd restore params

func (*ListProjectEtcdRestoreParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListProjectEtcdRestoreReader

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

ListProjectEtcdRestoreReader is a Reader for the ListProjectEtcdRestore structure.

func (*ListProjectEtcdRestoreReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListProjectEtcdRestoreUnauthorized

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

EmptyResponse is a empty response

func NewListProjectEtcdRestoreUnauthorized

func NewListProjectEtcdRestoreUnauthorized() *ListProjectEtcdRestoreUnauthorized

NewListProjectEtcdRestoreUnauthorized creates a ListProjectEtcdRestoreUnauthorized with default headers values

func (*ListProjectEtcdRestoreUnauthorized) Error

Jump to

Keyboard shortcuts

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