restore

package
v0.0.0-...-a27efb4 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (

	// GetRestoreTaskOKBodyStatusPENDING captures enum value "PENDING"
	GetRestoreTaskOKBodyStatusPENDING string = "PENDING"

	// GetRestoreTaskOKBodyStatusRUNNING captures enum value "RUNNING"
	GetRestoreTaskOKBodyStatusRUNNING string = "RUNNING"

	// GetRestoreTaskOKBodyStatusFAILED captures enum value "FAILED"
	GetRestoreTaskOKBodyStatusFAILED string = "FAILED"

	// GetRestoreTaskOKBodyStatusSUCCESS captures enum value "SUCCESS"
	GetRestoreTaskOKBodyStatusSUCCESS string = "SUCCESS"
)
View Source
const (

	// ListRestoreTasksOKBodyItemsItems0StatusPENDING captures enum value "PENDING"
	ListRestoreTasksOKBodyItemsItems0StatusPENDING string = "PENDING"

	// ListRestoreTasksOKBodyItemsItems0StatusRUNNING captures enum value "RUNNING"
	ListRestoreTasksOKBodyItemsItems0StatusRUNNING string = "RUNNING"

	// ListRestoreTasksOKBodyItemsItems0StatusFAILED captures enum value "FAILED"
	ListRestoreTasksOKBodyItemsItems0StatusFAILED string = "FAILED"

	// ListRestoreTasksOKBodyItemsItems0StatusSUCCESS captures enum value "SUCCESS"
	ListRestoreTasksOKBodyItemsItems0StatusSUCCESS string = "SUCCESS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for restore API

func (*Client) CreateRestoreTask

func (a *Client) CreateRestoreTask(params *CreateRestoreTaskParams, opts ...ClientOption) (*CreateRestoreTaskOK, error)
CreateRestoreTask creates a restore task

You can use this endpoint to restore data from a previously created backup file to a new cluster. In this endpoint, you must specify the configuration of the new cluster you want to restore data to.

**Limitations:**

- For TiDB Dedicated clusters, you can only restore data from a smaller node size to a larger node size.

- You cannot restore data from a TiDB Dedicated cluster to a TiDB Serverless cluster.

For TiDB Serverless clusters, you cannot create restore tasks via API.

func (*Client) GetRestoreTask

func (a *Client) GetRestoreTask(params *GetRestoreTaskParams, opts ...ClientOption) (*GetRestoreTaskOK, error)
GetRestoreTask gets a restore task

For TiDB Serverless clusters, you cannot manage restore tasks via API.

func (*Client) ListRestoreTasks

func (a *Client) ListRestoreTasks(params *ListRestoreTasksParams, opts ...ClientOption) (*ListRestoreTasksOK, error)
ListRestoreTasks lists the restore tasks in a project

For TiDB Serverless clusters, you cannot create or manage restore tasks via API.

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 {
	CreateRestoreTask(params *CreateRestoreTaskParams, opts ...ClientOption) (*CreateRestoreTaskOK, error)

	GetRestoreTask(params *GetRestoreTaskParams, opts ...ClientOption) (*GetRestoreTaskOK, error)

	ListRestoreTasks(params *ListRestoreTasksParams, opts ...ClientOption) (*ListRestoreTasksOK, 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 restore API client.

type CreateRestoreTaskBadRequest

type CreateRestoreTaskBadRequest struct {
	Payload *CreateRestoreTaskBadRequestBody
}

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

A request field is invalid.

func NewCreateRestoreTaskBadRequest

func NewCreateRestoreTaskBadRequest() *CreateRestoreTaskBadRequest

NewCreateRestoreTaskBadRequest creates a CreateRestoreTaskBadRequest with default headers values

func (*CreateRestoreTaskBadRequest) Code

func (o *CreateRestoreTaskBadRequest) Code() int

Code gets the status code for the create restore task bad request response

func (*CreateRestoreTaskBadRequest) Error

func (*CreateRestoreTaskBadRequest) GetPayload

func (*CreateRestoreTaskBadRequest) IsClientError

func (o *CreateRestoreTaskBadRequest) IsClientError() bool

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

func (*CreateRestoreTaskBadRequest) IsCode

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

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

func (*CreateRestoreTaskBadRequest) IsRedirect

func (o *CreateRestoreTaskBadRequest) IsRedirect() bool

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

func (*CreateRestoreTaskBadRequest) IsServerError

func (o *CreateRestoreTaskBadRequest) IsServerError() bool

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

func (*CreateRestoreTaskBadRequest) IsSuccess

func (o *CreateRestoreTaskBadRequest) IsSuccess() bool

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

func (*CreateRestoreTaskBadRequest) String

func (o *CreateRestoreTaskBadRequest) String() string

type CreateRestoreTaskBadRequestBody

type CreateRestoreTaskBadRequestBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

CreateRestoreTaskBadRequestBody create restore task bad request body swagger:model CreateRestoreTaskBadRequestBody

func (*CreateRestoreTaskBadRequestBody) ContextValidate

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

ContextValidate validates this create restore task bad request body based on context it is used

func (*CreateRestoreTaskBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateRestoreTaskBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateRestoreTaskBadRequestBody) Validate

Validate validates this create restore task bad request body

type CreateRestoreTaskBody

type CreateRestoreTaskBody struct {

	// The ID of the backup.
	// Example: 1
	// Required: true
	BackupID *string `json:"backup_id"`

	// config
	Config *CreateRestoreTaskParamsBodyConfig `json:"config,omitempty"`

	// The name of the restored cluster. The restored cluster is the new cluster your backup data is restored to.
	//
	// - The name must be 4-64 characters that only contain numbers, letters, and hyphens. The first and last character must be a letter or number.
	// - This must be different from the name of the existing cluster.
	// Example: Cluster0
	// Required: true
	// Pattern: ^[A-Za-z0-9][-A-Za-z0-9]{2,62}[A-Za-z0-9]$
	Name *string `json:"name"`
}

CreateRestoreTaskBody CreateRestoreReq // // CreateRestoreReq is the request for restoring backup to a new cluster. swagger:model CreateRestoreTaskBody

func (*CreateRestoreTaskBody) ContextValidate

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

ContextValidate validate this create restore task body based on the context it is used

func (*CreateRestoreTaskBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateRestoreTaskBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateRestoreTaskBody) Validate

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

Validate validates this create restore task body

type CreateRestoreTaskDefault

type CreateRestoreTaskDefault struct {
	Payload *CreateRestoreTaskDefaultBody
	// contains filtered or unexported fields
}

CreateRestoreTaskDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewCreateRestoreTaskDefault

func NewCreateRestoreTaskDefault(code int) *CreateRestoreTaskDefault

NewCreateRestoreTaskDefault creates a CreateRestoreTaskDefault with default headers values

func (*CreateRestoreTaskDefault) Code

func (o *CreateRestoreTaskDefault) Code() int

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

func (*CreateRestoreTaskDefault) Error

func (o *CreateRestoreTaskDefault) Error() string

func (*CreateRestoreTaskDefault) GetPayload

func (*CreateRestoreTaskDefault) IsClientError

func (o *CreateRestoreTaskDefault) IsClientError() bool

IsClientError returns true when this create restore task default response has a 4xx status code

func (*CreateRestoreTaskDefault) IsCode

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

IsCode returns true when this create restore task default response a status code equal to that given

func (*CreateRestoreTaskDefault) IsRedirect

func (o *CreateRestoreTaskDefault) IsRedirect() bool

IsRedirect returns true when this create restore task default response has a 3xx status code

func (*CreateRestoreTaskDefault) IsServerError

func (o *CreateRestoreTaskDefault) IsServerError() bool

IsServerError returns true when this create restore task default response has a 5xx status code

func (*CreateRestoreTaskDefault) IsSuccess

func (o *CreateRestoreTaskDefault) IsSuccess() bool

IsSuccess returns true when this create restore task default response has a 2xx status code

func (*CreateRestoreTaskDefault) String

func (o *CreateRestoreTaskDefault) String() string

type CreateRestoreTaskDefaultBody

type CreateRestoreTaskDefaultBody struct {

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

	// details
	Details []*CreateRestoreTaskDefaultBodyDetailsItems0 `json:"details"`

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

CreateRestoreTaskDefaultBody create restore task default body swagger:model CreateRestoreTaskDefaultBody

func (*CreateRestoreTaskDefaultBody) ContextValidate

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

ContextValidate validate this create restore task default body based on the context it is used

func (*CreateRestoreTaskDefaultBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateRestoreTaskDefaultBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateRestoreTaskDefaultBody) Validate

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

Validate validates this create restore task default body

type CreateRestoreTaskDefaultBodyDetailsItems0

type CreateRestoreTaskDefaultBodyDetailsItems0 struct {

	// at type
	AtType string `json:"@type,omitempty"`
}

CreateRestoreTaskDefaultBodyDetailsItems0 create restore task default body details items0 swagger:model CreateRestoreTaskDefaultBodyDetailsItems0

func (*CreateRestoreTaskDefaultBodyDetailsItems0) ContextValidate

ContextValidate validates this create restore task default body details items0 based on context it is used

func (*CreateRestoreTaskDefaultBodyDetailsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateRestoreTaskDefaultBodyDetailsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateRestoreTaskDefaultBodyDetailsItems0) Validate

Validate validates this create restore task default body details items0

type CreateRestoreTaskForbidden

type CreateRestoreTaskForbidden struct {
	Payload *CreateRestoreTaskForbiddenBody
}

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

The API key does not have permission to access the resource.

func NewCreateRestoreTaskForbidden

func NewCreateRestoreTaskForbidden() *CreateRestoreTaskForbidden

NewCreateRestoreTaskForbidden creates a CreateRestoreTaskForbidden with default headers values

func (*CreateRestoreTaskForbidden) Code

func (o *CreateRestoreTaskForbidden) Code() int

Code gets the status code for the create restore task forbidden response

func (*CreateRestoreTaskForbidden) Error

func (*CreateRestoreTaskForbidden) GetPayload

func (*CreateRestoreTaskForbidden) IsClientError

func (o *CreateRestoreTaskForbidden) IsClientError() bool

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

func (*CreateRestoreTaskForbidden) IsCode

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

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

func (*CreateRestoreTaskForbidden) IsRedirect

func (o *CreateRestoreTaskForbidden) IsRedirect() bool

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

func (*CreateRestoreTaskForbidden) IsServerError

func (o *CreateRestoreTaskForbidden) IsServerError() bool

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

func (*CreateRestoreTaskForbidden) IsSuccess

func (o *CreateRestoreTaskForbidden) IsSuccess() bool

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

func (*CreateRestoreTaskForbidden) String

func (o *CreateRestoreTaskForbidden) String() string

type CreateRestoreTaskForbiddenBody

type CreateRestoreTaskForbiddenBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

CreateRestoreTaskForbiddenBody create restore task forbidden body swagger:model CreateRestoreTaskForbiddenBody

func (*CreateRestoreTaskForbiddenBody) ContextValidate

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

ContextValidate validates this create restore task forbidden body based on context it is used

func (*CreateRestoreTaskForbiddenBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateRestoreTaskForbiddenBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateRestoreTaskForbiddenBody) Validate

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

Validate validates this create restore task forbidden body

type CreateRestoreTaskInternalServerError

type CreateRestoreTaskInternalServerError struct {
	Payload *CreateRestoreTaskInternalServerErrorBody
}

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

Server error.

func NewCreateRestoreTaskInternalServerError

func NewCreateRestoreTaskInternalServerError() *CreateRestoreTaskInternalServerError

NewCreateRestoreTaskInternalServerError creates a CreateRestoreTaskInternalServerError with default headers values

func (*CreateRestoreTaskInternalServerError) Code

Code gets the status code for the create restore task internal server error response

func (*CreateRestoreTaskInternalServerError) Error

func (*CreateRestoreTaskInternalServerError) GetPayload

func (*CreateRestoreTaskInternalServerError) IsClientError

func (o *CreateRestoreTaskInternalServerError) IsClientError() bool

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

func (*CreateRestoreTaskInternalServerError) IsCode

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

func (*CreateRestoreTaskInternalServerError) IsRedirect

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

func (*CreateRestoreTaskInternalServerError) IsServerError

func (o *CreateRestoreTaskInternalServerError) IsServerError() bool

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

func (*CreateRestoreTaskInternalServerError) IsSuccess

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

func (*CreateRestoreTaskInternalServerError) String

type CreateRestoreTaskInternalServerErrorBody

type CreateRestoreTaskInternalServerErrorBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

CreateRestoreTaskInternalServerErrorBody create restore task internal server error body swagger:model CreateRestoreTaskInternalServerErrorBody

func (*CreateRestoreTaskInternalServerErrorBody) ContextValidate

ContextValidate validates this create restore task internal server error body based on context it is used

func (*CreateRestoreTaskInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateRestoreTaskInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateRestoreTaskInternalServerErrorBody) Validate

Validate validates this create restore task internal server error body

type CreateRestoreTaskNotFound

type CreateRestoreTaskNotFound struct {
	Payload *CreateRestoreTaskNotFoundBody
}

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

The requested resource does not exist.

func NewCreateRestoreTaskNotFound

func NewCreateRestoreTaskNotFound() *CreateRestoreTaskNotFound

NewCreateRestoreTaskNotFound creates a CreateRestoreTaskNotFound with default headers values

func (*CreateRestoreTaskNotFound) Code

func (o *CreateRestoreTaskNotFound) Code() int

Code gets the status code for the create restore task not found response

func (*CreateRestoreTaskNotFound) Error

func (o *CreateRestoreTaskNotFound) Error() string

func (*CreateRestoreTaskNotFound) GetPayload

func (*CreateRestoreTaskNotFound) IsClientError

func (o *CreateRestoreTaskNotFound) IsClientError() bool

IsClientError returns true when this create restore task not found response has a 4xx status code

func (*CreateRestoreTaskNotFound) IsCode

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

IsCode returns true when this create restore task not found response a status code equal to that given

func (*CreateRestoreTaskNotFound) IsRedirect

func (o *CreateRestoreTaskNotFound) IsRedirect() bool

IsRedirect returns true when this create restore task not found response has a 3xx status code

func (*CreateRestoreTaskNotFound) IsServerError

func (o *CreateRestoreTaskNotFound) IsServerError() bool

IsServerError returns true when this create restore task not found response has a 5xx status code

func (*CreateRestoreTaskNotFound) IsSuccess

func (o *CreateRestoreTaskNotFound) IsSuccess() bool

IsSuccess returns true when this create restore task not found response has a 2xx status code

func (*CreateRestoreTaskNotFound) String

func (o *CreateRestoreTaskNotFound) String() string

type CreateRestoreTaskNotFoundBody

type CreateRestoreTaskNotFoundBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

CreateRestoreTaskNotFoundBody create restore task not found body swagger:model CreateRestoreTaskNotFoundBody

func (*CreateRestoreTaskNotFoundBody) ContextValidate

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

ContextValidate validates this create restore task not found body based on context it is used

func (*CreateRestoreTaskNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateRestoreTaskNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateRestoreTaskNotFoundBody) Validate

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

Validate validates this create restore task not found body

type CreateRestoreTaskOK

type CreateRestoreTaskOK struct {
	Payload *CreateRestoreTaskOKBody
}

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

A successful response.

func NewCreateRestoreTaskOK

func NewCreateRestoreTaskOK() *CreateRestoreTaskOK

NewCreateRestoreTaskOK creates a CreateRestoreTaskOK with default headers values

func (*CreateRestoreTaskOK) Code

func (o *CreateRestoreTaskOK) Code() int

Code gets the status code for the create restore task o k response

func (*CreateRestoreTaskOK) Error

func (o *CreateRestoreTaskOK) Error() string

func (*CreateRestoreTaskOK) GetPayload

func (*CreateRestoreTaskOK) IsClientError

func (o *CreateRestoreTaskOK) IsClientError() bool

IsClientError returns true when this create restore task o k response has a 4xx status code

func (*CreateRestoreTaskOK) IsCode

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

IsCode returns true when this create restore task o k response a status code equal to that given

func (*CreateRestoreTaskOK) IsRedirect

func (o *CreateRestoreTaskOK) IsRedirect() bool

IsRedirect returns true when this create restore task o k response has a 3xx status code

func (*CreateRestoreTaskOK) IsServerError

func (o *CreateRestoreTaskOK) IsServerError() bool

IsServerError returns true when this create restore task o k response has a 5xx status code

func (*CreateRestoreTaskOK) IsSuccess

func (o *CreateRestoreTaskOK) IsSuccess() bool

IsSuccess returns true when this create restore task o k response has a 2xx status code

func (*CreateRestoreTaskOK) String

func (o *CreateRestoreTaskOK) String() string

type CreateRestoreTaskOKBody

type CreateRestoreTaskOKBody struct {

	// The ID of the restored cluster. The restored cluster is the new cluster your backup data is restored to.
	// Example: 1
	ClusterID string `json:"cluster_id,omitempty"`

	// The ID of the restore task.
	// Example: 1
	ID string `json:"id,omitempty"`
}

CreateRestoreTaskOKBody CreateRestoreResp // // CreateRestoreResp is the response for restoring backup to a new cluster. swagger:model CreateRestoreTaskOKBody

func (*CreateRestoreTaskOKBody) ContextValidate

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

ContextValidate validates this create restore task o k body based on context it is used

func (*CreateRestoreTaskOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateRestoreTaskOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateRestoreTaskOKBody) Validate

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

Validate validates this create restore task o k body

type CreateRestoreTaskParams

type CreateRestoreTaskParams struct {

	// Body.
	Body CreateRestoreTaskBody

	/* ProjectID.

	   The ID of the project. You can get the project ID from the response of [List all accessible projects.](#tag/Project/operation/ListProjects).

	   Format: uint64
	*/
	ProjectID string

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

CreateRestoreTaskParams contains all the parameters to send to the API endpoint

for the create restore task operation.

Typically these are written to a http.Request.

func NewCreateRestoreTaskParams

func NewCreateRestoreTaskParams() *CreateRestoreTaskParams

NewCreateRestoreTaskParams creates a new CreateRestoreTaskParams 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 NewCreateRestoreTaskParamsWithContext

func NewCreateRestoreTaskParamsWithContext(ctx context.Context) *CreateRestoreTaskParams

NewCreateRestoreTaskParamsWithContext creates a new CreateRestoreTaskParams object with the ability to set a context for a request.

func NewCreateRestoreTaskParamsWithHTTPClient

func NewCreateRestoreTaskParamsWithHTTPClient(client *http.Client) *CreateRestoreTaskParams

NewCreateRestoreTaskParamsWithHTTPClient creates a new CreateRestoreTaskParams object with the ability to set a custom HTTPClient for a request.

func NewCreateRestoreTaskParamsWithTimeout

func NewCreateRestoreTaskParamsWithTimeout(timeout time.Duration) *CreateRestoreTaskParams

NewCreateRestoreTaskParamsWithTimeout creates a new CreateRestoreTaskParams object with the ability to set a timeout on a request.

func (*CreateRestoreTaskParams) SetBody

SetBody adds the body to the create restore task params

func (*CreateRestoreTaskParams) SetContext

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

SetContext adds the context to the create restore task params

func (*CreateRestoreTaskParams) SetDefaults

func (o *CreateRestoreTaskParams) SetDefaults()

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

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

func (*CreateRestoreTaskParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create restore task params

func (*CreateRestoreTaskParams) SetProjectID

func (o *CreateRestoreTaskParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the create restore task params

func (*CreateRestoreTaskParams) SetTimeout

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

SetTimeout adds the timeout to the create restore task params

func (*CreateRestoreTaskParams) WithBody

WithBody adds the body to the create restore task params

func (*CreateRestoreTaskParams) WithContext

WithContext adds the context to the create restore task params

func (*CreateRestoreTaskParams) WithDefaults

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

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

func (*CreateRestoreTaskParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create restore task params

func (*CreateRestoreTaskParams) WithProjectID

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

WithProjectID adds the projectID to the create restore task params

func (*CreateRestoreTaskParams) WithTimeout

WithTimeout adds the timeout to the create restore task params

func (*CreateRestoreTaskParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateRestoreTaskParamsBodyConfig

type CreateRestoreTaskParamsBodyConfig struct {

	// components
	Components *CreateRestoreTaskParamsBodyConfigComponents `json:"components,omitempty"`

	// A list of IP addresses and Classless Inter-Domain Routing (CIDR) addresses that are allowed to access the TiDB Cloud cluster via [standard connection](https://docs.pingcap.com/tidbcloud/connect-to-tidb-cluster#connect-via-standard-connection).
	IPAccessList []*CreateRestoreTaskParamsBodyConfigIPAccessListItems0 `json:"ip_access_list"`

	// The TiDB port for connection. The port must be in the range of 1024-65535 except 10080.
	//
	// **Limitations**:
	// - For a TiDB Serverless cluster, only port `4000` is available.
	// Example: 4000
	// Maximum: 65535
	// Minimum: 1024
	Port int32 `json:"port,omitempty"`

	// The root password to access the cluster. It must be 8-64 characters.
	// Example: password_example
	// Required: true
	// Max Length: 64
	// Min Length: 8
	RootPassword *string `json:"root_password"`
}

CreateRestoreTaskParamsBodyConfig The configuration of the cluster. swagger:model CreateRestoreTaskParamsBodyConfig

func (*CreateRestoreTaskParamsBodyConfig) ContextValidate

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

ContextValidate validate this create restore task params body config based on the context it is used

func (*CreateRestoreTaskParamsBodyConfig) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateRestoreTaskParamsBodyConfig) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateRestoreTaskParamsBodyConfig) Validate

Validate validates this create restore task params body config

type CreateRestoreTaskParamsBodyConfigComponents

type CreateRestoreTaskParamsBodyConfigComponents struct {

	// tidb
	// Required: true
	Tidb *CreateRestoreTaskParamsBodyConfigComponentsTidb `json:"tidb"`

	// tiflash
	Tiflash *CreateRestoreTaskParamsBodyConfigComponentsTiflash `json:"tiflash,omitempty"`

	// tikv
	// Required: true
	Tikv *CreateRestoreTaskParamsBodyConfigComponentsTikv `json:"tikv"`
}

CreateRestoreTaskParamsBodyConfigComponents The components of the cluster. // // **Limitations**: // - For a TiDB Dedicated cluster, the `components` parameter is **required**. // - For a TiDB Serverless cluster, the `components` value is **ignored**. Setting this configuration does not have any effects. // Example: {"tidb":{"node_quantity":2,"node_size":"8C16G"},"tikv":{"node_quantity":3,"node_size":"8C32G","storage_size_gib":1024}} swagger:model CreateRestoreTaskParamsBodyConfigComponents

func (*CreateRestoreTaskParamsBodyConfigComponents) ContextValidate

ContextValidate validate this create restore task params body config components based on the context it is used

func (*CreateRestoreTaskParamsBodyConfigComponents) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateRestoreTaskParamsBodyConfigComponents) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateRestoreTaskParamsBodyConfigComponents) Validate

Validate validates this create restore task params body config components

type CreateRestoreTaskParamsBodyConfigComponentsTidb

type CreateRestoreTaskParamsBodyConfigComponentsTidb struct {

	// The number of nodes in the cluster. You can get the minimum and step of a node quantity from the response of [List the cloud providers, regions and available specifications](#tag/Cluster/operation/ListProviderRegions).
	//
	// Example: 2
	// Required: true
	NodeQuantity *int32 `json:"node_quantity"`

	// The size of the TiDB component in the cluster. You can get the available node size of each region from the response of [List the cloud providers, regions and available specifications](#tag/Cluster/operation/ListProviderRegions).
	//
	// **Additional combination rules**:
	// - If the vCPUs of TiDB or TiKV component is 4, then their vCPUs need to be the same.
	// - If the vCPUs of TiDB or TiKV component is 4, then the cluster does not support TiFlash.
	// Example: 8C16G
	// Required: true
	NodeSize *string `json:"node_size"`
}

CreateRestoreTaskParamsBodyConfigComponentsTidb The TiDB component of the cluster. swagger:model CreateRestoreTaskParamsBodyConfigComponentsTidb

func (*CreateRestoreTaskParamsBodyConfigComponentsTidb) ContextValidate

ContextValidate validates this create restore task params body config components tidb based on context it is used

func (*CreateRestoreTaskParamsBodyConfigComponentsTidb) MarshalBinary

MarshalBinary interface implementation

func (*CreateRestoreTaskParamsBodyConfigComponentsTidb) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreateRestoreTaskParamsBodyConfigComponentsTidb) Validate

Validate validates this create restore task params body config components tidb

type CreateRestoreTaskParamsBodyConfigComponentsTiflash

type CreateRestoreTaskParamsBodyConfigComponentsTiflash struct {

	// The number of nodes in the cluster. You can get the minimum and step of a node quantity from the response of [List the cloud providers, regions and available specifications](#tag/Cluster/operation/ListProviderRegions).
	// Example: 1
	// Required: true
	NodeQuantity *int32 `json:"node_quantity"`

	// The size of the TiFlash component in the cluster. You can get the available node size of each region from the response of [List the cloud providers, regions and available specifications](#tag/Cluster/operation/ListProviderRegions).
	//
	// **Additional combination rules**:
	// - If the vCPUs of TiDB or TiKV component is 4, then their vCPUs need to be the same.
	// - If the vCPUs of TiDB or TiKV component is 4, then the cluster does not support TiFlash.
	// Example: 8C64G
	// Required: true
	NodeSize *string `json:"node_size"`

	// The storage size of a node in the cluster. You can get the minimum and maximum of storage size from the response of [List the cloud providers, regions and available specifications](#tag/Cluster/operation/ListProviderRegions).
	//
	// Example: 1024
	// Required: true
	StorageSizeGib *int32 `json:"storage_size_gib"`
}

CreateRestoreTaskParamsBodyConfigComponentsTiflash The TiFlash component of the cluster. swagger:model CreateRestoreTaskParamsBodyConfigComponentsTiflash

func (*CreateRestoreTaskParamsBodyConfigComponentsTiflash) ContextValidate

ContextValidate validates this create restore task params body config components tiflash based on context it is used

func (*CreateRestoreTaskParamsBodyConfigComponentsTiflash) MarshalBinary

MarshalBinary interface implementation

func (*CreateRestoreTaskParamsBodyConfigComponentsTiflash) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreateRestoreTaskParamsBodyConfigComponentsTiflash) Validate

Validate validates this create restore task params body config components tiflash

type CreateRestoreTaskParamsBodyConfigComponentsTikv

type CreateRestoreTaskParamsBodyConfigComponentsTikv struct {

	// The number of nodes in the cluster. You can get the minimum and step of a node quantity from the response of [List the cloud providers, regions and available specifications](#tag/Cluster/operation/ListProviderRegions).
	//
	// **Limitations**:
	// - The `node_quantity` of TiKV must be a multiple of 3.
	// Example: 3
	// Required: true
	NodeQuantity *int32 `json:"node_quantity"`

	// The size of the TiKV component in the cluster. You can get the available node size of each region from the response of [List the cloud providers, regions and available specifications](#tag/Cluster/operation/ListProviderRegions).
	//
	// **Additional combination rules**:
	// - If the vCPUs of TiDB or TiKV component is 4, then their vCPUs need to be the same.
	// - If the vCPUs of TiDB or TiKV component is 4, then the cluster does not support TiFlash.
	// Example: 8C64G
	// Required: true
	NodeSize *string `json:"node_size"`

	// The storage size of a node in the cluster. You can get the minimum and maximum of storage size from the response of [List the cloud providers, regions and available specifications](#tag/Cluster/operation/ListProviderRegions).
	// Example: 1024
	// Required: true
	StorageSizeGib *int32 `json:"storage_size_gib"`
}

CreateRestoreTaskParamsBodyConfigComponentsTikv The TiKV component of the cluster. swagger:model CreateRestoreTaskParamsBodyConfigComponentsTikv

func (*CreateRestoreTaskParamsBodyConfigComponentsTikv) ContextValidate

ContextValidate validates this create restore task params body config components tikv based on context it is used

func (*CreateRestoreTaskParamsBodyConfigComponentsTikv) MarshalBinary

MarshalBinary interface implementation

func (*CreateRestoreTaskParamsBodyConfigComponentsTikv) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreateRestoreTaskParamsBodyConfigComponentsTikv) Validate

Validate validates this create restore task params body config components tikv

type CreateRestoreTaskParamsBodyConfigIPAccessListItems0

type CreateRestoreTaskParamsBodyConfigIPAccessListItems0 struct {

	// The IP address or CIDR range that you want to add to the cluster's IP access list.
	// Example: 8.8.8.8/32
	// Required: true
	Cidr *string `json:"cidr"`

	// Description that explains the purpose of the entry.
	// Example: My Current IP Address
	Description string `json:"description,omitempty"`
}

CreateRestoreTaskParamsBodyConfigIPAccessListItems0 create restore task params body config IP access list items0 swagger:model CreateRestoreTaskParamsBodyConfigIPAccessListItems0

func (*CreateRestoreTaskParamsBodyConfigIPAccessListItems0) ContextValidate

ContextValidate validates this create restore task params body config IP access list items0 based on context it is used

func (*CreateRestoreTaskParamsBodyConfigIPAccessListItems0) MarshalBinary

MarshalBinary interface implementation

func (*CreateRestoreTaskParamsBodyConfigIPAccessListItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreateRestoreTaskParamsBodyConfigIPAccessListItems0) Validate

Validate validates this create restore task params body config IP access list items0

type CreateRestoreTaskReader

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

CreateRestoreTaskReader is a Reader for the CreateRestoreTask structure.

func (*CreateRestoreTaskReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateRestoreTaskTooManyRequests

type CreateRestoreTaskTooManyRequests struct {
	Payload *CreateRestoreTaskTooManyRequestsBody
}

CreateRestoreTaskTooManyRequests describes a response with status code 429, with default header values.

You have exceed the rate limit.

func NewCreateRestoreTaskTooManyRequests

func NewCreateRestoreTaskTooManyRequests() *CreateRestoreTaskTooManyRequests

NewCreateRestoreTaskTooManyRequests creates a CreateRestoreTaskTooManyRequests with default headers values

func (*CreateRestoreTaskTooManyRequests) Code

Code gets the status code for the create restore task too many requests response

func (*CreateRestoreTaskTooManyRequests) Error

func (*CreateRestoreTaskTooManyRequests) GetPayload

func (*CreateRestoreTaskTooManyRequests) IsClientError

func (o *CreateRestoreTaskTooManyRequests) IsClientError() bool

IsClientError returns true when this create restore task too many requests response has a 4xx status code

func (*CreateRestoreTaskTooManyRequests) IsCode

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

IsCode returns true when this create restore task too many requests response a status code equal to that given

func (*CreateRestoreTaskTooManyRequests) IsRedirect

func (o *CreateRestoreTaskTooManyRequests) IsRedirect() bool

IsRedirect returns true when this create restore task too many requests response has a 3xx status code

func (*CreateRestoreTaskTooManyRequests) IsServerError

func (o *CreateRestoreTaskTooManyRequests) IsServerError() bool

IsServerError returns true when this create restore task too many requests response has a 5xx status code

func (*CreateRestoreTaskTooManyRequests) IsSuccess

func (o *CreateRestoreTaskTooManyRequests) IsSuccess() bool

IsSuccess returns true when this create restore task too many requests response has a 2xx status code

func (*CreateRestoreTaskTooManyRequests) String

type CreateRestoreTaskTooManyRequestsBody

type CreateRestoreTaskTooManyRequestsBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

CreateRestoreTaskTooManyRequestsBody create restore task too many requests body swagger:model CreateRestoreTaskTooManyRequestsBody

func (*CreateRestoreTaskTooManyRequestsBody) ContextValidate

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

ContextValidate validates this create restore task too many requests body based on context it is used

func (*CreateRestoreTaskTooManyRequestsBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateRestoreTaskTooManyRequestsBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateRestoreTaskTooManyRequestsBody) Validate

Validate validates this create restore task too many requests body

type CreateRestoreTaskUnauthorized

type CreateRestoreTaskUnauthorized struct {
	Payload interface{}
}

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

The API key cannot be authenticated.

func NewCreateRestoreTaskUnauthorized

func NewCreateRestoreTaskUnauthorized() *CreateRestoreTaskUnauthorized

NewCreateRestoreTaskUnauthorized creates a CreateRestoreTaskUnauthorized with default headers values

func (*CreateRestoreTaskUnauthorized) Code

Code gets the status code for the create restore task unauthorized response

func (*CreateRestoreTaskUnauthorized) Error

func (*CreateRestoreTaskUnauthorized) GetPayload

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

func (*CreateRestoreTaskUnauthorized) IsClientError

func (o *CreateRestoreTaskUnauthorized) IsClientError() bool

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

func (*CreateRestoreTaskUnauthorized) IsCode

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

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

func (*CreateRestoreTaskUnauthorized) IsRedirect

func (o *CreateRestoreTaskUnauthorized) IsRedirect() bool

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

func (*CreateRestoreTaskUnauthorized) IsServerError

func (o *CreateRestoreTaskUnauthorized) IsServerError() bool

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

func (*CreateRestoreTaskUnauthorized) IsSuccess

func (o *CreateRestoreTaskUnauthorized) IsSuccess() bool

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

func (*CreateRestoreTaskUnauthorized) String

type GetRestoreTaskBadRequest

type GetRestoreTaskBadRequest struct {
	Payload *GetRestoreTaskBadRequestBody
}

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

A request field is invalid.

func NewGetRestoreTaskBadRequest

func NewGetRestoreTaskBadRequest() *GetRestoreTaskBadRequest

NewGetRestoreTaskBadRequest creates a GetRestoreTaskBadRequest with default headers values

func (*GetRestoreTaskBadRequest) Code

func (o *GetRestoreTaskBadRequest) Code() int

Code gets the status code for the get restore task bad request response

func (*GetRestoreTaskBadRequest) Error

func (o *GetRestoreTaskBadRequest) Error() string

func (*GetRestoreTaskBadRequest) GetPayload

func (*GetRestoreTaskBadRequest) IsClientError

func (o *GetRestoreTaskBadRequest) IsClientError() bool

IsClientError returns true when this get restore task bad request response has a 4xx status code

func (*GetRestoreTaskBadRequest) IsCode

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

IsCode returns true when this get restore task bad request response a status code equal to that given

func (*GetRestoreTaskBadRequest) IsRedirect

func (o *GetRestoreTaskBadRequest) IsRedirect() bool

IsRedirect returns true when this get restore task bad request response has a 3xx status code

func (*GetRestoreTaskBadRequest) IsServerError

func (o *GetRestoreTaskBadRequest) IsServerError() bool

IsServerError returns true when this get restore task bad request response has a 5xx status code

func (*GetRestoreTaskBadRequest) IsSuccess

func (o *GetRestoreTaskBadRequest) IsSuccess() bool

IsSuccess returns true when this get restore task bad request response has a 2xx status code

func (*GetRestoreTaskBadRequest) String

func (o *GetRestoreTaskBadRequest) String() string

type GetRestoreTaskBadRequestBody

type GetRestoreTaskBadRequestBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetRestoreTaskBadRequestBody get restore task bad request body swagger:model GetRestoreTaskBadRequestBody

func (*GetRestoreTaskBadRequestBody) ContextValidate

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

ContextValidate validates this get restore task bad request body based on context it is used

func (*GetRestoreTaskBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRestoreTaskBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRestoreTaskBadRequestBody) Validate

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

Validate validates this get restore task bad request body

type GetRestoreTaskDefault

type GetRestoreTaskDefault struct {
	Payload *GetRestoreTaskDefaultBody
	// contains filtered or unexported fields
}

GetRestoreTaskDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetRestoreTaskDefault

func NewGetRestoreTaskDefault(code int) *GetRestoreTaskDefault

NewGetRestoreTaskDefault creates a GetRestoreTaskDefault with default headers values

func (*GetRestoreTaskDefault) Code

func (o *GetRestoreTaskDefault) Code() int

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

func (*GetRestoreTaskDefault) Error

func (o *GetRestoreTaskDefault) Error() string

func (*GetRestoreTaskDefault) GetPayload

func (*GetRestoreTaskDefault) IsClientError

func (o *GetRestoreTaskDefault) IsClientError() bool

IsClientError returns true when this get restore task default response has a 4xx status code

func (*GetRestoreTaskDefault) IsCode

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

IsCode returns true when this get restore task default response a status code equal to that given

func (*GetRestoreTaskDefault) IsRedirect

func (o *GetRestoreTaskDefault) IsRedirect() bool

IsRedirect returns true when this get restore task default response has a 3xx status code

func (*GetRestoreTaskDefault) IsServerError

func (o *GetRestoreTaskDefault) IsServerError() bool

IsServerError returns true when this get restore task default response has a 5xx status code

func (*GetRestoreTaskDefault) IsSuccess

func (o *GetRestoreTaskDefault) IsSuccess() bool

IsSuccess returns true when this get restore task default response has a 2xx status code

func (*GetRestoreTaskDefault) String

func (o *GetRestoreTaskDefault) String() string

type GetRestoreTaskDefaultBody

type GetRestoreTaskDefaultBody struct {

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

	// details
	Details []*GetRestoreTaskDefaultBodyDetailsItems0 `json:"details"`

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

GetRestoreTaskDefaultBody get restore task default body swagger:model GetRestoreTaskDefaultBody

func (*GetRestoreTaskDefaultBody) ContextValidate

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

ContextValidate validate this get restore task default body based on the context it is used

func (*GetRestoreTaskDefaultBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRestoreTaskDefaultBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRestoreTaskDefaultBody) Validate

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

Validate validates this get restore task default body

type GetRestoreTaskDefaultBodyDetailsItems0

type GetRestoreTaskDefaultBodyDetailsItems0 struct {

	// at type
	AtType string `json:"@type,omitempty"`
}

GetRestoreTaskDefaultBodyDetailsItems0 get restore task default body details items0 swagger:model GetRestoreTaskDefaultBodyDetailsItems0

func (*GetRestoreTaskDefaultBodyDetailsItems0) ContextValidate

ContextValidate validates this get restore task default body details items0 based on context it is used

func (*GetRestoreTaskDefaultBodyDetailsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRestoreTaskDefaultBodyDetailsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRestoreTaskDefaultBodyDetailsItems0) Validate

Validate validates this get restore task default body details items0

type GetRestoreTaskForbidden

type GetRestoreTaskForbidden struct {
	Payload *GetRestoreTaskForbiddenBody
}

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

The API key does not have permission to access the resource.

func NewGetRestoreTaskForbidden

func NewGetRestoreTaskForbidden() *GetRestoreTaskForbidden

NewGetRestoreTaskForbidden creates a GetRestoreTaskForbidden with default headers values

func (*GetRestoreTaskForbidden) Code

func (o *GetRestoreTaskForbidden) Code() int

Code gets the status code for the get restore task forbidden response

func (*GetRestoreTaskForbidden) Error

func (o *GetRestoreTaskForbidden) Error() string

func (*GetRestoreTaskForbidden) GetPayload

func (*GetRestoreTaskForbidden) IsClientError

func (o *GetRestoreTaskForbidden) IsClientError() bool

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

func (*GetRestoreTaskForbidden) IsCode

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

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

func (*GetRestoreTaskForbidden) IsRedirect

func (o *GetRestoreTaskForbidden) IsRedirect() bool

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

func (*GetRestoreTaskForbidden) IsServerError

func (o *GetRestoreTaskForbidden) IsServerError() bool

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

func (*GetRestoreTaskForbidden) IsSuccess

func (o *GetRestoreTaskForbidden) IsSuccess() bool

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

func (*GetRestoreTaskForbidden) String

func (o *GetRestoreTaskForbidden) String() string

type GetRestoreTaskForbiddenBody

type GetRestoreTaskForbiddenBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetRestoreTaskForbiddenBody get restore task forbidden body swagger:model GetRestoreTaskForbiddenBody

func (*GetRestoreTaskForbiddenBody) ContextValidate

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

ContextValidate validates this get restore task forbidden body based on context it is used

func (*GetRestoreTaskForbiddenBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRestoreTaskForbiddenBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRestoreTaskForbiddenBody) Validate

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

Validate validates this get restore task forbidden body

type GetRestoreTaskInternalServerError

type GetRestoreTaskInternalServerError struct {
	Payload *GetRestoreTaskInternalServerErrorBody
}

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

Server error.

func NewGetRestoreTaskInternalServerError

func NewGetRestoreTaskInternalServerError() *GetRestoreTaskInternalServerError

NewGetRestoreTaskInternalServerError creates a GetRestoreTaskInternalServerError with default headers values

func (*GetRestoreTaskInternalServerError) Code

Code gets the status code for the get restore task internal server error response

func (*GetRestoreTaskInternalServerError) Error

func (*GetRestoreTaskInternalServerError) GetPayload

func (*GetRestoreTaskInternalServerError) IsClientError

func (o *GetRestoreTaskInternalServerError) IsClientError() bool

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

func (*GetRestoreTaskInternalServerError) IsCode

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

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

func (*GetRestoreTaskInternalServerError) IsRedirect

func (o *GetRestoreTaskInternalServerError) IsRedirect() bool

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

func (*GetRestoreTaskInternalServerError) IsServerError

func (o *GetRestoreTaskInternalServerError) IsServerError() bool

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

func (*GetRestoreTaskInternalServerError) IsSuccess

func (o *GetRestoreTaskInternalServerError) IsSuccess() bool

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

func (*GetRestoreTaskInternalServerError) String

type GetRestoreTaskInternalServerErrorBody

type GetRestoreTaskInternalServerErrorBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetRestoreTaskInternalServerErrorBody get restore task internal server error body swagger:model GetRestoreTaskInternalServerErrorBody

func (*GetRestoreTaskInternalServerErrorBody) ContextValidate

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

ContextValidate validates this get restore task internal server error body based on context it is used

func (*GetRestoreTaskInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRestoreTaskInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRestoreTaskInternalServerErrorBody) Validate

Validate validates this get restore task internal server error body

type GetRestoreTaskNotFound

type GetRestoreTaskNotFound struct {
	Payload *GetRestoreTaskNotFoundBody
}

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

The requested resource does not exist.

func NewGetRestoreTaskNotFound

func NewGetRestoreTaskNotFound() *GetRestoreTaskNotFound

NewGetRestoreTaskNotFound creates a GetRestoreTaskNotFound with default headers values

func (*GetRestoreTaskNotFound) Code

func (o *GetRestoreTaskNotFound) Code() int

Code gets the status code for the get restore task not found response

func (*GetRestoreTaskNotFound) Error

func (o *GetRestoreTaskNotFound) Error() string

func (*GetRestoreTaskNotFound) GetPayload

func (*GetRestoreTaskNotFound) IsClientError

func (o *GetRestoreTaskNotFound) IsClientError() bool

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

func (*GetRestoreTaskNotFound) IsCode

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

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

func (*GetRestoreTaskNotFound) IsRedirect

func (o *GetRestoreTaskNotFound) IsRedirect() bool

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

func (*GetRestoreTaskNotFound) IsServerError

func (o *GetRestoreTaskNotFound) IsServerError() bool

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

func (*GetRestoreTaskNotFound) IsSuccess

func (o *GetRestoreTaskNotFound) IsSuccess() bool

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

func (*GetRestoreTaskNotFound) String

func (o *GetRestoreTaskNotFound) String() string

type GetRestoreTaskNotFoundBody

type GetRestoreTaskNotFoundBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetRestoreTaskNotFoundBody get restore task not found body swagger:model GetRestoreTaskNotFoundBody

func (*GetRestoreTaskNotFoundBody) ContextValidate

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

ContextValidate validates this get restore task not found body based on context it is used

func (*GetRestoreTaskNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRestoreTaskNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRestoreTaskNotFoundBody) Validate

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

Validate validates this get restore task not found body

type GetRestoreTaskOK

type GetRestoreTaskOK struct {
	Payload *GetRestoreTaskOKBody
}

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

A successful response.

func NewGetRestoreTaskOK

func NewGetRestoreTaskOK() *GetRestoreTaskOK

NewGetRestoreTaskOK creates a GetRestoreTaskOK with default headers values

func (*GetRestoreTaskOK) Code

func (o *GetRestoreTaskOK) Code() int

Code gets the status code for the get restore task o k response

func (*GetRestoreTaskOK) Error

func (o *GetRestoreTaskOK) Error() string

func (*GetRestoreTaskOK) GetPayload

func (o *GetRestoreTaskOK) GetPayload() *GetRestoreTaskOKBody

func (*GetRestoreTaskOK) IsClientError

func (o *GetRestoreTaskOK) IsClientError() bool

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

func (*GetRestoreTaskOK) IsCode

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

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

func (*GetRestoreTaskOK) IsRedirect

func (o *GetRestoreTaskOK) IsRedirect() bool

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

func (*GetRestoreTaskOK) IsServerError

func (o *GetRestoreTaskOK) IsServerError() bool

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

func (*GetRestoreTaskOK) IsSuccess

func (o *GetRestoreTaskOK) IsSuccess() bool

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

func (*GetRestoreTaskOK) String

func (o *GetRestoreTaskOK) String() string

type GetRestoreTaskOKBody

type GetRestoreTaskOKBody struct {

	// The ID of the backup.
	// Example: 1
	BackupID string `json:"backup_id,omitempty"`

	// cluster
	Cluster *GetRestoreTaskOKBodyCluster `json:"cluster,omitempty"`

	// The cluster ID of the backup.
	// Example: 1
	ClusterID string `json:"cluster_id,omitempty"`

	// The creation time of the backup in UTC.
	//
	// The time format follows the [ISO8601](http://en.wikipedia.org/wiki/ISO_8601) standard, which is `YYYY-MM-DD` (year-month-day) + T +`HH:MM:SS` (hour-minutes-seconds) + Z. For example, `2020-01-01T00:00:00Z`.
	// Example: 2020-01-01T00:00:00Z
	// Format: date-time
	CreateTimestamp strfmt.DateTime `json:"create_timestamp,omitempty"`

	// The error message of restore if failed.
	// Example: Please contact support.
	ErrorMessage string `json:"error_message,omitempty"`

	// The ID of the restore task.
	// Example: 1
	ID string `json:"id,omitempty"`

	// The status of the restore task.
	// Example: PENDING
	// Enum: [PENDING RUNNING FAILED SUCCESS]
	Status string `json:"status,omitempty"`
}

GetRestoreTaskOKBody GetRestoreResp // // The response for get restore. swagger:model GetRestoreTaskOKBody

func (*GetRestoreTaskOKBody) ContextValidate

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

ContextValidate validate this get restore task o k body based on the context it is used

func (*GetRestoreTaskOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRestoreTaskOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRestoreTaskOKBody) Validate

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

Validate validates this get restore task o k body

type GetRestoreTaskOKBodyCluster

type GetRestoreTaskOKBodyCluster struct {

	// The ID of the restored cluster. The restored cluster is the new cluster your backup data is restored to.
	// Example: 1
	ID string `json:"id,omitempty"`

	// The name of the restored cluster. The restored cluster is the new cluster your backup data is restored to.
	// Example: cluster-1
	Name string `json:"name,omitempty"`

	// The status of the restored cluster. Possible values are `"AVAILABLE"`, `"CREATING"`, `"MODIFYING"`, `"PAUSED"`, `"RESUMING"`, `"UNAVAILABLE"`, `"IMPORTING"`, and `"CLEARED"`.
	// Example: AVAILABLE
	Status string `json:"status,omitempty"`
}

GetRestoreTaskOKBodyCluster ClusterInfoOfRestore // // The information of the restored cluster. The restored cluster is the new cluster your backup data is restored to. swagger:model GetRestoreTaskOKBodyCluster

func (*GetRestoreTaskOKBodyCluster) ContextValidate

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

ContextValidate validates this get restore task o k body cluster based on context it is used

func (*GetRestoreTaskOKBodyCluster) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRestoreTaskOKBodyCluster) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRestoreTaskOKBodyCluster) Validate

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

Validate validates this get restore task o k body cluster

type GetRestoreTaskParams

type GetRestoreTaskParams struct {

	/* ProjectID.

	   The ID of your project. You can get the project ID from the response of [List all accessible projects.](#tag/Project/operation/ListProjects).

	   Format: uint64
	*/
	ProjectID string

	/* RestoreID.

	   The ID of the restore task.

	   Format: uint64
	*/
	RestoreID string

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

GetRestoreTaskParams contains all the parameters to send to the API endpoint

for the get restore task operation.

Typically these are written to a http.Request.

func NewGetRestoreTaskParams

func NewGetRestoreTaskParams() *GetRestoreTaskParams

NewGetRestoreTaskParams creates a new GetRestoreTaskParams 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 NewGetRestoreTaskParamsWithContext

func NewGetRestoreTaskParamsWithContext(ctx context.Context) *GetRestoreTaskParams

NewGetRestoreTaskParamsWithContext creates a new GetRestoreTaskParams object with the ability to set a context for a request.

func NewGetRestoreTaskParamsWithHTTPClient

func NewGetRestoreTaskParamsWithHTTPClient(client *http.Client) *GetRestoreTaskParams

NewGetRestoreTaskParamsWithHTTPClient creates a new GetRestoreTaskParams object with the ability to set a custom HTTPClient for a request.

func NewGetRestoreTaskParamsWithTimeout

func NewGetRestoreTaskParamsWithTimeout(timeout time.Duration) *GetRestoreTaskParams

NewGetRestoreTaskParamsWithTimeout creates a new GetRestoreTaskParams object with the ability to set a timeout on a request.

func (*GetRestoreTaskParams) SetContext

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

SetContext adds the context to the get restore task params

func (*GetRestoreTaskParams) SetDefaults

func (o *GetRestoreTaskParams) SetDefaults()

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

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

func (*GetRestoreTaskParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get restore task params

func (*GetRestoreTaskParams) SetProjectID

func (o *GetRestoreTaskParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the get restore task params

func (*GetRestoreTaskParams) SetRestoreID

func (o *GetRestoreTaskParams) SetRestoreID(restoreID string)

SetRestoreID adds the restoreId to the get restore task params

func (*GetRestoreTaskParams) SetTimeout

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

SetTimeout adds the timeout to the get restore task params

func (*GetRestoreTaskParams) WithContext

WithContext adds the context to the get restore task params

func (*GetRestoreTaskParams) WithDefaults

func (o *GetRestoreTaskParams) WithDefaults() *GetRestoreTaskParams

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

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

func (*GetRestoreTaskParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get restore task params

func (*GetRestoreTaskParams) WithProjectID

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

WithProjectID adds the projectID to the get restore task params

func (*GetRestoreTaskParams) WithRestoreID

func (o *GetRestoreTaskParams) WithRestoreID(restoreID string) *GetRestoreTaskParams

WithRestoreID adds the restoreID to the get restore task params

func (*GetRestoreTaskParams) WithTimeout

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

WithTimeout adds the timeout to the get restore task params

func (*GetRestoreTaskParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRestoreTaskReader

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

GetRestoreTaskReader is a Reader for the GetRestoreTask structure.

func (*GetRestoreTaskReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRestoreTaskTooManyRequests

type GetRestoreTaskTooManyRequests struct {
	Payload *GetRestoreTaskTooManyRequestsBody
}

GetRestoreTaskTooManyRequests describes a response with status code 429, with default header values.

You have exceed the rate limit.

func NewGetRestoreTaskTooManyRequests

func NewGetRestoreTaskTooManyRequests() *GetRestoreTaskTooManyRequests

NewGetRestoreTaskTooManyRequests creates a GetRestoreTaskTooManyRequests with default headers values

func (*GetRestoreTaskTooManyRequests) Code

Code gets the status code for the get restore task too many requests response

func (*GetRestoreTaskTooManyRequests) Error

func (*GetRestoreTaskTooManyRequests) GetPayload

func (*GetRestoreTaskTooManyRequests) IsClientError

func (o *GetRestoreTaskTooManyRequests) IsClientError() bool

IsClientError returns true when this get restore task too many requests response has a 4xx status code

func (*GetRestoreTaskTooManyRequests) IsCode

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

IsCode returns true when this get restore task too many requests response a status code equal to that given

func (*GetRestoreTaskTooManyRequests) IsRedirect

func (o *GetRestoreTaskTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get restore task too many requests response has a 3xx status code

func (*GetRestoreTaskTooManyRequests) IsServerError

func (o *GetRestoreTaskTooManyRequests) IsServerError() bool

IsServerError returns true when this get restore task too many requests response has a 5xx status code

func (*GetRestoreTaskTooManyRequests) IsSuccess

func (o *GetRestoreTaskTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get restore task too many requests response has a 2xx status code

func (*GetRestoreTaskTooManyRequests) String

type GetRestoreTaskTooManyRequestsBody

type GetRestoreTaskTooManyRequestsBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetRestoreTaskTooManyRequestsBody get restore task too many requests body swagger:model GetRestoreTaskTooManyRequestsBody

func (*GetRestoreTaskTooManyRequestsBody) ContextValidate

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

ContextValidate validates this get restore task too many requests body based on context it is used

func (*GetRestoreTaskTooManyRequestsBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRestoreTaskTooManyRequestsBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRestoreTaskTooManyRequestsBody) Validate

Validate validates this get restore task too many requests body

type GetRestoreTaskUnauthorized

type GetRestoreTaskUnauthorized struct {
	Payload interface{}
}

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

The API key cannot be authenticated.

func NewGetRestoreTaskUnauthorized

func NewGetRestoreTaskUnauthorized() *GetRestoreTaskUnauthorized

NewGetRestoreTaskUnauthorized creates a GetRestoreTaskUnauthorized with default headers values

func (*GetRestoreTaskUnauthorized) Code

func (o *GetRestoreTaskUnauthorized) Code() int

Code gets the status code for the get restore task unauthorized response

func (*GetRestoreTaskUnauthorized) Error

func (*GetRestoreTaskUnauthorized) GetPayload

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

func (*GetRestoreTaskUnauthorized) IsClientError

func (o *GetRestoreTaskUnauthorized) IsClientError() bool

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

func (*GetRestoreTaskUnauthorized) IsCode

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

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

func (*GetRestoreTaskUnauthorized) IsRedirect

func (o *GetRestoreTaskUnauthorized) IsRedirect() bool

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

func (*GetRestoreTaskUnauthorized) IsServerError

func (o *GetRestoreTaskUnauthorized) IsServerError() bool

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

func (*GetRestoreTaskUnauthorized) IsSuccess

func (o *GetRestoreTaskUnauthorized) IsSuccess() bool

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

func (*GetRestoreTaskUnauthorized) String

func (o *GetRestoreTaskUnauthorized) String() string

type ListRestoreTasksBadRequest

type ListRestoreTasksBadRequest struct {
	Payload *ListRestoreTasksBadRequestBody
}

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

A request field is invalid.

func NewListRestoreTasksBadRequest

func NewListRestoreTasksBadRequest() *ListRestoreTasksBadRequest

NewListRestoreTasksBadRequest creates a ListRestoreTasksBadRequest with default headers values

func (*ListRestoreTasksBadRequest) Code

func (o *ListRestoreTasksBadRequest) Code() int

Code gets the status code for the list restore tasks bad request response

func (*ListRestoreTasksBadRequest) Error

func (*ListRestoreTasksBadRequest) GetPayload

func (*ListRestoreTasksBadRequest) IsClientError

func (o *ListRestoreTasksBadRequest) IsClientError() bool

IsClientError returns true when this list restore tasks bad request response has a 4xx status code

func (*ListRestoreTasksBadRequest) IsCode

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

IsCode returns true when this list restore tasks bad request response a status code equal to that given

func (*ListRestoreTasksBadRequest) IsRedirect

func (o *ListRestoreTasksBadRequest) IsRedirect() bool

IsRedirect returns true when this list restore tasks bad request response has a 3xx status code

func (*ListRestoreTasksBadRequest) IsServerError

func (o *ListRestoreTasksBadRequest) IsServerError() bool

IsServerError returns true when this list restore tasks bad request response has a 5xx status code

func (*ListRestoreTasksBadRequest) IsSuccess

func (o *ListRestoreTasksBadRequest) IsSuccess() bool

IsSuccess returns true when this list restore tasks bad request response has a 2xx status code

func (*ListRestoreTasksBadRequest) String

func (o *ListRestoreTasksBadRequest) String() string

type ListRestoreTasksBadRequestBody

type ListRestoreTasksBadRequestBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

ListRestoreTasksBadRequestBody list restore tasks bad request body swagger:model ListRestoreTasksBadRequestBody

func (*ListRestoreTasksBadRequestBody) ContextValidate

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

ContextValidate validates this list restore tasks bad request body based on context it is used

func (*ListRestoreTasksBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListRestoreTasksBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListRestoreTasksBadRequestBody) Validate

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

Validate validates this list restore tasks bad request body

type ListRestoreTasksDefault

type ListRestoreTasksDefault struct {
	Payload *ListRestoreTasksDefaultBody
	// contains filtered or unexported fields
}

ListRestoreTasksDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewListRestoreTasksDefault

func NewListRestoreTasksDefault(code int) *ListRestoreTasksDefault

NewListRestoreTasksDefault creates a ListRestoreTasksDefault with default headers values

func (*ListRestoreTasksDefault) Code

func (o *ListRestoreTasksDefault) Code() int

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

func (*ListRestoreTasksDefault) Error

func (o *ListRestoreTasksDefault) Error() string

func (*ListRestoreTasksDefault) GetPayload

func (*ListRestoreTasksDefault) IsClientError

func (o *ListRestoreTasksDefault) IsClientError() bool

IsClientError returns true when this list restore tasks default response has a 4xx status code

func (*ListRestoreTasksDefault) IsCode

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

IsCode returns true when this list restore tasks default response a status code equal to that given

func (*ListRestoreTasksDefault) IsRedirect

func (o *ListRestoreTasksDefault) IsRedirect() bool

IsRedirect returns true when this list restore tasks default response has a 3xx status code

func (*ListRestoreTasksDefault) IsServerError

func (o *ListRestoreTasksDefault) IsServerError() bool

IsServerError returns true when this list restore tasks default response has a 5xx status code

func (*ListRestoreTasksDefault) IsSuccess

func (o *ListRestoreTasksDefault) IsSuccess() bool

IsSuccess returns true when this list restore tasks default response has a 2xx status code

func (*ListRestoreTasksDefault) String

func (o *ListRestoreTasksDefault) String() string

type ListRestoreTasksDefaultBody

type ListRestoreTasksDefaultBody struct {

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

	// details
	Details []*ListRestoreTasksDefaultBodyDetailsItems0 `json:"details"`

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

ListRestoreTasksDefaultBody list restore tasks default body swagger:model ListRestoreTasksDefaultBody

func (*ListRestoreTasksDefaultBody) ContextValidate

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

ContextValidate validate this list restore tasks default body based on the context it is used

func (*ListRestoreTasksDefaultBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListRestoreTasksDefaultBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListRestoreTasksDefaultBody) Validate

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

Validate validates this list restore tasks default body

type ListRestoreTasksDefaultBodyDetailsItems0

type ListRestoreTasksDefaultBodyDetailsItems0 struct {

	// at type
	AtType string `json:"@type,omitempty"`
}

ListRestoreTasksDefaultBodyDetailsItems0 list restore tasks default body details items0 swagger:model ListRestoreTasksDefaultBodyDetailsItems0

func (*ListRestoreTasksDefaultBodyDetailsItems0) ContextValidate

ContextValidate validates this list restore tasks default body details items0 based on context it is used

func (*ListRestoreTasksDefaultBodyDetailsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ListRestoreTasksDefaultBodyDetailsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListRestoreTasksDefaultBodyDetailsItems0) Validate

Validate validates this list restore tasks default body details items0

type ListRestoreTasksForbidden

type ListRestoreTasksForbidden struct {
	Payload *ListRestoreTasksForbiddenBody
}

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

The API key does not have permission to access the resource.

func NewListRestoreTasksForbidden

func NewListRestoreTasksForbidden() *ListRestoreTasksForbidden

NewListRestoreTasksForbidden creates a ListRestoreTasksForbidden with default headers values

func (*ListRestoreTasksForbidden) Code

func (o *ListRestoreTasksForbidden) Code() int

Code gets the status code for the list restore tasks forbidden response

func (*ListRestoreTasksForbidden) Error

func (o *ListRestoreTasksForbidden) Error() string

func (*ListRestoreTasksForbidden) GetPayload

func (*ListRestoreTasksForbidden) IsClientError

func (o *ListRestoreTasksForbidden) IsClientError() bool

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

func (*ListRestoreTasksForbidden) IsCode

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

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

func (*ListRestoreTasksForbidden) IsRedirect

func (o *ListRestoreTasksForbidden) IsRedirect() bool

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

func (*ListRestoreTasksForbidden) IsServerError

func (o *ListRestoreTasksForbidden) IsServerError() bool

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

func (*ListRestoreTasksForbidden) IsSuccess

func (o *ListRestoreTasksForbidden) IsSuccess() bool

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

func (*ListRestoreTasksForbidden) String

func (o *ListRestoreTasksForbidden) String() string

type ListRestoreTasksForbiddenBody

type ListRestoreTasksForbiddenBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

ListRestoreTasksForbiddenBody list restore tasks forbidden body swagger:model ListRestoreTasksForbiddenBody

func (*ListRestoreTasksForbiddenBody) ContextValidate

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

ContextValidate validates this list restore tasks forbidden body based on context it is used

func (*ListRestoreTasksForbiddenBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListRestoreTasksForbiddenBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListRestoreTasksForbiddenBody) Validate

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

Validate validates this list restore tasks forbidden body

type ListRestoreTasksInternalServerError

type ListRestoreTasksInternalServerError struct {
	Payload *ListRestoreTasksInternalServerErrorBody
}

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

Server error.

func NewListRestoreTasksInternalServerError

func NewListRestoreTasksInternalServerError() *ListRestoreTasksInternalServerError

NewListRestoreTasksInternalServerError creates a ListRestoreTasksInternalServerError with default headers values

func (*ListRestoreTasksInternalServerError) Code

Code gets the status code for the list restore tasks internal server error response

func (*ListRestoreTasksInternalServerError) Error

func (*ListRestoreTasksInternalServerError) GetPayload

func (*ListRestoreTasksInternalServerError) IsClientError

func (o *ListRestoreTasksInternalServerError) IsClientError() bool

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

func (*ListRestoreTasksInternalServerError) IsCode

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

func (*ListRestoreTasksInternalServerError) IsRedirect

func (o *ListRestoreTasksInternalServerError) IsRedirect() bool

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

func (*ListRestoreTasksInternalServerError) IsServerError

func (o *ListRestoreTasksInternalServerError) IsServerError() bool

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

func (*ListRestoreTasksInternalServerError) IsSuccess

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

func (*ListRestoreTasksInternalServerError) String

type ListRestoreTasksInternalServerErrorBody

type ListRestoreTasksInternalServerErrorBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

ListRestoreTasksInternalServerErrorBody list restore tasks internal server error body swagger:model ListRestoreTasksInternalServerErrorBody

func (*ListRestoreTasksInternalServerErrorBody) ContextValidate

ContextValidate validates this list restore tasks internal server error body based on context it is used

func (*ListRestoreTasksInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListRestoreTasksInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListRestoreTasksInternalServerErrorBody) Validate

Validate validates this list restore tasks internal server error body

type ListRestoreTasksNotFound

type ListRestoreTasksNotFound struct {
	Payload *ListRestoreTasksNotFoundBody
}

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

The requested resource does not exist.

func NewListRestoreTasksNotFound

func NewListRestoreTasksNotFound() *ListRestoreTasksNotFound

NewListRestoreTasksNotFound creates a ListRestoreTasksNotFound with default headers values

func (*ListRestoreTasksNotFound) Code

func (o *ListRestoreTasksNotFound) Code() int

Code gets the status code for the list restore tasks not found response

func (*ListRestoreTasksNotFound) Error

func (o *ListRestoreTasksNotFound) Error() string

func (*ListRestoreTasksNotFound) GetPayload

func (*ListRestoreTasksNotFound) IsClientError

func (o *ListRestoreTasksNotFound) IsClientError() bool

IsClientError returns true when this list restore tasks not found response has a 4xx status code

func (*ListRestoreTasksNotFound) IsCode

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

IsCode returns true when this list restore tasks not found response a status code equal to that given

func (*ListRestoreTasksNotFound) IsRedirect

func (o *ListRestoreTasksNotFound) IsRedirect() bool

IsRedirect returns true when this list restore tasks not found response has a 3xx status code

func (*ListRestoreTasksNotFound) IsServerError

func (o *ListRestoreTasksNotFound) IsServerError() bool

IsServerError returns true when this list restore tasks not found response has a 5xx status code

func (*ListRestoreTasksNotFound) IsSuccess

func (o *ListRestoreTasksNotFound) IsSuccess() bool

IsSuccess returns true when this list restore tasks not found response has a 2xx status code

func (*ListRestoreTasksNotFound) String

func (o *ListRestoreTasksNotFound) String() string

type ListRestoreTasksNotFoundBody

type ListRestoreTasksNotFoundBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

ListRestoreTasksNotFoundBody list restore tasks not found body swagger:model ListRestoreTasksNotFoundBody

func (*ListRestoreTasksNotFoundBody) ContextValidate

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

ContextValidate validates this list restore tasks not found body based on context it is used

func (*ListRestoreTasksNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListRestoreTasksNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListRestoreTasksNotFoundBody) Validate

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

Validate validates this list restore tasks not found body

type ListRestoreTasksOK

type ListRestoreTasksOK struct {
	Payload *ListRestoreTasksOKBody
}

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

A successful response.

func NewListRestoreTasksOK

func NewListRestoreTasksOK() *ListRestoreTasksOK

NewListRestoreTasksOK creates a ListRestoreTasksOK with default headers values

func (*ListRestoreTasksOK) Code

func (o *ListRestoreTasksOK) Code() int

Code gets the status code for the list restore tasks o k response

func (*ListRestoreTasksOK) Error

func (o *ListRestoreTasksOK) Error() string

func (*ListRestoreTasksOK) GetPayload

func (o *ListRestoreTasksOK) GetPayload() *ListRestoreTasksOKBody

func (*ListRestoreTasksOK) IsClientError

func (o *ListRestoreTasksOK) IsClientError() bool

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

func (*ListRestoreTasksOK) IsCode

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

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

func (*ListRestoreTasksOK) IsRedirect

func (o *ListRestoreTasksOK) IsRedirect() bool

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

func (*ListRestoreTasksOK) IsServerError

func (o *ListRestoreTasksOK) IsServerError() bool

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

func (*ListRestoreTasksOK) IsSuccess

func (o *ListRestoreTasksOK) IsSuccess() bool

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

func (*ListRestoreTasksOK) String

func (o *ListRestoreTasksOK) String() string

type ListRestoreTasksOKBody

type ListRestoreTasksOKBody struct {

	// The items of all restore tasks.
	Items []*ListRestoreTasksOKBodyItemsItems0 `json:"items"`

	// The total number of restore tasks in the project.
	// Example: 10
	Total int64 `json:"total,omitempty"`
}

ListRestoreTasksOKBody ListRestoreResp // // This response for list restore. swagger:model ListRestoreTasksOKBody

func (*ListRestoreTasksOKBody) ContextValidate

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

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

func (*ListRestoreTasksOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListRestoreTasksOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListRestoreTasksOKBody) Validate

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

Validate validates this list restore tasks o k body

type ListRestoreTasksOKBodyItemsItems0

type ListRestoreTasksOKBodyItemsItems0 struct {

	// The ID of the backup.
	// Example: 1
	BackupID string `json:"backup_id,omitempty"`

	// cluster
	Cluster *ListRestoreTasksOKBodyItemsItems0Cluster `json:"cluster,omitempty"`

	// The cluster ID of the backup.
	// Example: 1
	ClusterID string `json:"cluster_id,omitempty"`

	// The creation time of the backup in UTC.
	//
	// The time format follows the [ISO8601](http://en.wikipedia.org/wiki/ISO_8601) standard, which is `YYYY-MM-DD` (year-month-day) + T +`HH:MM:SS` (hour-minutes-seconds) + Z. For example, `2020-01-01T00:00:00Z`.
	// Example: 2020-01-01T00:00:00Z
	// Format: date-time
	CreateTimestamp strfmt.DateTime `json:"create_timestamp,omitempty"`

	// The error message of restore if failed.
	// Example: Please contact support.
	ErrorMessage string `json:"error_message,omitempty"`

	// The ID of the restore task.
	// Example: 1
	ID string `json:"id,omitempty"`

	// The status of the restore task.
	// Example: PENDING
	// Enum: [PENDING RUNNING FAILED SUCCESS]
	Status string `json:"status,omitempty"`
}

ListRestoreTasksOKBodyItemsItems0 ListRestoreRespItem // // The items of all restore tasks. swagger:model ListRestoreTasksOKBodyItemsItems0

func (*ListRestoreTasksOKBodyItemsItems0) ContextValidate

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

ContextValidate validate this list restore tasks o k body items items0 based on the context it is used

func (*ListRestoreTasksOKBodyItemsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ListRestoreTasksOKBodyItemsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListRestoreTasksOKBodyItemsItems0) Validate

Validate validates this list restore tasks o k body items items0

type ListRestoreTasksOKBodyItemsItems0Cluster

type ListRestoreTasksOKBodyItemsItems0Cluster struct {

	// The ID of the restored cluster. The restored cluster is the new cluster your backup data is restored to.
	// Example: 1
	ID string `json:"id,omitempty"`

	// The name of the restored cluster. The restored cluster is the new cluster your backup data is restored to.
	// Example: cluster-1
	Name string `json:"name,omitempty"`

	// The status of the restored cluster. Possible values are `"AVAILABLE"`, `"CREATING"`, `"MODIFYING"`, `"PAUSED"`, `"RESUMING"`, `"UNAVAILABLE"`, `"IMPORTING"`, and `"CLEARED"`.
	// Example: AVAILABLE
	Status string `json:"status,omitempty"`
}

ListRestoreTasksOKBodyItemsItems0Cluster ClusterInfoOfRestore // // The information of the restored cluster. The restored cluster is the new cluster your backup data is restored to. swagger:model ListRestoreTasksOKBodyItemsItems0Cluster

func (*ListRestoreTasksOKBodyItemsItems0Cluster) ContextValidate

ContextValidate validates this list restore tasks o k body items items0 cluster based on context it is used

func (*ListRestoreTasksOKBodyItemsItems0Cluster) MarshalBinary

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

MarshalBinary interface implementation

func (*ListRestoreTasksOKBodyItemsItems0Cluster) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListRestoreTasksOKBodyItemsItems0Cluster) Validate

Validate validates this list restore tasks o k body items items0 cluster

type ListRestoreTasksParams

type ListRestoreTasksParams struct {

	/* Page.

	   The number of pages.

	   Format: int32
	   Default: 1
	*/
	Page *int32

	/* PageSize.

	   The size of a page.

	   Format: int32
	   Default: 10
	*/
	PageSize *int32

	/* ProjectID.

	   The ID of your project. You can get the project ID from the response of [List all accessible projects.](#tag/Project/operation/ListProjects).

	   Format: uint64
	*/
	ProjectID string

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

ListRestoreTasksParams contains all the parameters to send to the API endpoint

for the list restore tasks operation.

Typically these are written to a http.Request.

func NewListRestoreTasksParams

func NewListRestoreTasksParams() *ListRestoreTasksParams

NewListRestoreTasksParams creates a new ListRestoreTasksParams 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 NewListRestoreTasksParamsWithContext

func NewListRestoreTasksParamsWithContext(ctx context.Context) *ListRestoreTasksParams

NewListRestoreTasksParamsWithContext creates a new ListRestoreTasksParams object with the ability to set a context for a request.

func NewListRestoreTasksParamsWithHTTPClient

func NewListRestoreTasksParamsWithHTTPClient(client *http.Client) *ListRestoreTasksParams

NewListRestoreTasksParamsWithHTTPClient creates a new ListRestoreTasksParams object with the ability to set a custom HTTPClient for a request.

func NewListRestoreTasksParamsWithTimeout

func NewListRestoreTasksParamsWithTimeout(timeout time.Duration) *ListRestoreTasksParams

NewListRestoreTasksParamsWithTimeout creates a new ListRestoreTasksParams object with the ability to set a timeout on a request.

func (*ListRestoreTasksParams) SetContext

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

SetContext adds the context to the list restore tasks params

func (*ListRestoreTasksParams) SetDefaults

func (o *ListRestoreTasksParams) SetDefaults()

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

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

func (*ListRestoreTasksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list restore tasks params

func (*ListRestoreTasksParams) SetPage

func (o *ListRestoreTasksParams) SetPage(page *int32)

SetPage adds the page to the list restore tasks params

func (*ListRestoreTasksParams) SetPageSize

func (o *ListRestoreTasksParams) SetPageSize(pageSize *int32)

SetPageSize adds the pageSize to the list restore tasks params

func (*ListRestoreTasksParams) SetProjectID

func (o *ListRestoreTasksParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list restore tasks params

func (*ListRestoreTasksParams) SetTimeout

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

SetTimeout adds the timeout to the list restore tasks params

func (*ListRestoreTasksParams) WithContext

WithContext adds the context to the list restore tasks params

func (*ListRestoreTasksParams) WithDefaults

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

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

func (*ListRestoreTasksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list restore tasks params

func (*ListRestoreTasksParams) WithPage

WithPage adds the page to the list restore tasks params

func (*ListRestoreTasksParams) WithPageSize

func (o *ListRestoreTasksParams) WithPageSize(pageSize *int32) *ListRestoreTasksParams

WithPageSize adds the pageSize to the list restore tasks params

func (*ListRestoreTasksParams) WithProjectID

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

WithProjectID adds the projectID to the list restore tasks params

func (*ListRestoreTasksParams) WithTimeout

WithTimeout adds the timeout to the list restore tasks params

func (*ListRestoreTasksParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListRestoreTasksReader

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

ListRestoreTasksReader is a Reader for the ListRestoreTasks structure.

func (*ListRestoreTasksReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListRestoreTasksTooManyRequests

type ListRestoreTasksTooManyRequests struct {
	Payload *ListRestoreTasksTooManyRequestsBody
}

ListRestoreTasksTooManyRequests describes a response with status code 429, with default header values.

You have exceed the rate limit.

func NewListRestoreTasksTooManyRequests

func NewListRestoreTasksTooManyRequests() *ListRestoreTasksTooManyRequests

NewListRestoreTasksTooManyRequests creates a ListRestoreTasksTooManyRequests with default headers values

func (*ListRestoreTasksTooManyRequests) Code

Code gets the status code for the list restore tasks too many requests response

func (*ListRestoreTasksTooManyRequests) Error

func (*ListRestoreTasksTooManyRequests) GetPayload

func (*ListRestoreTasksTooManyRequests) IsClientError

func (o *ListRestoreTasksTooManyRequests) IsClientError() bool

IsClientError returns true when this list restore tasks too many requests response has a 4xx status code

func (*ListRestoreTasksTooManyRequests) IsCode

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

IsCode returns true when this list restore tasks too many requests response a status code equal to that given

func (*ListRestoreTasksTooManyRequests) IsRedirect

func (o *ListRestoreTasksTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list restore tasks too many requests response has a 3xx status code

func (*ListRestoreTasksTooManyRequests) IsServerError

func (o *ListRestoreTasksTooManyRequests) IsServerError() bool

IsServerError returns true when this list restore tasks too many requests response has a 5xx status code

func (*ListRestoreTasksTooManyRequests) IsSuccess

func (o *ListRestoreTasksTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list restore tasks too many requests response has a 2xx status code

func (*ListRestoreTasksTooManyRequests) String

type ListRestoreTasksTooManyRequestsBody

type ListRestoreTasksTooManyRequestsBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

ListRestoreTasksTooManyRequestsBody list restore tasks too many requests body swagger:model ListRestoreTasksTooManyRequestsBody

func (*ListRestoreTasksTooManyRequestsBody) ContextValidate

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

ContextValidate validates this list restore tasks too many requests body based on context it is used

func (*ListRestoreTasksTooManyRequestsBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListRestoreTasksTooManyRequestsBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListRestoreTasksTooManyRequestsBody) Validate

Validate validates this list restore tasks too many requests body

type ListRestoreTasksUnauthorized

type ListRestoreTasksUnauthorized struct {
	Payload interface{}
}

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

The API key cannot be authenticated.

func NewListRestoreTasksUnauthorized

func NewListRestoreTasksUnauthorized() *ListRestoreTasksUnauthorized

NewListRestoreTasksUnauthorized creates a ListRestoreTasksUnauthorized with default headers values

func (*ListRestoreTasksUnauthorized) Code

Code gets the status code for the list restore tasks unauthorized response

func (*ListRestoreTasksUnauthorized) Error

func (*ListRestoreTasksUnauthorized) GetPayload

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

func (*ListRestoreTasksUnauthorized) IsClientError

func (o *ListRestoreTasksUnauthorized) IsClientError() bool

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

func (*ListRestoreTasksUnauthorized) IsCode

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

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

func (*ListRestoreTasksUnauthorized) IsRedirect

func (o *ListRestoreTasksUnauthorized) IsRedirect() bool

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

func (*ListRestoreTasksUnauthorized) IsServerError

func (o *ListRestoreTasksUnauthorized) IsServerError() bool

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

func (*ListRestoreTasksUnauthorized) IsSuccess

func (o *ListRestoreTasksUnauthorized) IsSuccess() bool

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

func (*ListRestoreTasksUnauthorized) String

Jump to

Keyboard shortcuts

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