Documentation ¶
Index ¶
- Constants
- type Client
- func (a *Client) CreateRestoreTask(params *CreateRestoreTaskParams, opts ...ClientOption) (*CreateRestoreTaskOK, error)
- func (a *Client) GetRestoreTask(params *GetRestoreTaskParams, opts ...ClientOption) (*GetRestoreTaskOK, error)
- func (a *Client) ListRestoreTasks(params *ListRestoreTasksParams, opts ...ClientOption) (*ListRestoreTasksOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateRestoreTaskBadRequest
- func (o *CreateRestoreTaskBadRequest) Code() int
- func (o *CreateRestoreTaskBadRequest) Error() string
- func (o *CreateRestoreTaskBadRequest) GetPayload() *CreateRestoreTaskBadRequestBody
- func (o *CreateRestoreTaskBadRequest) IsClientError() bool
- func (o *CreateRestoreTaskBadRequest) IsCode(code int) bool
- func (o *CreateRestoreTaskBadRequest) IsRedirect() bool
- func (o *CreateRestoreTaskBadRequest) IsServerError() bool
- func (o *CreateRestoreTaskBadRequest) IsSuccess() bool
- func (o *CreateRestoreTaskBadRequest) String() string
- type CreateRestoreTaskBadRequestBody
- func (o *CreateRestoreTaskBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskBadRequestBody) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskBody
- type CreateRestoreTaskDefault
- func (o *CreateRestoreTaskDefault) Code() int
- func (o *CreateRestoreTaskDefault) Error() string
- func (o *CreateRestoreTaskDefault) GetPayload() *CreateRestoreTaskDefaultBody
- func (o *CreateRestoreTaskDefault) IsClientError() bool
- func (o *CreateRestoreTaskDefault) IsCode(code int) bool
- func (o *CreateRestoreTaskDefault) IsRedirect() bool
- func (o *CreateRestoreTaskDefault) IsServerError() bool
- func (o *CreateRestoreTaskDefault) IsSuccess() bool
- func (o *CreateRestoreTaskDefault) String() string
- type CreateRestoreTaskDefaultBody
- func (o *CreateRestoreTaskDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskDefaultBody) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskDefaultBody) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskDefaultBody) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskDefaultBodyDetailsItems0
- func (o *CreateRestoreTaskDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskForbidden
- func (o *CreateRestoreTaskForbidden) Code() int
- func (o *CreateRestoreTaskForbidden) Error() string
- func (o *CreateRestoreTaskForbidden) GetPayload() *CreateRestoreTaskForbiddenBody
- func (o *CreateRestoreTaskForbidden) IsClientError() bool
- func (o *CreateRestoreTaskForbidden) IsCode(code int) bool
- func (o *CreateRestoreTaskForbidden) IsRedirect() bool
- func (o *CreateRestoreTaskForbidden) IsServerError() bool
- func (o *CreateRestoreTaskForbidden) IsSuccess() bool
- func (o *CreateRestoreTaskForbidden) String() string
- type CreateRestoreTaskForbiddenBody
- func (o *CreateRestoreTaskForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskForbiddenBody) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskInternalServerError
- func (o *CreateRestoreTaskInternalServerError) Code() int
- func (o *CreateRestoreTaskInternalServerError) Error() string
- func (o *CreateRestoreTaskInternalServerError) GetPayload() *CreateRestoreTaskInternalServerErrorBody
- func (o *CreateRestoreTaskInternalServerError) IsClientError() bool
- func (o *CreateRestoreTaskInternalServerError) IsCode(code int) bool
- func (o *CreateRestoreTaskInternalServerError) IsRedirect() bool
- func (o *CreateRestoreTaskInternalServerError) IsServerError() bool
- func (o *CreateRestoreTaskInternalServerError) IsSuccess() bool
- func (o *CreateRestoreTaskInternalServerError) String() string
- type CreateRestoreTaskInternalServerErrorBody
- func (o *CreateRestoreTaskInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskNotFound
- func (o *CreateRestoreTaskNotFound) Code() int
- func (o *CreateRestoreTaskNotFound) Error() string
- func (o *CreateRestoreTaskNotFound) GetPayload() *CreateRestoreTaskNotFoundBody
- func (o *CreateRestoreTaskNotFound) IsClientError() bool
- func (o *CreateRestoreTaskNotFound) IsCode(code int) bool
- func (o *CreateRestoreTaskNotFound) IsRedirect() bool
- func (o *CreateRestoreTaskNotFound) IsServerError() bool
- func (o *CreateRestoreTaskNotFound) IsSuccess() bool
- func (o *CreateRestoreTaskNotFound) String() string
- type CreateRestoreTaskNotFoundBody
- func (o *CreateRestoreTaskNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskNotFoundBody) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskOK
- func (o *CreateRestoreTaskOK) Code() int
- func (o *CreateRestoreTaskOK) Error() string
- func (o *CreateRestoreTaskOK) GetPayload() *CreateRestoreTaskOKBody
- func (o *CreateRestoreTaskOK) IsClientError() bool
- func (o *CreateRestoreTaskOK) IsCode(code int) bool
- func (o *CreateRestoreTaskOK) IsRedirect() bool
- func (o *CreateRestoreTaskOK) IsServerError() bool
- func (o *CreateRestoreTaskOK) IsSuccess() bool
- func (o *CreateRestoreTaskOK) String() string
- type CreateRestoreTaskOKBody
- func (o *CreateRestoreTaskOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskOKBody) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskOKBody) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskOKBody) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskParams
- func NewCreateRestoreTaskParams() *CreateRestoreTaskParams
- func NewCreateRestoreTaskParamsWithContext(ctx context.Context) *CreateRestoreTaskParams
- func NewCreateRestoreTaskParamsWithHTTPClient(client *http.Client) *CreateRestoreTaskParams
- func NewCreateRestoreTaskParamsWithTimeout(timeout time.Duration) *CreateRestoreTaskParams
- func (o *CreateRestoreTaskParams) SetBody(body CreateRestoreTaskBody)
- func (o *CreateRestoreTaskParams) SetContext(ctx context.Context)
- func (o *CreateRestoreTaskParams) SetDefaults()
- func (o *CreateRestoreTaskParams) SetHTTPClient(client *http.Client)
- func (o *CreateRestoreTaskParams) SetProjectID(projectID string)
- func (o *CreateRestoreTaskParams) SetTimeout(timeout time.Duration)
- func (o *CreateRestoreTaskParams) WithBody(body CreateRestoreTaskBody) *CreateRestoreTaskParams
- func (o *CreateRestoreTaskParams) WithContext(ctx context.Context) *CreateRestoreTaskParams
- func (o *CreateRestoreTaskParams) WithDefaults() *CreateRestoreTaskParams
- func (o *CreateRestoreTaskParams) WithHTTPClient(client *http.Client) *CreateRestoreTaskParams
- func (o *CreateRestoreTaskParams) WithProjectID(projectID string) *CreateRestoreTaskParams
- func (o *CreateRestoreTaskParams) WithTimeout(timeout time.Duration) *CreateRestoreTaskParams
- func (o *CreateRestoreTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateRestoreTaskParamsBodyConfig
- func (o *CreateRestoreTaskParamsBodyConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskParamsBodyConfig) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskParamsBodyConfig) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskParamsBodyConfig) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskParamsBodyConfigComponents
- func (o *CreateRestoreTaskParamsBodyConfigComponents) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskParamsBodyConfigComponents) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskParamsBodyConfigComponents) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskParamsBodyConfigComponents) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskParamsBodyConfigComponentsTidb
- func (o *CreateRestoreTaskParamsBodyConfigComponentsTidb) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskParamsBodyConfigComponentsTidb) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskParamsBodyConfigComponentsTidb) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskParamsBodyConfigComponentsTidb) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskParamsBodyConfigComponentsTiflash
- func (o *CreateRestoreTaskParamsBodyConfigComponentsTiflash) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskParamsBodyConfigComponentsTiflash) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskParamsBodyConfigComponentsTiflash) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskParamsBodyConfigComponentsTiflash) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskParamsBodyConfigComponentsTikv
- func (o *CreateRestoreTaskParamsBodyConfigComponentsTikv) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskParamsBodyConfigComponentsTikv) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskParamsBodyConfigComponentsTikv) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskParamsBodyConfigComponentsTikv) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskParamsBodyConfigIPAccessListItems0
- func (o *CreateRestoreTaskParamsBodyConfigIPAccessListItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskParamsBodyConfigIPAccessListItems0) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskParamsBodyConfigIPAccessListItems0) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskParamsBodyConfigIPAccessListItems0) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskReader
- type CreateRestoreTaskTooManyRequests
- func (o *CreateRestoreTaskTooManyRequests) Code() int
- func (o *CreateRestoreTaskTooManyRequests) Error() string
- func (o *CreateRestoreTaskTooManyRequests) GetPayload() *CreateRestoreTaskTooManyRequestsBody
- func (o *CreateRestoreTaskTooManyRequests) IsClientError() bool
- func (o *CreateRestoreTaskTooManyRequests) IsCode(code int) bool
- func (o *CreateRestoreTaskTooManyRequests) IsRedirect() bool
- func (o *CreateRestoreTaskTooManyRequests) IsServerError() bool
- func (o *CreateRestoreTaskTooManyRequests) IsSuccess() bool
- func (o *CreateRestoreTaskTooManyRequests) String() string
- type CreateRestoreTaskTooManyRequestsBody
- func (o *CreateRestoreTaskTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRestoreTaskTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *CreateRestoreTaskTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *CreateRestoreTaskTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type CreateRestoreTaskUnauthorized
- func (o *CreateRestoreTaskUnauthorized) Code() int
- func (o *CreateRestoreTaskUnauthorized) Error() string
- func (o *CreateRestoreTaskUnauthorized) GetPayload() interface{}
- func (o *CreateRestoreTaskUnauthorized) IsClientError() bool
- func (o *CreateRestoreTaskUnauthorized) IsCode(code int) bool
- func (o *CreateRestoreTaskUnauthorized) IsRedirect() bool
- func (o *CreateRestoreTaskUnauthorized) IsServerError() bool
- func (o *CreateRestoreTaskUnauthorized) IsSuccess() bool
- func (o *CreateRestoreTaskUnauthorized) String() string
- type GetRestoreTaskBadRequest
- func (o *GetRestoreTaskBadRequest) Code() int
- func (o *GetRestoreTaskBadRequest) Error() string
- func (o *GetRestoreTaskBadRequest) GetPayload() *GetRestoreTaskBadRequestBody
- func (o *GetRestoreTaskBadRequest) IsClientError() bool
- func (o *GetRestoreTaskBadRequest) IsCode(code int) bool
- func (o *GetRestoreTaskBadRequest) IsRedirect() bool
- func (o *GetRestoreTaskBadRequest) IsServerError() bool
- func (o *GetRestoreTaskBadRequest) IsSuccess() bool
- func (o *GetRestoreTaskBadRequest) String() string
- type GetRestoreTaskBadRequestBody
- func (o *GetRestoreTaskBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRestoreTaskBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *GetRestoreTaskBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *GetRestoreTaskBadRequestBody) Validate(formats strfmt.Registry) error
- type GetRestoreTaskDefault
- func (o *GetRestoreTaskDefault) Code() int
- func (o *GetRestoreTaskDefault) Error() string
- func (o *GetRestoreTaskDefault) GetPayload() *GetRestoreTaskDefaultBody
- func (o *GetRestoreTaskDefault) IsClientError() bool
- func (o *GetRestoreTaskDefault) IsCode(code int) bool
- func (o *GetRestoreTaskDefault) IsRedirect() bool
- func (o *GetRestoreTaskDefault) IsServerError() bool
- func (o *GetRestoreTaskDefault) IsSuccess() bool
- func (o *GetRestoreTaskDefault) String() string
- type GetRestoreTaskDefaultBody
- func (o *GetRestoreTaskDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRestoreTaskDefaultBody) MarshalBinary() ([]byte, error)
- func (o *GetRestoreTaskDefaultBody) UnmarshalBinary(b []byte) error
- func (o *GetRestoreTaskDefaultBody) Validate(formats strfmt.Registry) error
- type GetRestoreTaskDefaultBodyDetailsItems0
- func (o *GetRestoreTaskDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRestoreTaskDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *GetRestoreTaskDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *GetRestoreTaskDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type GetRestoreTaskForbidden
- func (o *GetRestoreTaskForbidden) Code() int
- func (o *GetRestoreTaskForbidden) Error() string
- func (o *GetRestoreTaskForbidden) GetPayload() *GetRestoreTaskForbiddenBody
- func (o *GetRestoreTaskForbidden) IsClientError() bool
- func (o *GetRestoreTaskForbidden) IsCode(code int) bool
- func (o *GetRestoreTaskForbidden) IsRedirect() bool
- func (o *GetRestoreTaskForbidden) IsServerError() bool
- func (o *GetRestoreTaskForbidden) IsSuccess() bool
- func (o *GetRestoreTaskForbidden) String() string
- type GetRestoreTaskForbiddenBody
- func (o *GetRestoreTaskForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRestoreTaskForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *GetRestoreTaskForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *GetRestoreTaskForbiddenBody) Validate(formats strfmt.Registry) error
- type GetRestoreTaskInternalServerError
- func (o *GetRestoreTaskInternalServerError) Code() int
- func (o *GetRestoreTaskInternalServerError) Error() string
- func (o *GetRestoreTaskInternalServerError) GetPayload() *GetRestoreTaskInternalServerErrorBody
- func (o *GetRestoreTaskInternalServerError) IsClientError() bool
- func (o *GetRestoreTaskInternalServerError) IsCode(code int) bool
- func (o *GetRestoreTaskInternalServerError) IsRedirect() bool
- func (o *GetRestoreTaskInternalServerError) IsServerError() bool
- func (o *GetRestoreTaskInternalServerError) IsSuccess() bool
- func (o *GetRestoreTaskInternalServerError) String() string
- type GetRestoreTaskInternalServerErrorBody
- func (o *GetRestoreTaskInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRestoreTaskInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *GetRestoreTaskInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *GetRestoreTaskInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type GetRestoreTaskNotFound
- func (o *GetRestoreTaskNotFound) Code() int
- func (o *GetRestoreTaskNotFound) Error() string
- func (o *GetRestoreTaskNotFound) GetPayload() *GetRestoreTaskNotFoundBody
- func (o *GetRestoreTaskNotFound) IsClientError() bool
- func (o *GetRestoreTaskNotFound) IsCode(code int) bool
- func (o *GetRestoreTaskNotFound) IsRedirect() bool
- func (o *GetRestoreTaskNotFound) IsServerError() bool
- func (o *GetRestoreTaskNotFound) IsSuccess() bool
- func (o *GetRestoreTaskNotFound) String() string
- type GetRestoreTaskNotFoundBody
- func (o *GetRestoreTaskNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRestoreTaskNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *GetRestoreTaskNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *GetRestoreTaskNotFoundBody) Validate(formats strfmt.Registry) error
- type GetRestoreTaskOK
- func (o *GetRestoreTaskOK) Code() int
- func (o *GetRestoreTaskOK) Error() string
- func (o *GetRestoreTaskOK) GetPayload() *GetRestoreTaskOKBody
- func (o *GetRestoreTaskOK) IsClientError() bool
- func (o *GetRestoreTaskOK) IsCode(code int) bool
- func (o *GetRestoreTaskOK) IsRedirect() bool
- func (o *GetRestoreTaskOK) IsServerError() bool
- func (o *GetRestoreTaskOK) IsSuccess() bool
- func (o *GetRestoreTaskOK) String() string
- type GetRestoreTaskOKBody
- type GetRestoreTaskOKBodyCluster
- func (o *GetRestoreTaskOKBodyCluster) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRestoreTaskOKBodyCluster) MarshalBinary() ([]byte, error)
- func (o *GetRestoreTaskOKBodyCluster) UnmarshalBinary(b []byte) error
- func (o *GetRestoreTaskOKBodyCluster) Validate(formats strfmt.Registry) error
- type GetRestoreTaskParams
- func NewGetRestoreTaskParams() *GetRestoreTaskParams
- func NewGetRestoreTaskParamsWithContext(ctx context.Context) *GetRestoreTaskParams
- func NewGetRestoreTaskParamsWithHTTPClient(client *http.Client) *GetRestoreTaskParams
- func NewGetRestoreTaskParamsWithTimeout(timeout time.Duration) *GetRestoreTaskParams
- func (o *GetRestoreTaskParams) SetContext(ctx context.Context)
- func (o *GetRestoreTaskParams) SetDefaults()
- func (o *GetRestoreTaskParams) SetHTTPClient(client *http.Client)
- func (o *GetRestoreTaskParams) SetProjectID(projectID string)
- func (o *GetRestoreTaskParams) SetRestoreID(restoreID string)
- func (o *GetRestoreTaskParams) SetTimeout(timeout time.Duration)
- func (o *GetRestoreTaskParams) WithContext(ctx context.Context) *GetRestoreTaskParams
- func (o *GetRestoreTaskParams) WithDefaults() *GetRestoreTaskParams
- func (o *GetRestoreTaskParams) WithHTTPClient(client *http.Client) *GetRestoreTaskParams
- func (o *GetRestoreTaskParams) WithProjectID(projectID string) *GetRestoreTaskParams
- func (o *GetRestoreTaskParams) WithRestoreID(restoreID string) *GetRestoreTaskParams
- func (o *GetRestoreTaskParams) WithTimeout(timeout time.Duration) *GetRestoreTaskParams
- func (o *GetRestoreTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRestoreTaskReader
- type GetRestoreTaskTooManyRequests
- func (o *GetRestoreTaskTooManyRequests) Code() int
- func (o *GetRestoreTaskTooManyRequests) Error() string
- func (o *GetRestoreTaskTooManyRequests) GetPayload() *GetRestoreTaskTooManyRequestsBody
- func (o *GetRestoreTaskTooManyRequests) IsClientError() bool
- func (o *GetRestoreTaskTooManyRequests) IsCode(code int) bool
- func (o *GetRestoreTaskTooManyRequests) IsRedirect() bool
- func (o *GetRestoreTaskTooManyRequests) IsServerError() bool
- func (o *GetRestoreTaskTooManyRequests) IsSuccess() bool
- func (o *GetRestoreTaskTooManyRequests) String() string
- type GetRestoreTaskTooManyRequestsBody
- func (o *GetRestoreTaskTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRestoreTaskTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *GetRestoreTaskTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *GetRestoreTaskTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type GetRestoreTaskUnauthorized
- func (o *GetRestoreTaskUnauthorized) Code() int
- func (o *GetRestoreTaskUnauthorized) Error() string
- func (o *GetRestoreTaskUnauthorized) GetPayload() interface{}
- func (o *GetRestoreTaskUnauthorized) IsClientError() bool
- func (o *GetRestoreTaskUnauthorized) IsCode(code int) bool
- func (o *GetRestoreTaskUnauthorized) IsRedirect() bool
- func (o *GetRestoreTaskUnauthorized) IsServerError() bool
- func (o *GetRestoreTaskUnauthorized) IsSuccess() bool
- func (o *GetRestoreTaskUnauthorized) String() string
- type ListRestoreTasksBadRequest
- func (o *ListRestoreTasksBadRequest) Code() int
- func (o *ListRestoreTasksBadRequest) Error() string
- func (o *ListRestoreTasksBadRequest) GetPayload() *ListRestoreTasksBadRequestBody
- func (o *ListRestoreTasksBadRequest) IsClientError() bool
- func (o *ListRestoreTasksBadRequest) IsCode(code int) bool
- func (o *ListRestoreTasksBadRequest) IsRedirect() bool
- func (o *ListRestoreTasksBadRequest) IsServerError() bool
- func (o *ListRestoreTasksBadRequest) IsSuccess() bool
- func (o *ListRestoreTasksBadRequest) String() string
- type ListRestoreTasksBadRequestBody
- func (o *ListRestoreTasksBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListRestoreTasksBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *ListRestoreTasksBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *ListRestoreTasksBadRequestBody) Validate(formats strfmt.Registry) error
- type ListRestoreTasksDefault
- func (o *ListRestoreTasksDefault) Code() int
- func (o *ListRestoreTasksDefault) Error() string
- func (o *ListRestoreTasksDefault) GetPayload() *ListRestoreTasksDefaultBody
- func (o *ListRestoreTasksDefault) IsClientError() bool
- func (o *ListRestoreTasksDefault) IsCode(code int) bool
- func (o *ListRestoreTasksDefault) IsRedirect() bool
- func (o *ListRestoreTasksDefault) IsServerError() bool
- func (o *ListRestoreTasksDefault) IsSuccess() bool
- func (o *ListRestoreTasksDefault) String() string
- type ListRestoreTasksDefaultBody
- func (o *ListRestoreTasksDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListRestoreTasksDefaultBody) MarshalBinary() ([]byte, error)
- func (o *ListRestoreTasksDefaultBody) UnmarshalBinary(b []byte) error
- func (o *ListRestoreTasksDefaultBody) Validate(formats strfmt.Registry) error
- type ListRestoreTasksDefaultBodyDetailsItems0
- func (o *ListRestoreTasksDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListRestoreTasksDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *ListRestoreTasksDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *ListRestoreTasksDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type ListRestoreTasksForbidden
- func (o *ListRestoreTasksForbidden) Code() int
- func (o *ListRestoreTasksForbidden) Error() string
- func (o *ListRestoreTasksForbidden) GetPayload() *ListRestoreTasksForbiddenBody
- func (o *ListRestoreTasksForbidden) IsClientError() bool
- func (o *ListRestoreTasksForbidden) IsCode(code int) bool
- func (o *ListRestoreTasksForbidden) IsRedirect() bool
- func (o *ListRestoreTasksForbidden) IsServerError() bool
- func (o *ListRestoreTasksForbidden) IsSuccess() bool
- func (o *ListRestoreTasksForbidden) String() string
- type ListRestoreTasksForbiddenBody
- func (o *ListRestoreTasksForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListRestoreTasksForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *ListRestoreTasksForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *ListRestoreTasksForbiddenBody) Validate(formats strfmt.Registry) error
- type ListRestoreTasksInternalServerError
- func (o *ListRestoreTasksInternalServerError) Code() int
- func (o *ListRestoreTasksInternalServerError) Error() string
- func (o *ListRestoreTasksInternalServerError) GetPayload() *ListRestoreTasksInternalServerErrorBody
- func (o *ListRestoreTasksInternalServerError) IsClientError() bool
- func (o *ListRestoreTasksInternalServerError) IsCode(code int) bool
- func (o *ListRestoreTasksInternalServerError) IsRedirect() bool
- func (o *ListRestoreTasksInternalServerError) IsServerError() bool
- func (o *ListRestoreTasksInternalServerError) IsSuccess() bool
- func (o *ListRestoreTasksInternalServerError) String() string
- type ListRestoreTasksInternalServerErrorBody
- func (o *ListRestoreTasksInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListRestoreTasksInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *ListRestoreTasksInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *ListRestoreTasksInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type ListRestoreTasksNotFound
- func (o *ListRestoreTasksNotFound) Code() int
- func (o *ListRestoreTasksNotFound) Error() string
- func (o *ListRestoreTasksNotFound) GetPayload() *ListRestoreTasksNotFoundBody
- func (o *ListRestoreTasksNotFound) IsClientError() bool
- func (o *ListRestoreTasksNotFound) IsCode(code int) bool
- func (o *ListRestoreTasksNotFound) IsRedirect() bool
- func (o *ListRestoreTasksNotFound) IsServerError() bool
- func (o *ListRestoreTasksNotFound) IsSuccess() bool
- func (o *ListRestoreTasksNotFound) String() string
- type ListRestoreTasksNotFoundBody
- func (o *ListRestoreTasksNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListRestoreTasksNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *ListRestoreTasksNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *ListRestoreTasksNotFoundBody) Validate(formats strfmt.Registry) error
- type ListRestoreTasksOK
- func (o *ListRestoreTasksOK) Code() int
- func (o *ListRestoreTasksOK) Error() string
- func (o *ListRestoreTasksOK) GetPayload() *ListRestoreTasksOKBody
- func (o *ListRestoreTasksOK) IsClientError() bool
- func (o *ListRestoreTasksOK) IsCode(code int) bool
- func (o *ListRestoreTasksOK) IsRedirect() bool
- func (o *ListRestoreTasksOK) IsServerError() bool
- func (o *ListRestoreTasksOK) IsSuccess() bool
- func (o *ListRestoreTasksOK) String() string
- type ListRestoreTasksOKBody
- func (o *ListRestoreTasksOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListRestoreTasksOKBody) MarshalBinary() ([]byte, error)
- func (o *ListRestoreTasksOKBody) UnmarshalBinary(b []byte) error
- func (o *ListRestoreTasksOKBody) Validate(formats strfmt.Registry) error
- type ListRestoreTasksOKBodyItemsItems0
- func (o *ListRestoreTasksOKBodyItemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListRestoreTasksOKBodyItemsItems0) MarshalBinary() ([]byte, error)
- func (o *ListRestoreTasksOKBodyItemsItems0) UnmarshalBinary(b []byte) error
- func (o *ListRestoreTasksOKBodyItemsItems0) Validate(formats strfmt.Registry) error
- type ListRestoreTasksOKBodyItemsItems0Cluster
- func (o *ListRestoreTasksOKBodyItemsItems0Cluster) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListRestoreTasksOKBodyItemsItems0Cluster) MarshalBinary() ([]byte, error)
- func (o *ListRestoreTasksOKBodyItemsItems0Cluster) UnmarshalBinary(b []byte) error
- func (o *ListRestoreTasksOKBodyItemsItems0Cluster) Validate(formats strfmt.Registry) error
- type ListRestoreTasksParams
- func NewListRestoreTasksParams() *ListRestoreTasksParams
- func NewListRestoreTasksParamsWithContext(ctx context.Context) *ListRestoreTasksParams
- func NewListRestoreTasksParamsWithHTTPClient(client *http.Client) *ListRestoreTasksParams
- func NewListRestoreTasksParamsWithTimeout(timeout time.Duration) *ListRestoreTasksParams
- func (o *ListRestoreTasksParams) SetContext(ctx context.Context)
- func (o *ListRestoreTasksParams) SetDefaults()
- func (o *ListRestoreTasksParams) SetHTTPClient(client *http.Client)
- func (o *ListRestoreTasksParams) SetPage(page *int32)
- func (o *ListRestoreTasksParams) SetPageSize(pageSize *int32)
- func (o *ListRestoreTasksParams) SetProjectID(projectID string)
- func (o *ListRestoreTasksParams) SetTimeout(timeout time.Duration)
- func (o *ListRestoreTasksParams) WithContext(ctx context.Context) *ListRestoreTasksParams
- func (o *ListRestoreTasksParams) WithDefaults() *ListRestoreTasksParams
- func (o *ListRestoreTasksParams) WithHTTPClient(client *http.Client) *ListRestoreTasksParams
- func (o *ListRestoreTasksParams) WithPage(page *int32) *ListRestoreTasksParams
- func (o *ListRestoreTasksParams) WithPageSize(pageSize *int32) *ListRestoreTasksParams
- func (o *ListRestoreTasksParams) WithProjectID(projectID string) *ListRestoreTasksParams
- func (o *ListRestoreTasksParams) WithTimeout(timeout time.Duration) *ListRestoreTasksParams
- func (o *ListRestoreTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListRestoreTasksReader
- type ListRestoreTasksTooManyRequests
- func (o *ListRestoreTasksTooManyRequests) Code() int
- func (o *ListRestoreTasksTooManyRequests) Error() string
- func (o *ListRestoreTasksTooManyRequests) GetPayload() *ListRestoreTasksTooManyRequestsBody
- func (o *ListRestoreTasksTooManyRequests) IsClientError() bool
- func (o *ListRestoreTasksTooManyRequests) IsCode(code int) bool
- func (o *ListRestoreTasksTooManyRequests) IsRedirect() bool
- func (o *ListRestoreTasksTooManyRequests) IsServerError() bool
- func (o *ListRestoreTasksTooManyRequests) IsSuccess() bool
- func (o *ListRestoreTasksTooManyRequests) String() string
- type ListRestoreTasksTooManyRequestsBody
- func (o *ListRestoreTasksTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListRestoreTasksTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *ListRestoreTasksTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *ListRestoreTasksTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type ListRestoreTasksUnauthorized
- func (o *ListRestoreTasksUnauthorized) Code() int
- func (o *ListRestoreTasksUnauthorized) Error() string
- func (o *ListRestoreTasksUnauthorized) GetPayload() interface{}
- func (o *ListRestoreTasksUnauthorized) IsClientError() bool
- func (o *ListRestoreTasksUnauthorized) IsCode(code int) bool
- func (o *ListRestoreTasksUnauthorized) IsRedirect() bool
- func (o *ListRestoreTasksUnauthorized) IsServerError() bool
- func (o *ListRestoreTasksUnauthorized) IsSuccess() bool
- func (o *ListRestoreTasksUnauthorized) String() string
Constants ¶
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" )
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 (o *CreateRestoreTaskBadRequest) Error() string
func (*CreateRestoreTaskBadRequest) GetPayload ¶
func (o *CreateRestoreTaskBadRequest) GetPayload() *CreateRestoreTaskBadRequestBody
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
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 ¶
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
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 (o *CreateRestoreTaskDefault) GetPayload() *CreateRestoreTaskDefaultBody
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
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 ¶
func (o *CreateRestoreTaskDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *CreateRestoreTaskForbidden) Error() string
func (*CreateRestoreTaskForbidden) GetPayload ¶
func (o *CreateRestoreTaskForbidden) GetPayload() *CreateRestoreTaskForbiddenBody
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
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 ¶
func (o *CreateRestoreTaskInternalServerError) Code() int
Code gets the status code for the create restore task internal server error response
func (*CreateRestoreTaskInternalServerError) Error ¶
func (o *CreateRestoreTaskInternalServerError) Error() string
func (*CreateRestoreTaskInternalServerError) GetPayload ¶
func (o *CreateRestoreTaskInternalServerError) GetPayload() *CreateRestoreTaskInternalServerErrorBody
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 ¶
func (o *CreateRestoreTaskInternalServerError) IsCode(code int) bool
IsCode returns true when this create restore task internal server error response a status code equal to that given
func (*CreateRestoreTaskInternalServerError) IsRedirect ¶
func (o *CreateRestoreTaskInternalServerError) IsRedirect() bool
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 ¶
func (o *CreateRestoreTaskInternalServerError) IsSuccess() bool
IsSuccess returns true when this create restore task internal server error response has a 2xx status code
func (*CreateRestoreTaskInternalServerError) String ¶
func (o *CreateRestoreTaskInternalServerError) String() 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 ¶
func (o *CreateRestoreTaskInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *CreateRestoreTaskNotFound) GetPayload() *CreateRestoreTaskNotFoundBody
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
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 (o *CreateRestoreTaskOK) GetPayload() *CreateRestoreTaskOKBody
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
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 ¶
func (o *CreateRestoreTaskParams) SetBody(body CreateRestoreTaskBody)
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 ¶
func (o *CreateRestoreTaskParams) WithBody(body CreateRestoreTaskBody) *CreateRestoreTaskParams
WithBody adds the body to the create restore task params
func (*CreateRestoreTaskParams) WithContext ¶
func (o *CreateRestoreTaskParams) WithContext(ctx context.Context) *CreateRestoreTaskParams
WithContext adds the context to the create restore task params
func (*CreateRestoreTaskParams) WithDefaults ¶
func (o *CreateRestoreTaskParams) WithDefaults() *CreateRestoreTaskParams
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 ¶
func (o *CreateRestoreTaskParams) WithTimeout(timeout time.Duration) *CreateRestoreTaskParams
WithTimeout adds the timeout to the create restore task params
func (*CreateRestoreTaskParams) WriteToRequest ¶
func (o *CreateRestoreTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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 ¶
func (o *CreateRestoreTaskParamsBodyConfigComponents) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *CreateRestoreTaskParamsBodyConfigComponentsTidb) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create restore task params body config components tidb based on context it is used
func (*CreateRestoreTaskParamsBodyConfigComponentsTidb) MarshalBinary ¶
func (o *CreateRestoreTaskParamsBodyConfigComponentsTidb) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateRestoreTaskParamsBodyConfigComponentsTidb) UnmarshalBinary ¶
func (o *CreateRestoreTaskParamsBodyConfigComponentsTidb) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *CreateRestoreTaskParamsBodyConfigComponentsTiflash) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create restore task params body config components tiflash based on context it is used
func (*CreateRestoreTaskParamsBodyConfigComponentsTiflash) MarshalBinary ¶
func (o *CreateRestoreTaskParamsBodyConfigComponentsTiflash) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateRestoreTaskParamsBodyConfigComponentsTiflash) UnmarshalBinary ¶
func (o *CreateRestoreTaskParamsBodyConfigComponentsTiflash) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *CreateRestoreTaskParamsBodyConfigComponentsTikv) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create restore task params body config components tikv based on context it is used
func (*CreateRestoreTaskParamsBodyConfigComponentsTikv) MarshalBinary ¶
func (o *CreateRestoreTaskParamsBodyConfigComponentsTikv) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateRestoreTaskParamsBodyConfigComponentsTikv) UnmarshalBinary ¶
func (o *CreateRestoreTaskParamsBodyConfigComponentsTikv) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *CreateRestoreTaskParamsBodyConfigIPAccessListItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create restore task params body config IP access list items0 based on context it is used
func (*CreateRestoreTaskParamsBodyConfigIPAccessListItems0) MarshalBinary ¶
func (o *CreateRestoreTaskParamsBodyConfigIPAccessListItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateRestoreTaskParamsBodyConfigIPAccessListItems0) UnmarshalBinary ¶
func (o *CreateRestoreTaskParamsBodyConfigIPAccessListItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *CreateRestoreTaskTooManyRequests) Code() int
Code gets the status code for the create restore task too many requests response
func (*CreateRestoreTaskTooManyRequests) Error ¶
func (o *CreateRestoreTaskTooManyRequests) Error() string
func (*CreateRestoreTaskTooManyRequests) GetPayload ¶
func (o *CreateRestoreTaskTooManyRequests) GetPayload() *CreateRestoreTaskTooManyRequestsBody
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 ¶
func (o *CreateRestoreTaskTooManyRequests) String() 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
type CreateRestoreTaskUnauthorized ¶
type CreateRestoreTaskUnauthorized struct {
}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 ¶
func (o *CreateRestoreTaskUnauthorized) Code() int
Code gets the status code for the create restore task unauthorized response
func (*CreateRestoreTaskUnauthorized) Error ¶
func (o *CreateRestoreTaskUnauthorized) Error() string
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 ¶
func (o *CreateRestoreTaskUnauthorized) String() 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 (o *GetRestoreTaskBadRequest) GetPayload() *GetRestoreTaskBadRequestBody
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
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 (o *GetRestoreTaskDefault) GetPayload() *GetRestoreTaskDefaultBody
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
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 ¶
func (o *GetRestoreTaskDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *GetRestoreTaskForbidden) GetPayload() *GetRestoreTaskForbiddenBody
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
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 ¶
func (o *GetRestoreTaskInternalServerError) Code() int
Code gets the status code for the get restore task internal server error response
func (*GetRestoreTaskInternalServerError) Error ¶
func (o *GetRestoreTaskInternalServerError) Error() string
func (*GetRestoreTaskInternalServerError) GetPayload ¶
func (o *GetRestoreTaskInternalServerError) GetPayload() *GetRestoreTaskInternalServerErrorBody
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 ¶
func (o *GetRestoreTaskInternalServerError) String() 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
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 (o *GetRestoreTaskNotFound) GetPayload() *GetRestoreTaskNotFoundBody
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
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 ¶
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
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
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 ¶
func (o *GetRestoreTaskParams) WithContext(ctx context.Context) *GetRestoreTaskParams
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 ¶
func (o *GetRestoreTaskTooManyRequests) Code() int
Code gets the status code for the get restore task too many requests response
func (*GetRestoreTaskTooManyRequests) Error ¶
func (o *GetRestoreTaskTooManyRequests) Error() string
func (*GetRestoreTaskTooManyRequests) GetPayload ¶
func (o *GetRestoreTaskTooManyRequests) GetPayload() *GetRestoreTaskTooManyRequestsBody
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 ¶
func (o *GetRestoreTaskTooManyRequests) String() 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
type GetRestoreTaskUnauthorized ¶
type GetRestoreTaskUnauthorized struct {
}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 (o *GetRestoreTaskUnauthorized) Error() string
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 (o *ListRestoreTasksBadRequest) Error() string
func (*ListRestoreTasksBadRequest) GetPayload ¶
func (o *ListRestoreTasksBadRequest) GetPayload() *ListRestoreTasksBadRequestBody
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
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 (o *ListRestoreTasksDefault) GetPayload() *ListRestoreTasksDefaultBody
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
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 ¶
func (o *ListRestoreTasksDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *ListRestoreTasksForbidden) GetPayload() *ListRestoreTasksForbiddenBody
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
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 ¶
func (o *ListRestoreTasksInternalServerError) Code() int
Code gets the status code for the list restore tasks internal server error response
func (*ListRestoreTasksInternalServerError) Error ¶
func (o *ListRestoreTasksInternalServerError) Error() string
func (*ListRestoreTasksInternalServerError) GetPayload ¶
func (o *ListRestoreTasksInternalServerError) GetPayload() *ListRestoreTasksInternalServerErrorBody
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 ¶
func (o *ListRestoreTasksInternalServerError) IsCode(code int) bool
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 ¶
func (o *ListRestoreTasksInternalServerError) IsSuccess() bool
IsSuccess returns true when this list restore tasks internal server error response has a 2xx status code
func (*ListRestoreTasksInternalServerError) String ¶
func (o *ListRestoreTasksInternalServerError) String() 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 ¶
func (o *ListRestoreTasksInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *ListRestoreTasksNotFound) GetPayload() *ListRestoreTasksNotFoundBody
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
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
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
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 ¶
func (o *ListRestoreTasksOKBodyItemsItems0Cluster) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *ListRestoreTasksParams) WithContext(ctx context.Context) *ListRestoreTasksParams
WithContext adds the context to the list restore tasks params
func (*ListRestoreTasksParams) WithDefaults ¶
func (o *ListRestoreTasksParams) WithDefaults() *ListRestoreTasksParams
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 ¶
func (o *ListRestoreTasksParams) WithPage(page *int32) *ListRestoreTasksParams
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 ¶
func (o *ListRestoreTasksParams) WithTimeout(timeout time.Duration) *ListRestoreTasksParams
WithTimeout adds the timeout to the list restore tasks params
func (*ListRestoreTasksParams) WriteToRequest ¶
func (o *ListRestoreTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListRestoreTasksTooManyRequests) Code() int
Code gets the status code for the list restore tasks too many requests response
func (*ListRestoreTasksTooManyRequests) Error ¶
func (o *ListRestoreTasksTooManyRequests) Error() string
func (*ListRestoreTasksTooManyRequests) GetPayload ¶
func (o *ListRestoreTasksTooManyRequests) GetPayload() *ListRestoreTasksTooManyRequestsBody
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 ¶
func (o *ListRestoreTasksTooManyRequests) String() 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
type ListRestoreTasksUnauthorized ¶
type ListRestoreTasksUnauthorized struct {
}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 ¶
func (o *ListRestoreTasksUnauthorized) Code() int
Code gets the status code for the list restore tasks unauthorized response
func (*ListRestoreTasksUnauthorized) Error ¶
func (o *ListRestoreTasksUnauthorized) Error() string
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 ¶
func (o *ListRestoreTasksUnauthorized) String() string