Documentation ¶
Index ¶
- Constants
- type Client
- func (a *Client) CreateBackup(params *CreateBackupParams, opts ...ClientOption) (*CreateBackupOK, error)
- func (a *Client) DeleteBackup(params *DeleteBackupParams, opts ...ClientOption) (*DeleteBackupOK, error)
- func (a *Client) GetBackupOfCluster(params *GetBackupOfClusterParams, opts ...ClientOption) (*GetBackupOfClusterOK, error)
- func (a *Client) ListBackUpOfCluster(params *ListBackUpOfClusterParams, opts ...ClientOption) (*ListBackUpOfClusterOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateBackupBadRequest
- func (o *CreateBackupBadRequest) Code() int
- func (o *CreateBackupBadRequest) Error() string
- func (o *CreateBackupBadRequest) GetPayload() *CreateBackupBadRequestBody
- func (o *CreateBackupBadRequest) IsClientError() bool
- func (o *CreateBackupBadRequest) IsCode(code int) bool
- func (o *CreateBackupBadRequest) IsRedirect() bool
- func (o *CreateBackupBadRequest) IsServerError() bool
- func (o *CreateBackupBadRequest) IsSuccess() bool
- func (o *CreateBackupBadRequest) String() string
- type CreateBackupBadRequestBody
- func (o *CreateBackupBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateBackupBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *CreateBackupBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *CreateBackupBadRequestBody) Validate(formats strfmt.Registry) error
- type CreateBackupBody
- type CreateBackupDefault
- func (o *CreateBackupDefault) Code() int
- func (o *CreateBackupDefault) Error() string
- func (o *CreateBackupDefault) GetPayload() *CreateBackupDefaultBody
- func (o *CreateBackupDefault) IsClientError() bool
- func (o *CreateBackupDefault) IsCode(code int) bool
- func (o *CreateBackupDefault) IsRedirect() bool
- func (o *CreateBackupDefault) IsServerError() bool
- func (o *CreateBackupDefault) IsSuccess() bool
- func (o *CreateBackupDefault) String() string
- type CreateBackupDefaultBody
- func (o *CreateBackupDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateBackupDefaultBody) MarshalBinary() ([]byte, error)
- func (o *CreateBackupDefaultBody) UnmarshalBinary(b []byte) error
- func (o *CreateBackupDefaultBody) Validate(formats strfmt.Registry) error
- type CreateBackupDefaultBodyDetailsItems0
- func (o *CreateBackupDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateBackupDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *CreateBackupDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *CreateBackupDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type CreateBackupForbidden
- func (o *CreateBackupForbidden) Code() int
- func (o *CreateBackupForbidden) Error() string
- func (o *CreateBackupForbidden) GetPayload() *CreateBackupForbiddenBody
- func (o *CreateBackupForbidden) IsClientError() bool
- func (o *CreateBackupForbidden) IsCode(code int) bool
- func (o *CreateBackupForbidden) IsRedirect() bool
- func (o *CreateBackupForbidden) IsServerError() bool
- func (o *CreateBackupForbidden) IsSuccess() bool
- func (o *CreateBackupForbidden) String() string
- type CreateBackupForbiddenBody
- func (o *CreateBackupForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateBackupForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *CreateBackupForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *CreateBackupForbiddenBody) Validate(formats strfmt.Registry) error
- type CreateBackupInternalServerError
- func (o *CreateBackupInternalServerError) Code() int
- func (o *CreateBackupInternalServerError) Error() string
- func (o *CreateBackupInternalServerError) GetPayload() *CreateBackupInternalServerErrorBody
- func (o *CreateBackupInternalServerError) IsClientError() bool
- func (o *CreateBackupInternalServerError) IsCode(code int) bool
- func (o *CreateBackupInternalServerError) IsRedirect() bool
- func (o *CreateBackupInternalServerError) IsServerError() bool
- func (o *CreateBackupInternalServerError) IsSuccess() bool
- func (o *CreateBackupInternalServerError) String() string
- type CreateBackupInternalServerErrorBody
- func (o *CreateBackupInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateBackupInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *CreateBackupInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *CreateBackupInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type CreateBackupNotFound
- func (o *CreateBackupNotFound) Code() int
- func (o *CreateBackupNotFound) Error() string
- func (o *CreateBackupNotFound) GetPayload() *CreateBackupNotFoundBody
- func (o *CreateBackupNotFound) IsClientError() bool
- func (o *CreateBackupNotFound) IsCode(code int) bool
- func (o *CreateBackupNotFound) IsRedirect() bool
- func (o *CreateBackupNotFound) IsServerError() bool
- func (o *CreateBackupNotFound) IsSuccess() bool
- func (o *CreateBackupNotFound) String() string
- type CreateBackupNotFoundBody
- func (o *CreateBackupNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateBackupNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *CreateBackupNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *CreateBackupNotFoundBody) Validate(formats strfmt.Registry) error
- type CreateBackupOK
- func (o *CreateBackupOK) Code() int
- func (o *CreateBackupOK) Error() string
- func (o *CreateBackupOK) GetPayload() *CreateBackupOKBody
- func (o *CreateBackupOK) IsClientError() bool
- func (o *CreateBackupOK) IsCode(code int) bool
- func (o *CreateBackupOK) IsRedirect() bool
- func (o *CreateBackupOK) IsServerError() bool
- func (o *CreateBackupOK) IsSuccess() bool
- func (o *CreateBackupOK) String() string
- type CreateBackupOKBody
- type CreateBackupParams
- func (o *CreateBackupParams) SetBody(body CreateBackupBody)
- func (o *CreateBackupParams) SetClusterID(clusterID string)
- func (o *CreateBackupParams) SetContext(ctx context.Context)
- func (o *CreateBackupParams) SetDefaults()
- func (o *CreateBackupParams) SetHTTPClient(client *http.Client)
- func (o *CreateBackupParams) SetProjectID(projectID string)
- func (o *CreateBackupParams) SetTimeout(timeout time.Duration)
- func (o *CreateBackupParams) WithBody(body CreateBackupBody) *CreateBackupParams
- func (o *CreateBackupParams) WithClusterID(clusterID string) *CreateBackupParams
- func (o *CreateBackupParams) WithContext(ctx context.Context) *CreateBackupParams
- func (o *CreateBackupParams) WithDefaults() *CreateBackupParams
- func (o *CreateBackupParams) WithHTTPClient(client *http.Client) *CreateBackupParams
- func (o *CreateBackupParams) WithProjectID(projectID string) *CreateBackupParams
- func (o *CreateBackupParams) WithTimeout(timeout time.Duration) *CreateBackupParams
- func (o *CreateBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateBackupReader
- type CreateBackupTooManyRequests
- func (o *CreateBackupTooManyRequests) Code() int
- func (o *CreateBackupTooManyRequests) Error() string
- func (o *CreateBackupTooManyRequests) GetPayload() *CreateBackupTooManyRequestsBody
- func (o *CreateBackupTooManyRequests) IsClientError() bool
- func (o *CreateBackupTooManyRequests) IsCode(code int) bool
- func (o *CreateBackupTooManyRequests) IsRedirect() bool
- func (o *CreateBackupTooManyRequests) IsServerError() bool
- func (o *CreateBackupTooManyRequests) IsSuccess() bool
- func (o *CreateBackupTooManyRequests) String() string
- type CreateBackupTooManyRequestsBody
- func (o *CreateBackupTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateBackupTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *CreateBackupTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *CreateBackupTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type CreateBackupUnauthorized
- func (o *CreateBackupUnauthorized) Code() int
- func (o *CreateBackupUnauthorized) Error() string
- func (o *CreateBackupUnauthorized) GetPayload() interface{}
- func (o *CreateBackupUnauthorized) IsClientError() bool
- func (o *CreateBackupUnauthorized) IsCode(code int) bool
- func (o *CreateBackupUnauthorized) IsRedirect() bool
- func (o *CreateBackupUnauthorized) IsServerError() bool
- func (o *CreateBackupUnauthorized) IsSuccess() bool
- func (o *CreateBackupUnauthorized) String() string
- type DeleteBackupBadRequest
- func (o *DeleteBackupBadRequest) Code() int
- func (o *DeleteBackupBadRequest) Error() string
- func (o *DeleteBackupBadRequest) GetPayload() *DeleteBackupBadRequestBody
- func (o *DeleteBackupBadRequest) IsClientError() bool
- func (o *DeleteBackupBadRequest) IsCode(code int) bool
- func (o *DeleteBackupBadRequest) IsRedirect() bool
- func (o *DeleteBackupBadRequest) IsServerError() bool
- func (o *DeleteBackupBadRequest) IsSuccess() bool
- func (o *DeleteBackupBadRequest) String() string
- type DeleteBackupBadRequestBody
- func (o *DeleteBackupBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *DeleteBackupBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *DeleteBackupBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *DeleteBackupBadRequestBody) Validate(formats strfmt.Registry) error
- type DeleteBackupDefault
- func (o *DeleteBackupDefault) Code() int
- func (o *DeleteBackupDefault) Error() string
- func (o *DeleteBackupDefault) GetPayload() *DeleteBackupDefaultBody
- func (o *DeleteBackupDefault) IsClientError() bool
- func (o *DeleteBackupDefault) IsCode(code int) bool
- func (o *DeleteBackupDefault) IsRedirect() bool
- func (o *DeleteBackupDefault) IsServerError() bool
- func (o *DeleteBackupDefault) IsSuccess() bool
- func (o *DeleteBackupDefault) String() string
- type DeleteBackupDefaultBody
- func (o *DeleteBackupDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *DeleteBackupDefaultBody) MarshalBinary() ([]byte, error)
- func (o *DeleteBackupDefaultBody) UnmarshalBinary(b []byte) error
- func (o *DeleteBackupDefaultBody) Validate(formats strfmt.Registry) error
- type DeleteBackupDefaultBodyDetailsItems0
- func (o *DeleteBackupDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *DeleteBackupDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *DeleteBackupDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *DeleteBackupDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type DeleteBackupForbidden
- func (o *DeleteBackupForbidden) Code() int
- func (o *DeleteBackupForbidden) Error() string
- func (o *DeleteBackupForbidden) GetPayload() *DeleteBackupForbiddenBody
- func (o *DeleteBackupForbidden) IsClientError() bool
- func (o *DeleteBackupForbidden) IsCode(code int) bool
- func (o *DeleteBackupForbidden) IsRedirect() bool
- func (o *DeleteBackupForbidden) IsServerError() bool
- func (o *DeleteBackupForbidden) IsSuccess() bool
- func (o *DeleteBackupForbidden) String() string
- type DeleteBackupForbiddenBody
- func (o *DeleteBackupForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *DeleteBackupForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *DeleteBackupForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *DeleteBackupForbiddenBody) Validate(formats strfmt.Registry) error
- type DeleteBackupInternalServerError
- func (o *DeleteBackupInternalServerError) Code() int
- func (o *DeleteBackupInternalServerError) Error() string
- func (o *DeleteBackupInternalServerError) GetPayload() *DeleteBackupInternalServerErrorBody
- func (o *DeleteBackupInternalServerError) IsClientError() bool
- func (o *DeleteBackupInternalServerError) IsCode(code int) bool
- func (o *DeleteBackupInternalServerError) IsRedirect() bool
- func (o *DeleteBackupInternalServerError) IsServerError() bool
- func (o *DeleteBackupInternalServerError) IsSuccess() bool
- func (o *DeleteBackupInternalServerError) String() string
- type DeleteBackupInternalServerErrorBody
- func (o *DeleteBackupInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *DeleteBackupInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *DeleteBackupInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *DeleteBackupInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type DeleteBackupNotFound
- func (o *DeleteBackupNotFound) Code() int
- func (o *DeleteBackupNotFound) Error() string
- func (o *DeleteBackupNotFound) GetPayload() *DeleteBackupNotFoundBody
- func (o *DeleteBackupNotFound) IsClientError() bool
- func (o *DeleteBackupNotFound) IsCode(code int) bool
- func (o *DeleteBackupNotFound) IsRedirect() bool
- func (o *DeleteBackupNotFound) IsServerError() bool
- func (o *DeleteBackupNotFound) IsSuccess() bool
- func (o *DeleteBackupNotFound) String() string
- type DeleteBackupNotFoundBody
- func (o *DeleteBackupNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *DeleteBackupNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *DeleteBackupNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *DeleteBackupNotFoundBody) Validate(formats strfmt.Registry) error
- type DeleteBackupOK
- func (o *DeleteBackupOK) Code() int
- func (o *DeleteBackupOK) Error() string
- func (o *DeleteBackupOK) GetPayload() interface{}
- func (o *DeleteBackupOK) IsClientError() bool
- func (o *DeleteBackupOK) IsCode(code int) bool
- func (o *DeleteBackupOK) IsRedirect() bool
- func (o *DeleteBackupOK) IsServerError() bool
- func (o *DeleteBackupOK) IsSuccess() bool
- func (o *DeleteBackupOK) String() string
- type DeleteBackupParams
- func (o *DeleteBackupParams) SetBackupID(backupID string)
- func (o *DeleteBackupParams) SetClusterID(clusterID string)
- func (o *DeleteBackupParams) SetContext(ctx context.Context)
- func (o *DeleteBackupParams) SetDefaults()
- func (o *DeleteBackupParams) SetHTTPClient(client *http.Client)
- func (o *DeleteBackupParams) SetProjectID(projectID string)
- func (o *DeleteBackupParams) SetTimeout(timeout time.Duration)
- func (o *DeleteBackupParams) WithBackupID(backupID string) *DeleteBackupParams
- func (o *DeleteBackupParams) WithClusterID(clusterID string) *DeleteBackupParams
- func (o *DeleteBackupParams) WithContext(ctx context.Context) *DeleteBackupParams
- func (o *DeleteBackupParams) WithDefaults() *DeleteBackupParams
- func (o *DeleteBackupParams) WithHTTPClient(client *http.Client) *DeleteBackupParams
- func (o *DeleteBackupParams) WithProjectID(projectID string) *DeleteBackupParams
- func (o *DeleteBackupParams) WithTimeout(timeout time.Duration) *DeleteBackupParams
- func (o *DeleteBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteBackupReader
- type DeleteBackupTooManyRequests
- func (o *DeleteBackupTooManyRequests) Code() int
- func (o *DeleteBackupTooManyRequests) Error() string
- func (o *DeleteBackupTooManyRequests) GetPayload() *DeleteBackupTooManyRequestsBody
- func (o *DeleteBackupTooManyRequests) IsClientError() bool
- func (o *DeleteBackupTooManyRequests) IsCode(code int) bool
- func (o *DeleteBackupTooManyRequests) IsRedirect() bool
- func (o *DeleteBackupTooManyRequests) IsServerError() bool
- func (o *DeleteBackupTooManyRequests) IsSuccess() bool
- func (o *DeleteBackupTooManyRequests) String() string
- type DeleteBackupTooManyRequestsBody
- func (o *DeleteBackupTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *DeleteBackupTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *DeleteBackupTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *DeleteBackupTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type DeleteBackupUnauthorized
- func (o *DeleteBackupUnauthorized) Code() int
- func (o *DeleteBackupUnauthorized) Error() string
- func (o *DeleteBackupUnauthorized) GetPayload() interface{}
- func (o *DeleteBackupUnauthorized) IsClientError() bool
- func (o *DeleteBackupUnauthorized) IsCode(code int) bool
- func (o *DeleteBackupUnauthorized) IsRedirect() bool
- func (o *DeleteBackupUnauthorized) IsServerError() bool
- func (o *DeleteBackupUnauthorized) IsSuccess() bool
- func (o *DeleteBackupUnauthorized) String() string
- type GetBackupOfClusterBadRequest
- func (o *GetBackupOfClusterBadRequest) Code() int
- func (o *GetBackupOfClusterBadRequest) Error() string
- func (o *GetBackupOfClusterBadRequest) GetPayload() *GetBackupOfClusterBadRequestBody
- func (o *GetBackupOfClusterBadRequest) IsClientError() bool
- func (o *GetBackupOfClusterBadRequest) IsCode(code int) bool
- func (o *GetBackupOfClusterBadRequest) IsRedirect() bool
- func (o *GetBackupOfClusterBadRequest) IsServerError() bool
- func (o *GetBackupOfClusterBadRequest) IsSuccess() bool
- func (o *GetBackupOfClusterBadRequest) String() string
- type GetBackupOfClusterBadRequestBody
- func (o *GetBackupOfClusterBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetBackupOfClusterBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *GetBackupOfClusterBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *GetBackupOfClusterBadRequestBody) Validate(formats strfmt.Registry) error
- type GetBackupOfClusterDefault
- func (o *GetBackupOfClusterDefault) Code() int
- func (o *GetBackupOfClusterDefault) Error() string
- func (o *GetBackupOfClusterDefault) GetPayload() *GetBackupOfClusterDefaultBody
- func (o *GetBackupOfClusterDefault) IsClientError() bool
- func (o *GetBackupOfClusterDefault) IsCode(code int) bool
- func (o *GetBackupOfClusterDefault) IsRedirect() bool
- func (o *GetBackupOfClusterDefault) IsServerError() bool
- func (o *GetBackupOfClusterDefault) IsSuccess() bool
- func (o *GetBackupOfClusterDefault) String() string
- type GetBackupOfClusterDefaultBody
- func (o *GetBackupOfClusterDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetBackupOfClusterDefaultBody) MarshalBinary() ([]byte, error)
- func (o *GetBackupOfClusterDefaultBody) UnmarshalBinary(b []byte) error
- func (o *GetBackupOfClusterDefaultBody) Validate(formats strfmt.Registry) error
- type GetBackupOfClusterDefaultBodyDetailsItems0
- func (o *GetBackupOfClusterDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetBackupOfClusterDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *GetBackupOfClusterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *GetBackupOfClusterDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type GetBackupOfClusterForbidden
- func (o *GetBackupOfClusterForbidden) Code() int
- func (o *GetBackupOfClusterForbidden) Error() string
- func (o *GetBackupOfClusterForbidden) GetPayload() *GetBackupOfClusterForbiddenBody
- func (o *GetBackupOfClusterForbidden) IsClientError() bool
- func (o *GetBackupOfClusterForbidden) IsCode(code int) bool
- func (o *GetBackupOfClusterForbidden) IsRedirect() bool
- func (o *GetBackupOfClusterForbidden) IsServerError() bool
- func (o *GetBackupOfClusterForbidden) IsSuccess() bool
- func (o *GetBackupOfClusterForbidden) String() string
- type GetBackupOfClusterForbiddenBody
- func (o *GetBackupOfClusterForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetBackupOfClusterForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *GetBackupOfClusterForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *GetBackupOfClusterForbiddenBody) Validate(formats strfmt.Registry) error
- type GetBackupOfClusterInternalServerError
- func (o *GetBackupOfClusterInternalServerError) Code() int
- func (o *GetBackupOfClusterInternalServerError) Error() string
- func (o *GetBackupOfClusterInternalServerError) GetPayload() *GetBackupOfClusterInternalServerErrorBody
- func (o *GetBackupOfClusterInternalServerError) IsClientError() bool
- func (o *GetBackupOfClusterInternalServerError) IsCode(code int) bool
- func (o *GetBackupOfClusterInternalServerError) IsRedirect() bool
- func (o *GetBackupOfClusterInternalServerError) IsServerError() bool
- func (o *GetBackupOfClusterInternalServerError) IsSuccess() bool
- func (o *GetBackupOfClusterInternalServerError) String() string
- type GetBackupOfClusterInternalServerErrorBody
- func (o *GetBackupOfClusterInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetBackupOfClusterInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *GetBackupOfClusterInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *GetBackupOfClusterInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type GetBackupOfClusterNotFound
- func (o *GetBackupOfClusterNotFound) Code() int
- func (o *GetBackupOfClusterNotFound) Error() string
- func (o *GetBackupOfClusterNotFound) GetPayload() *GetBackupOfClusterNotFoundBody
- func (o *GetBackupOfClusterNotFound) IsClientError() bool
- func (o *GetBackupOfClusterNotFound) IsCode(code int) bool
- func (o *GetBackupOfClusterNotFound) IsRedirect() bool
- func (o *GetBackupOfClusterNotFound) IsServerError() bool
- func (o *GetBackupOfClusterNotFound) IsSuccess() bool
- func (o *GetBackupOfClusterNotFound) String() string
- type GetBackupOfClusterNotFoundBody
- func (o *GetBackupOfClusterNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetBackupOfClusterNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *GetBackupOfClusterNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *GetBackupOfClusterNotFoundBody) Validate(formats strfmt.Registry) error
- type GetBackupOfClusterOK
- func (o *GetBackupOfClusterOK) Code() int
- func (o *GetBackupOfClusterOK) Error() string
- func (o *GetBackupOfClusterOK) GetPayload() *GetBackupOfClusterOKBody
- func (o *GetBackupOfClusterOK) IsClientError() bool
- func (o *GetBackupOfClusterOK) IsCode(code int) bool
- func (o *GetBackupOfClusterOK) IsRedirect() bool
- func (o *GetBackupOfClusterOK) IsServerError() bool
- func (o *GetBackupOfClusterOK) IsSuccess() bool
- func (o *GetBackupOfClusterOK) String() string
- type GetBackupOfClusterOKBody
- func (o *GetBackupOfClusterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetBackupOfClusterOKBody) MarshalBinary() ([]byte, error)
- func (o *GetBackupOfClusterOKBody) UnmarshalBinary(b []byte) error
- func (o *GetBackupOfClusterOKBody) Validate(formats strfmt.Registry) error
- type GetBackupOfClusterParams
- func NewGetBackupOfClusterParams() *GetBackupOfClusterParams
- func NewGetBackupOfClusterParamsWithContext(ctx context.Context) *GetBackupOfClusterParams
- func NewGetBackupOfClusterParamsWithHTTPClient(client *http.Client) *GetBackupOfClusterParams
- func NewGetBackupOfClusterParamsWithTimeout(timeout time.Duration) *GetBackupOfClusterParams
- func (o *GetBackupOfClusterParams) SetBackupID(backupID string)
- func (o *GetBackupOfClusterParams) SetClusterID(clusterID string)
- func (o *GetBackupOfClusterParams) SetContext(ctx context.Context)
- func (o *GetBackupOfClusterParams) SetDefaults()
- func (o *GetBackupOfClusterParams) SetHTTPClient(client *http.Client)
- func (o *GetBackupOfClusterParams) SetProjectID(projectID string)
- func (o *GetBackupOfClusterParams) SetTimeout(timeout time.Duration)
- func (o *GetBackupOfClusterParams) WithBackupID(backupID string) *GetBackupOfClusterParams
- func (o *GetBackupOfClusterParams) WithClusterID(clusterID string) *GetBackupOfClusterParams
- func (o *GetBackupOfClusterParams) WithContext(ctx context.Context) *GetBackupOfClusterParams
- func (o *GetBackupOfClusterParams) WithDefaults() *GetBackupOfClusterParams
- func (o *GetBackupOfClusterParams) WithHTTPClient(client *http.Client) *GetBackupOfClusterParams
- func (o *GetBackupOfClusterParams) WithProjectID(projectID string) *GetBackupOfClusterParams
- func (o *GetBackupOfClusterParams) WithTimeout(timeout time.Duration) *GetBackupOfClusterParams
- func (o *GetBackupOfClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetBackupOfClusterReader
- type GetBackupOfClusterTooManyRequests
- func (o *GetBackupOfClusterTooManyRequests) Code() int
- func (o *GetBackupOfClusterTooManyRequests) Error() string
- func (o *GetBackupOfClusterTooManyRequests) GetPayload() *GetBackupOfClusterTooManyRequestsBody
- func (o *GetBackupOfClusterTooManyRequests) IsClientError() bool
- func (o *GetBackupOfClusterTooManyRequests) IsCode(code int) bool
- func (o *GetBackupOfClusterTooManyRequests) IsRedirect() bool
- func (o *GetBackupOfClusterTooManyRequests) IsServerError() bool
- func (o *GetBackupOfClusterTooManyRequests) IsSuccess() bool
- func (o *GetBackupOfClusterTooManyRequests) String() string
- type GetBackupOfClusterTooManyRequestsBody
- func (o *GetBackupOfClusterTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetBackupOfClusterTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *GetBackupOfClusterTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *GetBackupOfClusterTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type GetBackupOfClusterUnauthorized
- func (o *GetBackupOfClusterUnauthorized) Code() int
- func (o *GetBackupOfClusterUnauthorized) Error() string
- func (o *GetBackupOfClusterUnauthorized) GetPayload() interface{}
- func (o *GetBackupOfClusterUnauthorized) IsClientError() bool
- func (o *GetBackupOfClusterUnauthorized) IsCode(code int) bool
- func (o *GetBackupOfClusterUnauthorized) IsRedirect() bool
- func (o *GetBackupOfClusterUnauthorized) IsServerError() bool
- func (o *GetBackupOfClusterUnauthorized) IsSuccess() bool
- func (o *GetBackupOfClusterUnauthorized) String() string
- type ListBackUpOfClusterBadRequest
- func (o *ListBackUpOfClusterBadRequest) Code() int
- func (o *ListBackUpOfClusterBadRequest) Error() string
- func (o *ListBackUpOfClusterBadRequest) GetPayload() *ListBackUpOfClusterBadRequestBody
- func (o *ListBackUpOfClusterBadRequest) IsClientError() bool
- func (o *ListBackUpOfClusterBadRequest) IsCode(code int) bool
- func (o *ListBackUpOfClusterBadRequest) IsRedirect() bool
- func (o *ListBackUpOfClusterBadRequest) IsServerError() bool
- func (o *ListBackUpOfClusterBadRequest) IsSuccess() bool
- func (o *ListBackUpOfClusterBadRequest) String() string
- type ListBackUpOfClusterBadRequestBody
- func (o *ListBackUpOfClusterBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListBackUpOfClusterBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *ListBackUpOfClusterBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *ListBackUpOfClusterBadRequestBody) Validate(formats strfmt.Registry) error
- type ListBackUpOfClusterDefault
- func (o *ListBackUpOfClusterDefault) Code() int
- func (o *ListBackUpOfClusterDefault) Error() string
- func (o *ListBackUpOfClusterDefault) GetPayload() *ListBackUpOfClusterDefaultBody
- func (o *ListBackUpOfClusterDefault) IsClientError() bool
- func (o *ListBackUpOfClusterDefault) IsCode(code int) bool
- func (o *ListBackUpOfClusterDefault) IsRedirect() bool
- func (o *ListBackUpOfClusterDefault) IsServerError() bool
- func (o *ListBackUpOfClusterDefault) IsSuccess() bool
- func (o *ListBackUpOfClusterDefault) String() string
- type ListBackUpOfClusterDefaultBody
- func (o *ListBackUpOfClusterDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListBackUpOfClusterDefaultBody) MarshalBinary() ([]byte, error)
- func (o *ListBackUpOfClusterDefaultBody) UnmarshalBinary(b []byte) error
- func (o *ListBackUpOfClusterDefaultBody) Validate(formats strfmt.Registry) error
- type ListBackUpOfClusterDefaultBodyDetailsItems0
- func (o *ListBackUpOfClusterDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListBackUpOfClusterDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *ListBackUpOfClusterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *ListBackUpOfClusterDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type ListBackUpOfClusterForbidden
- func (o *ListBackUpOfClusterForbidden) Code() int
- func (o *ListBackUpOfClusterForbidden) Error() string
- func (o *ListBackUpOfClusterForbidden) GetPayload() *ListBackUpOfClusterForbiddenBody
- func (o *ListBackUpOfClusterForbidden) IsClientError() bool
- func (o *ListBackUpOfClusterForbidden) IsCode(code int) bool
- func (o *ListBackUpOfClusterForbidden) IsRedirect() bool
- func (o *ListBackUpOfClusterForbidden) IsServerError() bool
- func (o *ListBackUpOfClusterForbidden) IsSuccess() bool
- func (o *ListBackUpOfClusterForbidden) String() string
- type ListBackUpOfClusterForbiddenBody
- func (o *ListBackUpOfClusterForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListBackUpOfClusterForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *ListBackUpOfClusterForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *ListBackUpOfClusterForbiddenBody) Validate(formats strfmt.Registry) error
- type ListBackUpOfClusterInternalServerError
- func (o *ListBackUpOfClusterInternalServerError) Code() int
- func (o *ListBackUpOfClusterInternalServerError) Error() string
- func (o *ListBackUpOfClusterInternalServerError) GetPayload() *ListBackUpOfClusterInternalServerErrorBody
- func (o *ListBackUpOfClusterInternalServerError) IsClientError() bool
- func (o *ListBackUpOfClusterInternalServerError) IsCode(code int) bool
- func (o *ListBackUpOfClusterInternalServerError) IsRedirect() bool
- func (o *ListBackUpOfClusterInternalServerError) IsServerError() bool
- func (o *ListBackUpOfClusterInternalServerError) IsSuccess() bool
- func (o *ListBackUpOfClusterInternalServerError) String() string
- type ListBackUpOfClusterInternalServerErrorBody
- func (o *ListBackUpOfClusterInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListBackUpOfClusterInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *ListBackUpOfClusterInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *ListBackUpOfClusterInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type ListBackUpOfClusterNotFound
- func (o *ListBackUpOfClusterNotFound) Code() int
- func (o *ListBackUpOfClusterNotFound) Error() string
- func (o *ListBackUpOfClusterNotFound) GetPayload() *ListBackUpOfClusterNotFoundBody
- func (o *ListBackUpOfClusterNotFound) IsClientError() bool
- func (o *ListBackUpOfClusterNotFound) IsCode(code int) bool
- func (o *ListBackUpOfClusterNotFound) IsRedirect() bool
- func (o *ListBackUpOfClusterNotFound) IsServerError() bool
- func (o *ListBackUpOfClusterNotFound) IsSuccess() bool
- func (o *ListBackUpOfClusterNotFound) String() string
- type ListBackUpOfClusterNotFoundBody
- func (o *ListBackUpOfClusterNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListBackUpOfClusterNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *ListBackUpOfClusterNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *ListBackUpOfClusterNotFoundBody) Validate(formats strfmt.Registry) error
- type ListBackUpOfClusterOK
- func (o *ListBackUpOfClusterOK) Code() int
- func (o *ListBackUpOfClusterOK) Error() string
- func (o *ListBackUpOfClusterOK) GetPayload() *ListBackUpOfClusterOKBody
- func (o *ListBackUpOfClusterOK) IsClientError() bool
- func (o *ListBackUpOfClusterOK) IsCode(code int) bool
- func (o *ListBackUpOfClusterOK) IsRedirect() bool
- func (o *ListBackUpOfClusterOK) IsServerError() bool
- func (o *ListBackUpOfClusterOK) IsSuccess() bool
- func (o *ListBackUpOfClusterOK) String() string
- type ListBackUpOfClusterOKBody
- func (o *ListBackUpOfClusterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListBackUpOfClusterOKBody) MarshalBinary() ([]byte, error)
- func (o *ListBackUpOfClusterOKBody) UnmarshalBinary(b []byte) error
- func (o *ListBackUpOfClusterOKBody) Validate(formats strfmt.Registry) error
- type ListBackUpOfClusterOKBodyItemsItems0
- func (o *ListBackUpOfClusterOKBodyItemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListBackUpOfClusterOKBodyItemsItems0) MarshalBinary() ([]byte, error)
- func (o *ListBackUpOfClusterOKBodyItemsItems0) UnmarshalBinary(b []byte) error
- func (o *ListBackUpOfClusterOKBodyItemsItems0) Validate(formats strfmt.Registry) error
- type ListBackUpOfClusterParams
- func NewListBackUpOfClusterParams() *ListBackUpOfClusterParams
- func NewListBackUpOfClusterParamsWithContext(ctx context.Context) *ListBackUpOfClusterParams
- func NewListBackUpOfClusterParamsWithHTTPClient(client *http.Client) *ListBackUpOfClusterParams
- func NewListBackUpOfClusterParamsWithTimeout(timeout time.Duration) *ListBackUpOfClusterParams
- func (o *ListBackUpOfClusterParams) SetClusterID(clusterID string)
- func (o *ListBackUpOfClusterParams) SetContext(ctx context.Context)
- func (o *ListBackUpOfClusterParams) SetDefaults()
- func (o *ListBackUpOfClusterParams) SetHTTPClient(client *http.Client)
- func (o *ListBackUpOfClusterParams) SetPage(page *int32)
- func (o *ListBackUpOfClusterParams) SetPageSize(pageSize *int32)
- func (o *ListBackUpOfClusterParams) SetProjectID(projectID string)
- func (o *ListBackUpOfClusterParams) SetTimeout(timeout time.Duration)
- func (o *ListBackUpOfClusterParams) WithClusterID(clusterID string) *ListBackUpOfClusterParams
- func (o *ListBackUpOfClusterParams) WithContext(ctx context.Context) *ListBackUpOfClusterParams
- func (o *ListBackUpOfClusterParams) WithDefaults() *ListBackUpOfClusterParams
- func (o *ListBackUpOfClusterParams) WithHTTPClient(client *http.Client) *ListBackUpOfClusterParams
- func (o *ListBackUpOfClusterParams) WithPage(page *int32) *ListBackUpOfClusterParams
- func (o *ListBackUpOfClusterParams) WithPageSize(pageSize *int32) *ListBackUpOfClusterParams
- func (o *ListBackUpOfClusterParams) WithProjectID(projectID string) *ListBackUpOfClusterParams
- func (o *ListBackUpOfClusterParams) WithTimeout(timeout time.Duration) *ListBackUpOfClusterParams
- func (o *ListBackUpOfClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListBackUpOfClusterReader
- type ListBackUpOfClusterTooManyRequests
- func (o *ListBackUpOfClusterTooManyRequests) Code() int
- func (o *ListBackUpOfClusterTooManyRequests) Error() string
- func (o *ListBackUpOfClusterTooManyRequests) GetPayload() *ListBackUpOfClusterTooManyRequestsBody
- func (o *ListBackUpOfClusterTooManyRequests) IsClientError() bool
- func (o *ListBackUpOfClusterTooManyRequests) IsCode(code int) bool
- func (o *ListBackUpOfClusterTooManyRequests) IsRedirect() bool
- func (o *ListBackUpOfClusterTooManyRequests) IsServerError() bool
- func (o *ListBackUpOfClusterTooManyRequests) IsSuccess() bool
- func (o *ListBackUpOfClusterTooManyRequests) String() string
- type ListBackUpOfClusterTooManyRequestsBody
- func (o *ListBackUpOfClusterTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListBackUpOfClusterTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *ListBackUpOfClusterTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *ListBackUpOfClusterTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type ListBackUpOfClusterUnauthorized
- func (o *ListBackUpOfClusterUnauthorized) Code() int
- func (o *ListBackUpOfClusterUnauthorized) Error() string
- func (o *ListBackUpOfClusterUnauthorized) GetPayload() interface{}
- func (o *ListBackUpOfClusterUnauthorized) IsClientError() bool
- func (o *ListBackUpOfClusterUnauthorized) IsCode(code int) bool
- func (o *ListBackUpOfClusterUnauthorized) IsRedirect() bool
- func (o *ListBackUpOfClusterUnauthorized) IsServerError() bool
- func (o *ListBackUpOfClusterUnauthorized) IsSuccess() bool
- func (o *ListBackUpOfClusterUnauthorized) String() string
Constants ¶
const ( // GetBackupOfClusterOKBodyStatusPENDING captures enum value "PENDING" GetBackupOfClusterOKBodyStatusPENDING string = "PENDING" // GetBackupOfClusterOKBodyStatusRUNNING captures enum value "RUNNING" GetBackupOfClusterOKBodyStatusRUNNING string = "RUNNING" // GetBackupOfClusterOKBodyStatusFAILED captures enum value "FAILED" GetBackupOfClusterOKBodyStatusFAILED string = "FAILED" // GetBackupOfClusterOKBodyStatusSUCCESS captures enum value "SUCCESS" GetBackupOfClusterOKBodyStatusSUCCESS string = "SUCCESS" )
const ( // GetBackupOfClusterOKBodyTypeMANUAL captures enum value "MANUAL" GetBackupOfClusterOKBodyTypeMANUAL string = "MANUAL" // GetBackupOfClusterOKBodyTypeAUTO captures enum value "AUTO" GetBackupOfClusterOKBodyTypeAUTO string = "AUTO" )
const ( // ListBackUpOfClusterOKBodyItemsItems0StatusPENDING captures enum value "PENDING" ListBackUpOfClusterOKBodyItemsItems0StatusPENDING string = "PENDING" // ListBackUpOfClusterOKBodyItemsItems0StatusRUNNING captures enum value "RUNNING" ListBackUpOfClusterOKBodyItemsItems0StatusRUNNING string = "RUNNING" // ListBackUpOfClusterOKBodyItemsItems0StatusFAILED captures enum value "FAILED" ListBackUpOfClusterOKBodyItemsItems0StatusFAILED string = "FAILED" // ListBackUpOfClusterOKBodyItemsItems0StatusSUCCESS captures enum value "SUCCESS" ListBackUpOfClusterOKBodyItemsItems0StatusSUCCESS string = "SUCCESS" )
const ( // ListBackUpOfClusterOKBodyItemsItems0TypeMANUAL captures enum value "MANUAL" ListBackUpOfClusterOKBodyItemsItems0TypeMANUAL string = "MANUAL" // ListBackUpOfClusterOKBodyItemsItems0TypeAUTO captures enum value "AUTO" ListBackUpOfClusterOKBodyItemsItems0TypeAUTO string = "AUTO" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for backup API
func (*Client) CreateBackup ¶
func (a *Client) CreateBackup(params *CreateBackupParams, opts ...ClientOption) (*CreateBackupOK, error)
CreateBackup creates a backup for a cluster - For TiDB Dedicated clusters, you can create as many manual backups as you need.
- For TiDB Serverless clusters, you cannot create backups via API. You can use [Dumpling](https://docs.pingcap.com/tidb/stable/dumpling-overview) to export your data as backups.
func (*Client) DeleteBackup ¶
func (a *Client) DeleteBackup(params *DeleteBackupParams, opts ...ClientOption) (*DeleteBackupOK, error)
DeleteBackup deletes a backup for a cluster
For TiDB Serverless clusters, you cannot manage backups via API. You can use [Dumpling](https://docs.pingcap.com/tidb/stable/dumpling-overview) to export your data as backups.
func (*Client) GetBackupOfCluster ¶
func (a *Client) GetBackupOfCluster(params *GetBackupOfClusterParams, opts ...ClientOption) (*GetBackupOfClusterOK, error)
GetBackupOfCluster gets a backup for a cluster
For TiDB Serverless clusters, you cannot manage backups via API. You can use [Dumpling](https://docs.pingcap.com/tidb/stable/dumpling-overview) to export your data as backups.
func (*Client) ListBackUpOfCluster ¶
func (a *Client) ListBackUpOfCluster(params *ListBackUpOfClusterParams, opts ...ClientOption) (*ListBackUpOfClusterOK, error)
ListBackUpOfCluster lists all backups for a cluster
For TiDB Serverless clusters, you cannot manage backups via API. You can use [Dumpling](https://docs.pingcap.com/tidb/stable/dumpling-overview) to export your data as backups.
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 { CreateBackup(params *CreateBackupParams, opts ...ClientOption) (*CreateBackupOK, error) DeleteBackup(params *DeleteBackupParams, opts ...ClientOption) (*DeleteBackupOK, error) GetBackupOfCluster(params *GetBackupOfClusterParams, opts ...ClientOption) (*GetBackupOfClusterOK, error) ListBackUpOfCluster(params *ListBackUpOfClusterParams, opts ...ClientOption) (*ListBackUpOfClusterOK, 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 backup API client.
type CreateBackupBadRequest ¶
type CreateBackupBadRequest struct {
Payload *CreateBackupBadRequestBody
}
CreateBackupBadRequest describes a response with status code 400, with default header values.
A request field is invalid.
func NewCreateBackupBadRequest ¶
func NewCreateBackupBadRequest() *CreateBackupBadRequest
NewCreateBackupBadRequest creates a CreateBackupBadRequest with default headers values
func (*CreateBackupBadRequest) Code ¶
func (o *CreateBackupBadRequest) Code() int
Code gets the status code for the create backup bad request response
func (*CreateBackupBadRequest) Error ¶
func (o *CreateBackupBadRequest) Error() string
func (*CreateBackupBadRequest) GetPayload ¶
func (o *CreateBackupBadRequest) GetPayload() *CreateBackupBadRequestBody
func (*CreateBackupBadRequest) IsClientError ¶
func (o *CreateBackupBadRequest) IsClientError() bool
IsClientError returns true when this create backup bad request response has a 4xx status code
func (*CreateBackupBadRequest) IsCode ¶
func (o *CreateBackupBadRequest) IsCode(code int) bool
IsCode returns true when this create backup bad request response a status code equal to that given
func (*CreateBackupBadRequest) IsRedirect ¶
func (o *CreateBackupBadRequest) IsRedirect() bool
IsRedirect returns true when this create backup bad request response has a 3xx status code
func (*CreateBackupBadRequest) IsServerError ¶
func (o *CreateBackupBadRequest) IsServerError() bool
IsServerError returns true when this create backup bad request response has a 5xx status code
func (*CreateBackupBadRequest) IsSuccess ¶
func (o *CreateBackupBadRequest) IsSuccess() bool
IsSuccess returns true when this create backup bad request response has a 2xx status code
func (*CreateBackupBadRequest) String ¶
func (o *CreateBackupBadRequest) String() string
type CreateBackupBadRequestBody ¶
type CreateBackupBadRequestBody 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"` }
CreateBackupBadRequestBody create backup bad request body swagger:model CreateBackupBadRequestBody
func (*CreateBackupBadRequestBody) ContextValidate ¶
func (o *CreateBackupBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create backup bad request body based on context it is used
func (*CreateBackupBadRequestBody) MarshalBinary ¶
func (o *CreateBackupBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBackupBadRequestBody) UnmarshalBinary ¶
func (o *CreateBackupBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateBackupBody ¶
type CreateBackupBody struct { // The description of the backup. It helps you add additional information to the backup. Allows up to 256 characters. // Example: backup-1 Description *string `json:"description,omitempty"` // Specify the name for a manual backup. It is recommended that you use a unique name, so that it is easy to distinguish the backup when you query the backups. // Example: backup-1 // Required: true Name *string `json:"name"` }
CreateBackupBody CreateBackupReq // // This request for creating a MANUAL type backup. swagger:model CreateBackupBody
func (*CreateBackupBody) ContextValidate ¶
ContextValidate validates this create backup body based on context it is used
func (*CreateBackupBody) MarshalBinary ¶
func (o *CreateBackupBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBackupBody) UnmarshalBinary ¶
func (o *CreateBackupBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateBackupDefault ¶
type CreateBackupDefault struct { Payload *CreateBackupDefaultBody // contains filtered or unexported fields }
CreateBackupDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewCreateBackupDefault ¶
func NewCreateBackupDefault(code int) *CreateBackupDefault
NewCreateBackupDefault creates a CreateBackupDefault with default headers values
func (*CreateBackupDefault) Code ¶
func (o *CreateBackupDefault) Code() int
Code gets the status code for the create backup default response
func (*CreateBackupDefault) Error ¶
func (o *CreateBackupDefault) Error() string
func (*CreateBackupDefault) GetPayload ¶
func (o *CreateBackupDefault) GetPayload() *CreateBackupDefaultBody
func (*CreateBackupDefault) IsClientError ¶
func (o *CreateBackupDefault) IsClientError() bool
IsClientError returns true when this create backup default response has a 4xx status code
func (*CreateBackupDefault) IsCode ¶
func (o *CreateBackupDefault) IsCode(code int) bool
IsCode returns true when this create backup default response a status code equal to that given
func (*CreateBackupDefault) IsRedirect ¶
func (o *CreateBackupDefault) IsRedirect() bool
IsRedirect returns true when this create backup default response has a 3xx status code
func (*CreateBackupDefault) IsServerError ¶
func (o *CreateBackupDefault) IsServerError() bool
IsServerError returns true when this create backup default response has a 5xx status code
func (*CreateBackupDefault) IsSuccess ¶
func (o *CreateBackupDefault) IsSuccess() bool
IsSuccess returns true when this create backup default response has a 2xx status code
func (*CreateBackupDefault) String ¶
func (o *CreateBackupDefault) String() string
type CreateBackupDefaultBody ¶
type CreateBackupDefaultBody struct { // code Code int32 `json:"code,omitempty"` // details Details []*CreateBackupDefaultBodyDetailsItems0 `json:"details"` // message Message string `json:"message,omitempty"` }
CreateBackupDefaultBody create backup default body swagger:model CreateBackupDefaultBody
func (*CreateBackupDefaultBody) ContextValidate ¶
func (o *CreateBackupDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this create backup default body based on the context it is used
func (*CreateBackupDefaultBody) MarshalBinary ¶
func (o *CreateBackupDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBackupDefaultBody) UnmarshalBinary ¶
func (o *CreateBackupDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateBackupDefaultBodyDetailsItems0 ¶
type CreateBackupDefaultBodyDetailsItems0 struct { // at type AtType string `json:"@type,omitempty"` }
CreateBackupDefaultBodyDetailsItems0 create backup default body details items0 swagger:model CreateBackupDefaultBodyDetailsItems0
func (*CreateBackupDefaultBodyDetailsItems0) ContextValidate ¶
func (o *CreateBackupDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create backup default body details items0 based on context it is used
func (*CreateBackupDefaultBodyDetailsItems0) MarshalBinary ¶
func (o *CreateBackupDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBackupDefaultBodyDetailsItems0) UnmarshalBinary ¶
func (o *CreateBackupDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateBackupForbidden ¶
type CreateBackupForbidden struct {
Payload *CreateBackupForbiddenBody
}
CreateBackupForbidden describes a response with status code 403, with default header values.
The API key does not have permission to access the resource.
func NewCreateBackupForbidden ¶
func NewCreateBackupForbidden() *CreateBackupForbidden
NewCreateBackupForbidden creates a CreateBackupForbidden with default headers values
func (*CreateBackupForbidden) Code ¶
func (o *CreateBackupForbidden) Code() int
Code gets the status code for the create backup forbidden response
func (*CreateBackupForbidden) Error ¶
func (o *CreateBackupForbidden) Error() string
func (*CreateBackupForbidden) GetPayload ¶
func (o *CreateBackupForbidden) GetPayload() *CreateBackupForbiddenBody
func (*CreateBackupForbidden) IsClientError ¶
func (o *CreateBackupForbidden) IsClientError() bool
IsClientError returns true when this create backup forbidden response has a 4xx status code
func (*CreateBackupForbidden) IsCode ¶
func (o *CreateBackupForbidden) IsCode(code int) bool
IsCode returns true when this create backup forbidden response a status code equal to that given
func (*CreateBackupForbidden) IsRedirect ¶
func (o *CreateBackupForbidden) IsRedirect() bool
IsRedirect returns true when this create backup forbidden response has a 3xx status code
func (*CreateBackupForbidden) IsServerError ¶
func (o *CreateBackupForbidden) IsServerError() bool
IsServerError returns true when this create backup forbidden response has a 5xx status code
func (*CreateBackupForbidden) IsSuccess ¶
func (o *CreateBackupForbidden) IsSuccess() bool
IsSuccess returns true when this create backup forbidden response has a 2xx status code
func (*CreateBackupForbidden) String ¶
func (o *CreateBackupForbidden) String() string
type CreateBackupForbiddenBody ¶
type CreateBackupForbiddenBody 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"` }
CreateBackupForbiddenBody create backup forbidden body swagger:model CreateBackupForbiddenBody
func (*CreateBackupForbiddenBody) ContextValidate ¶
func (o *CreateBackupForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create backup forbidden body based on context it is used
func (*CreateBackupForbiddenBody) MarshalBinary ¶
func (o *CreateBackupForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBackupForbiddenBody) UnmarshalBinary ¶
func (o *CreateBackupForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateBackupInternalServerError ¶
type CreateBackupInternalServerError struct {
Payload *CreateBackupInternalServerErrorBody
}
CreateBackupInternalServerError describes a response with status code 500, with default header values.
Server error.
func NewCreateBackupInternalServerError ¶
func NewCreateBackupInternalServerError() *CreateBackupInternalServerError
NewCreateBackupInternalServerError creates a CreateBackupInternalServerError with default headers values
func (*CreateBackupInternalServerError) Code ¶
func (o *CreateBackupInternalServerError) Code() int
Code gets the status code for the create backup internal server error response
func (*CreateBackupInternalServerError) Error ¶
func (o *CreateBackupInternalServerError) Error() string
func (*CreateBackupInternalServerError) GetPayload ¶
func (o *CreateBackupInternalServerError) GetPayload() *CreateBackupInternalServerErrorBody
func (*CreateBackupInternalServerError) IsClientError ¶
func (o *CreateBackupInternalServerError) IsClientError() bool
IsClientError returns true when this create backup internal server error response has a 4xx status code
func (*CreateBackupInternalServerError) IsCode ¶
func (o *CreateBackupInternalServerError) IsCode(code int) bool
IsCode returns true when this create backup internal server error response a status code equal to that given
func (*CreateBackupInternalServerError) IsRedirect ¶
func (o *CreateBackupInternalServerError) IsRedirect() bool
IsRedirect returns true when this create backup internal server error response has a 3xx status code
func (*CreateBackupInternalServerError) IsServerError ¶
func (o *CreateBackupInternalServerError) IsServerError() bool
IsServerError returns true when this create backup internal server error response has a 5xx status code
func (*CreateBackupInternalServerError) IsSuccess ¶
func (o *CreateBackupInternalServerError) IsSuccess() bool
IsSuccess returns true when this create backup internal server error response has a 2xx status code
func (*CreateBackupInternalServerError) String ¶
func (o *CreateBackupInternalServerError) String() string
type CreateBackupInternalServerErrorBody ¶
type CreateBackupInternalServerErrorBody 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"` }
CreateBackupInternalServerErrorBody create backup internal server error body swagger:model CreateBackupInternalServerErrorBody
func (*CreateBackupInternalServerErrorBody) ContextValidate ¶
func (o *CreateBackupInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create backup internal server error body based on context it is used
func (*CreateBackupInternalServerErrorBody) MarshalBinary ¶
func (o *CreateBackupInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBackupInternalServerErrorBody) UnmarshalBinary ¶
func (o *CreateBackupInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateBackupNotFound ¶
type CreateBackupNotFound struct {
Payload *CreateBackupNotFoundBody
}
CreateBackupNotFound describes a response with status code 404, with default header values.
The requested resource does not exist.
func NewCreateBackupNotFound ¶
func NewCreateBackupNotFound() *CreateBackupNotFound
NewCreateBackupNotFound creates a CreateBackupNotFound with default headers values
func (*CreateBackupNotFound) Code ¶
func (o *CreateBackupNotFound) Code() int
Code gets the status code for the create backup not found response
func (*CreateBackupNotFound) Error ¶
func (o *CreateBackupNotFound) Error() string
func (*CreateBackupNotFound) GetPayload ¶
func (o *CreateBackupNotFound) GetPayload() *CreateBackupNotFoundBody
func (*CreateBackupNotFound) IsClientError ¶
func (o *CreateBackupNotFound) IsClientError() bool
IsClientError returns true when this create backup not found response has a 4xx status code
func (*CreateBackupNotFound) IsCode ¶
func (o *CreateBackupNotFound) IsCode(code int) bool
IsCode returns true when this create backup not found response a status code equal to that given
func (*CreateBackupNotFound) IsRedirect ¶
func (o *CreateBackupNotFound) IsRedirect() bool
IsRedirect returns true when this create backup not found response has a 3xx status code
func (*CreateBackupNotFound) IsServerError ¶
func (o *CreateBackupNotFound) IsServerError() bool
IsServerError returns true when this create backup not found response has a 5xx status code
func (*CreateBackupNotFound) IsSuccess ¶
func (o *CreateBackupNotFound) IsSuccess() bool
IsSuccess returns true when this create backup not found response has a 2xx status code
func (*CreateBackupNotFound) String ¶
func (o *CreateBackupNotFound) String() string
type CreateBackupNotFoundBody ¶
type CreateBackupNotFoundBody 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"` }
CreateBackupNotFoundBody create backup not found body swagger:model CreateBackupNotFoundBody
func (*CreateBackupNotFoundBody) ContextValidate ¶
func (o *CreateBackupNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create backup not found body based on context it is used
func (*CreateBackupNotFoundBody) MarshalBinary ¶
func (o *CreateBackupNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBackupNotFoundBody) UnmarshalBinary ¶
func (o *CreateBackupNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateBackupOK ¶
type CreateBackupOK struct {
Payload *CreateBackupOKBody
}
CreateBackupOK describes a response with status code 200, with default header values.
A successful response.
func NewCreateBackupOK ¶
func NewCreateBackupOK() *CreateBackupOK
NewCreateBackupOK creates a CreateBackupOK with default headers values
func (*CreateBackupOK) Code ¶
func (o *CreateBackupOK) Code() int
Code gets the status code for the create backup o k response
func (*CreateBackupOK) Error ¶
func (o *CreateBackupOK) Error() string
func (*CreateBackupOK) GetPayload ¶
func (o *CreateBackupOK) GetPayload() *CreateBackupOKBody
func (*CreateBackupOK) IsClientError ¶
func (o *CreateBackupOK) IsClientError() bool
IsClientError returns true when this create backup o k response has a 4xx status code
func (*CreateBackupOK) IsCode ¶
func (o *CreateBackupOK) IsCode(code int) bool
IsCode returns true when this create backup o k response a status code equal to that given
func (*CreateBackupOK) IsRedirect ¶
func (o *CreateBackupOK) IsRedirect() bool
IsRedirect returns true when this create backup o k response has a 3xx status code
func (*CreateBackupOK) IsServerError ¶
func (o *CreateBackupOK) IsServerError() bool
IsServerError returns true when this create backup o k response has a 5xx status code
func (*CreateBackupOK) IsSuccess ¶
func (o *CreateBackupOK) IsSuccess() bool
IsSuccess returns true when this create backup o k response has a 2xx status code
func (*CreateBackupOK) String ¶
func (o *CreateBackupOK) String() string
type CreateBackupOKBody ¶
type CreateBackupOKBody struct { // The ID of the backup. // Example: 1 ID string `json:"id,omitempty"` }
CreateBackupOKBody CreateBackupResp // // This response for creating a MANUAL type backup. swagger:model CreateBackupOKBody
func (*CreateBackupOKBody) ContextValidate ¶
ContextValidate validates this create backup o k body based on context it is used
func (*CreateBackupOKBody) MarshalBinary ¶
func (o *CreateBackupOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBackupOKBody) UnmarshalBinary ¶
func (o *CreateBackupOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateBackupParams ¶
type CreateBackupParams struct { // Body. Body CreateBackupBody /* ClusterID. The ID of your cluster that you want to take a manual backup. You can get the cluster ID from the response of [Get all clusters in a project](#tag/Cluster/operation/ListClustersOfProject). Format: uint64 */ ClusterID string /* 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 }
CreateBackupParams contains all the parameters to send to the API endpoint
for the create backup operation. Typically these are written to a http.Request.
func NewCreateBackupParams ¶
func NewCreateBackupParams() *CreateBackupParams
NewCreateBackupParams creates a new CreateBackupParams 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 NewCreateBackupParamsWithContext ¶
func NewCreateBackupParamsWithContext(ctx context.Context) *CreateBackupParams
NewCreateBackupParamsWithContext creates a new CreateBackupParams object with the ability to set a context for a request.
func NewCreateBackupParamsWithHTTPClient ¶
func NewCreateBackupParamsWithHTTPClient(client *http.Client) *CreateBackupParams
NewCreateBackupParamsWithHTTPClient creates a new CreateBackupParams object with the ability to set a custom HTTPClient for a request.
func NewCreateBackupParamsWithTimeout ¶
func NewCreateBackupParamsWithTimeout(timeout time.Duration) *CreateBackupParams
NewCreateBackupParamsWithTimeout creates a new CreateBackupParams object with the ability to set a timeout on a request.
func (*CreateBackupParams) SetBody ¶
func (o *CreateBackupParams) SetBody(body CreateBackupBody)
SetBody adds the body to the create backup params
func (*CreateBackupParams) SetClusterID ¶
func (o *CreateBackupParams) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the create backup params
func (*CreateBackupParams) SetContext ¶
func (o *CreateBackupParams) SetContext(ctx context.Context)
SetContext adds the context to the create backup params
func (*CreateBackupParams) SetDefaults ¶
func (o *CreateBackupParams) SetDefaults()
SetDefaults hydrates default values in the create backup params (not the query body).
All values with no default are reset to their zero value.
func (*CreateBackupParams) SetHTTPClient ¶
func (o *CreateBackupParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create backup params
func (*CreateBackupParams) SetProjectID ¶
func (o *CreateBackupParams) SetProjectID(projectID string)
SetProjectID adds the projectId to the create backup params
func (*CreateBackupParams) SetTimeout ¶
func (o *CreateBackupParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create backup params
func (*CreateBackupParams) WithBody ¶
func (o *CreateBackupParams) WithBody(body CreateBackupBody) *CreateBackupParams
WithBody adds the body to the create backup params
func (*CreateBackupParams) WithClusterID ¶
func (o *CreateBackupParams) WithClusterID(clusterID string) *CreateBackupParams
WithClusterID adds the clusterID to the create backup params
func (*CreateBackupParams) WithContext ¶
func (o *CreateBackupParams) WithContext(ctx context.Context) *CreateBackupParams
WithContext adds the context to the create backup params
func (*CreateBackupParams) WithDefaults ¶
func (o *CreateBackupParams) WithDefaults() *CreateBackupParams
WithDefaults hydrates default values in the create backup params (not the query body).
All values with no default are reset to their zero value.
func (*CreateBackupParams) WithHTTPClient ¶
func (o *CreateBackupParams) WithHTTPClient(client *http.Client) *CreateBackupParams
WithHTTPClient adds the HTTPClient to the create backup params
func (*CreateBackupParams) WithProjectID ¶
func (o *CreateBackupParams) WithProjectID(projectID string) *CreateBackupParams
WithProjectID adds the projectID to the create backup params
func (*CreateBackupParams) WithTimeout ¶
func (o *CreateBackupParams) WithTimeout(timeout time.Duration) *CreateBackupParams
WithTimeout adds the timeout to the create backup params
func (*CreateBackupParams) WriteToRequest ¶
func (o *CreateBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateBackupReader ¶
type CreateBackupReader struct {
// contains filtered or unexported fields
}
CreateBackupReader is a Reader for the CreateBackup structure.
func (*CreateBackupReader) ReadResponse ¶
func (o *CreateBackupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateBackupTooManyRequests ¶
type CreateBackupTooManyRequests struct {
Payload *CreateBackupTooManyRequestsBody
}
CreateBackupTooManyRequests describes a response with status code 429, with default header values.
You have exceed the rate limit.
func NewCreateBackupTooManyRequests ¶
func NewCreateBackupTooManyRequests() *CreateBackupTooManyRequests
NewCreateBackupTooManyRequests creates a CreateBackupTooManyRequests with default headers values
func (*CreateBackupTooManyRequests) Code ¶
func (o *CreateBackupTooManyRequests) Code() int
Code gets the status code for the create backup too many requests response
func (*CreateBackupTooManyRequests) Error ¶
func (o *CreateBackupTooManyRequests) Error() string
func (*CreateBackupTooManyRequests) GetPayload ¶
func (o *CreateBackupTooManyRequests) GetPayload() *CreateBackupTooManyRequestsBody
func (*CreateBackupTooManyRequests) IsClientError ¶
func (o *CreateBackupTooManyRequests) IsClientError() bool
IsClientError returns true when this create backup too many requests response has a 4xx status code
func (*CreateBackupTooManyRequests) IsCode ¶
func (o *CreateBackupTooManyRequests) IsCode(code int) bool
IsCode returns true when this create backup too many requests response a status code equal to that given
func (*CreateBackupTooManyRequests) IsRedirect ¶
func (o *CreateBackupTooManyRequests) IsRedirect() bool
IsRedirect returns true when this create backup too many requests response has a 3xx status code
func (*CreateBackupTooManyRequests) IsServerError ¶
func (o *CreateBackupTooManyRequests) IsServerError() bool
IsServerError returns true when this create backup too many requests response has a 5xx status code
func (*CreateBackupTooManyRequests) IsSuccess ¶
func (o *CreateBackupTooManyRequests) IsSuccess() bool
IsSuccess returns true when this create backup too many requests response has a 2xx status code
func (*CreateBackupTooManyRequests) String ¶
func (o *CreateBackupTooManyRequests) String() string
type CreateBackupTooManyRequestsBody ¶
type CreateBackupTooManyRequestsBody 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"` }
CreateBackupTooManyRequestsBody create backup too many requests body swagger:model CreateBackupTooManyRequestsBody
func (*CreateBackupTooManyRequestsBody) ContextValidate ¶
func (o *CreateBackupTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create backup too many requests body based on context it is used
func (*CreateBackupTooManyRequestsBody) MarshalBinary ¶
func (o *CreateBackupTooManyRequestsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBackupTooManyRequestsBody) UnmarshalBinary ¶
func (o *CreateBackupTooManyRequestsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateBackupUnauthorized ¶
type CreateBackupUnauthorized struct {
}CreateBackupUnauthorized describes a response with status code 401, with default header values.
The API key cannot be authenticated.
func NewCreateBackupUnauthorized ¶
func NewCreateBackupUnauthorized() *CreateBackupUnauthorized
NewCreateBackupUnauthorized creates a CreateBackupUnauthorized with default headers values
func (*CreateBackupUnauthorized) Code ¶
func (o *CreateBackupUnauthorized) Code() int
Code gets the status code for the create backup unauthorized response
func (*CreateBackupUnauthorized) Error ¶
func (o *CreateBackupUnauthorized) Error() string
func (*CreateBackupUnauthorized) GetPayload ¶
func (o *CreateBackupUnauthorized) GetPayload() interface{}
func (*CreateBackupUnauthorized) IsClientError ¶
func (o *CreateBackupUnauthorized) IsClientError() bool
IsClientError returns true when this create backup unauthorized response has a 4xx status code
func (*CreateBackupUnauthorized) IsCode ¶
func (o *CreateBackupUnauthorized) IsCode(code int) bool
IsCode returns true when this create backup unauthorized response a status code equal to that given
func (*CreateBackupUnauthorized) IsRedirect ¶
func (o *CreateBackupUnauthorized) IsRedirect() bool
IsRedirect returns true when this create backup unauthorized response has a 3xx status code
func (*CreateBackupUnauthorized) IsServerError ¶
func (o *CreateBackupUnauthorized) IsServerError() bool
IsServerError returns true when this create backup unauthorized response has a 5xx status code
func (*CreateBackupUnauthorized) IsSuccess ¶
func (o *CreateBackupUnauthorized) IsSuccess() bool
IsSuccess returns true when this create backup unauthorized response has a 2xx status code
func (*CreateBackupUnauthorized) String ¶
func (o *CreateBackupUnauthorized) String() string
type DeleteBackupBadRequest ¶
type DeleteBackupBadRequest struct {
Payload *DeleteBackupBadRequestBody
}
DeleteBackupBadRequest describes a response with status code 400, with default header values.
A request field is invalid.
func NewDeleteBackupBadRequest ¶
func NewDeleteBackupBadRequest() *DeleteBackupBadRequest
NewDeleteBackupBadRequest creates a DeleteBackupBadRequest with default headers values
func (*DeleteBackupBadRequest) Code ¶
func (o *DeleteBackupBadRequest) Code() int
Code gets the status code for the delete backup bad request response
func (*DeleteBackupBadRequest) Error ¶
func (o *DeleteBackupBadRequest) Error() string
func (*DeleteBackupBadRequest) GetPayload ¶
func (o *DeleteBackupBadRequest) GetPayload() *DeleteBackupBadRequestBody
func (*DeleteBackupBadRequest) IsClientError ¶
func (o *DeleteBackupBadRequest) IsClientError() bool
IsClientError returns true when this delete backup bad request response has a 4xx status code
func (*DeleteBackupBadRequest) IsCode ¶
func (o *DeleteBackupBadRequest) IsCode(code int) bool
IsCode returns true when this delete backup bad request response a status code equal to that given
func (*DeleteBackupBadRequest) IsRedirect ¶
func (o *DeleteBackupBadRequest) IsRedirect() bool
IsRedirect returns true when this delete backup bad request response has a 3xx status code
func (*DeleteBackupBadRequest) IsServerError ¶
func (o *DeleteBackupBadRequest) IsServerError() bool
IsServerError returns true when this delete backup bad request response has a 5xx status code
func (*DeleteBackupBadRequest) IsSuccess ¶
func (o *DeleteBackupBadRequest) IsSuccess() bool
IsSuccess returns true when this delete backup bad request response has a 2xx status code
func (*DeleteBackupBadRequest) String ¶
func (o *DeleteBackupBadRequest) String() string
type DeleteBackupBadRequestBody ¶
type DeleteBackupBadRequestBody 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"` }
DeleteBackupBadRequestBody delete backup bad request body swagger:model DeleteBackupBadRequestBody
func (*DeleteBackupBadRequestBody) ContextValidate ¶
func (o *DeleteBackupBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this delete backup bad request body based on context it is used
func (*DeleteBackupBadRequestBody) MarshalBinary ¶
func (o *DeleteBackupBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteBackupBadRequestBody) UnmarshalBinary ¶
func (o *DeleteBackupBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteBackupDefault ¶
type DeleteBackupDefault struct { Payload *DeleteBackupDefaultBody // contains filtered or unexported fields }
DeleteBackupDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewDeleteBackupDefault ¶
func NewDeleteBackupDefault(code int) *DeleteBackupDefault
NewDeleteBackupDefault creates a DeleteBackupDefault with default headers values
func (*DeleteBackupDefault) Code ¶
func (o *DeleteBackupDefault) Code() int
Code gets the status code for the delete backup default response
func (*DeleteBackupDefault) Error ¶
func (o *DeleteBackupDefault) Error() string
func (*DeleteBackupDefault) GetPayload ¶
func (o *DeleteBackupDefault) GetPayload() *DeleteBackupDefaultBody
func (*DeleteBackupDefault) IsClientError ¶
func (o *DeleteBackupDefault) IsClientError() bool
IsClientError returns true when this delete backup default response has a 4xx status code
func (*DeleteBackupDefault) IsCode ¶
func (o *DeleteBackupDefault) IsCode(code int) bool
IsCode returns true when this delete backup default response a status code equal to that given
func (*DeleteBackupDefault) IsRedirect ¶
func (o *DeleteBackupDefault) IsRedirect() bool
IsRedirect returns true when this delete backup default response has a 3xx status code
func (*DeleteBackupDefault) IsServerError ¶
func (o *DeleteBackupDefault) IsServerError() bool
IsServerError returns true when this delete backup default response has a 5xx status code
func (*DeleteBackupDefault) IsSuccess ¶
func (o *DeleteBackupDefault) IsSuccess() bool
IsSuccess returns true when this delete backup default response has a 2xx status code
func (*DeleteBackupDefault) String ¶
func (o *DeleteBackupDefault) String() string
type DeleteBackupDefaultBody ¶
type DeleteBackupDefaultBody struct { // code Code int32 `json:"code,omitempty"` // details Details []*DeleteBackupDefaultBodyDetailsItems0 `json:"details"` // message Message string `json:"message,omitempty"` }
DeleteBackupDefaultBody delete backup default body swagger:model DeleteBackupDefaultBody
func (*DeleteBackupDefaultBody) ContextValidate ¶
func (o *DeleteBackupDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this delete backup default body based on the context it is used
func (*DeleteBackupDefaultBody) MarshalBinary ¶
func (o *DeleteBackupDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteBackupDefaultBody) UnmarshalBinary ¶
func (o *DeleteBackupDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteBackupDefaultBodyDetailsItems0 ¶
type DeleteBackupDefaultBodyDetailsItems0 struct { // at type AtType string `json:"@type,omitempty"` }
DeleteBackupDefaultBodyDetailsItems0 delete backup default body details items0 swagger:model DeleteBackupDefaultBodyDetailsItems0
func (*DeleteBackupDefaultBodyDetailsItems0) ContextValidate ¶
func (o *DeleteBackupDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this delete backup default body details items0 based on context it is used
func (*DeleteBackupDefaultBodyDetailsItems0) MarshalBinary ¶
func (o *DeleteBackupDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteBackupDefaultBodyDetailsItems0) UnmarshalBinary ¶
func (o *DeleteBackupDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteBackupForbidden ¶
type DeleteBackupForbidden struct {
Payload *DeleteBackupForbiddenBody
}
DeleteBackupForbidden describes a response with status code 403, with default header values.
The API key does not have permission to access the resource.
func NewDeleteBackupForbidden ¶
func NewDeleteBackupForbidden() *DeleteBackupForbidden
NewDeleteBackupForbidden creates a DeleteBackupForbidden with default headers values
func (*DeleteBackupForbidden) Code ¶
func (o *DeleteBackupForbidden) Code() int
Code gets the status code for the delete backup forbidden response
func (*DeleteBackupForbidden) Error ¶
func (o *DeleteBackupForbidden) Error() string
func (*DeleteBackupForbidden) GetPayload ¶
func (o *DeleteBackupForbidden) GetPayload() *DeleteBackupForbiddenBody
func (*DeleteBackupForbidden) IsClientError ¶
func (o *DeleteBackupForbidden) IsClientError() bool
IsClientError returns true when this delete backup forbidden response has a 4xx status code
func (*DeleteBackupForbidden) IsCode ¶
func (o *DeleteBackupForbidden) IsCode(code int) bool
IsCode returns true when this delete backup forbidden response a status code equal to that given
func (*DeleteBackupForbidden) IsRedirect ¶
func (o *DeleteBackupForbidden) IsRedirect() bool
IsRedirect returns true when this delete backup forbidden response has a 3xx status code
func (*DeleteBackupForbidden) IsServerError ¶
func (o *DeleteBackupForbidden) IsServerError() bool
IsServerError returns true when this delete backup forbidden response has a 5xx status code
func (*DeleteBackupForbidden) IsSuccess ¶
func (o *DeleteBackupForbidden) IsSuccess() bool
IsSuccess returns true when this delete backup forbidden response has a 2xx status code
func (*DeleteBackupForbidden) String ¶
func (o *DeleteBackupForbidden) String() string
type DeleteBackupForbiddenBody ¶
type DeleteBackupForbiddenBody 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"` }
DeleteBackupForbiddenBody delete backup forbidden body swagger:model DeleteBackupForbiddenBody
func (*DeleteBackupForbiddenBody) ContextValidate ¶
func (o *DeleteBackupForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this delete backup forbidden body based on context it is used
func (*DeleteBackupForbiddenBody) MarshalBinary ¶
func (o *DeleteBackupForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteBackupForbiddenBody) UnmarshalBinary ¶
func (o *DeleteBackupForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteBackupInternalServerError ¶
type DeleteBackupInternalServerError struct {
Payload *DeleteBackupInternalServerErrorBody
}
DeleteBackupInternalServerError describes a response with status code 500, with default header values.
Server error.
func NewDeleteBackupInternalServerError ¶
func NewDeleteBackupInternalServerError() *DeleteBackupInternalServerError
NewDeleteBackupInternalServerError creates a DeleteBackupInternalServerError with default headers values
func (*DeleteBackupInternalServerError) Code ¶
func (o *DeleteBackupInternalServerError) Code() int
Code gets the status code for the delete backup internal server error response
func (*DeleteBackupInternalServerError) Error ¶
func (o *DeleteBackupInternalServerError) Error() string
func (*DeleteBackupInternalServerError) GetPayload ¶
func (o *DeleteBackupInternalServerError) GetPayload() *DeleteBackupInternalServerErrorBody
func (*DeleteBackupInternalServerError) IsClientError ¶
func (o *DeleteBackupInternalServerError) IsClientError() bool
IsClientError returns true when this delete backup internal server error response has a 4xx status code
func (*DeleteBackupInternalServerError) IsCode ¶
func (o *DeleteBackupInternalServerError) IsCode(code int) bool
IsCode returns true when this delete backup internal server error response a status code equal to that given
func (*DeleteBackupInternalServerError) IsRedirect ¶
func (o *DeleteBackupInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete backup internal server error response has a 3xx status code
func (*DeleteBackupInternalServerError) IsServerError ¶
func (o *DeleteBackupInternalServerError) IsServerError() bool
IsServerError returns true when this delete backup internal server error response has a 5xx status code
func (*DeleteBackupInternalServerError) IsSuccess ¶
func (o *DeleteBackupInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete backup internal server error response has a 2xx status code
func (*DeleteBackupInternalServerError) String ¶
func (o *DeleteBackupInternalServerError) String() string
type DeleteBackupInternalServerErrorBody ¶
type DeleteBackupInternalServerErrorBody 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"` }
DeleteBackupInternalServerErrorBody delete backup internal server error body swagger:model DeleteBackupInternalServerErrorBody
func (*DeleteBackupInternalServerErrorBody) ContextValidate ¶
func (o *DeleteBackupInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this delete backup internal server error body based on context it is used
func (*DeleteBackupInternalServerErrorBody) MarshalBinary ¶
func (o *DeleteBackupInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteBackupInternalServerErrorBody) UnmarshalBinary ¶
func (o *DeleteBackupInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteBackupNotFound ¶
type DeleteBackupNotFound struct {
Payload *DeleteBackupNotFoundBody
}
DeleteBackupNotFound describes a response with status code 404, with default header values.
The requested resource does not exist.
func NewDeleteBackupNotFound ¶
func NewDeleteBackupNotFound() *DeleteBackupNotFound
NewDeleteBackupNotFound creates a DeleteBackupNotFound with default headers values
func (*DeleteBackupNotFound) Code ¶
func (o *DeleteBackupNotFound) Code() int
Code gets the status code for the delete backup not found response
func (*DeleteBackupNotFound) Error ¶
func (o *DeleteBackupNotFound) Error() string
func (*DeleteBackupNotFound) GetPayload ¶
func (o *DeleteBackupNotFound) GetPayload() *DeleteBackupNotFoundBody
func (*DeleteBackupNotFound) IsClientError ¶
func (o *DeleteBackupNotFound) IsClientError() bool
IsClientError returns true when this delete backup not found response has a 4xx status code
func (*DeleteBackupNotFound) IsCode ¶
func (o *DeleteBackupNotFound) IsCode(code int) bool
IsCode returns true when this delete backup not found response a status code equal to that given
func (*DeleteBackupNotFound) IsRedirect ¶
func (o *DeleteBackupNotFound) IsRedirect() bool
IsRedirect returns true when this delete backup not found response has a 3xx status code
func (*DeleteBackupNotFound) IsServerError ¶
func (o *DeleteBackupNotFound) IsServerError() bool
IsServerError returns true when this delete backup not found response has a 5xx status code
func (*DeleteBackupNotFound) IsSuccess ¶
func (o *DeleteBackupNotFound) IsSuccess() bool
IsSuccess returns true when this delete backup not found response has a 2xx status code
func (*DeleteBackupNotFound) String ¶
func (o *DeleteBackupNotFound) String() string
type DeleteBackupNotFoundBody ¶
type DeleteBackupNotFoundBody 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"` }
DeleteBackupNotFoundBody delete backup not found body swagger:model DeleteBackupNotFoundBody
func (*DeleteBackupNotFoundBody) ContextValidate ¶
func (o *DeleteBackupNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this delete backup not found body based on context it is used
func (*DeleteBackupNotFoundBody) MarshalBinary ¶
func (o *DeleteBackupNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteBackupNotFoundBody) UnmarshalBinary ¶
func (o *DeleteBackupNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteBackupOK ¶
type DeleteBackupOK struct {
Payload interface{}
}
DeleteBackupOK describes a response with status code 200, with default header values.
A successful response.
func NewDeleteBackupOK ¶
func NewDeleteBackupOK() *DeleteBackupOK
NewDeleteBackupOK creates a DeleteBackupOK with default headers values
func (*DeleteBackupOK) Code ¶
func (o *DeleteBackupOK) Code() int
Code gets the status code for the delete backup o k response
func (*DeleteBackupOK) Error ¶
func (o *DeleteBackupOK) Error() string
func (*DeleteBackupOK) GetPayload ¶
func (o *DeleteBackupOK) GetPayload() interface{}
func (*DeleteBackupOK) IsClientError ¶
func (o *DeleteBackupOK) IsClientError() bool
IsClientError returns true when this delete backup o k response has a 4xx status code
func (*DeleteBackupOK) IsCode ¶
func (o *DeleteBackupOK) IsCode(code int) bool
IsCode returns true when this delete backup o k response a status code equal to that given
func (*DeleteBackupOK) IsRedirect ¶
func (o *DeleteBackupOK) IsRedirect() bool
IsRedirect returns true when this delete backup o k response has a 3xx status code
func (*DeleteBackupOK) IsServerError ¶
func (o *DeleteBackupOK) IsServerError() bool
IsServerError returns true when this delete backup o k response has a 5xx status code
func (*DeleteBackupOK) IsSuccess ¶
func (o *DeleteBackupOK) IsSuccess() bool
IsSuccess returns true when this delete backup o k response has a 2xx status code
func (*DeleteBackupOK) String ¶
func (o *DeleteBackupOK) String() string
type DeleteBackupParams ¶
type DeleteBackupParams struct { /* BackupID. The ID of the backup. You can get the backup ID from the response of [List all backups for a cluster](#tag/Project/operation/ListBackUpOfCluster). Format: uint64 */ BackupID string /* ClusterID. The ID of your cluster. You can get the cluster ID from the response of [Get all clusters in a project](#tag/Cluster/operation/ListClustersOfProject). Format: uint64 */ ClusterID string /* 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 }
DeleteBackupParams contains all the parameters to send to the API endpoint
for the delete backup operation. Typically these are written to a http.Request.
func NewDeleteBackupParams ¶
func NewDeleteBackupParams() *DeleteBackupParams
NewDeleteBackupParams creates a new DeleteBackupParams 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 NewDeleteBackupParamsWithContext ¶
func NewDeleteBackupParamsWithContext(ctx context.Context) *DeleteBackupParams
NewDeleteBackupParamsWithContext creates a new DeleteBackupParams object with the ability to set a context for a request.
func NewDeleteBackupParamsWithHTTPClient ¶
func NewDeleteBackupParamsWithHTTPClient(client *http.Client) *DeleteBackupParams
NewDeleteBackupParamsWithHTTPClient creates a new DeleteBackupParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteBackupParamsWithTimeout ¶
func NewDeleteBackupParamsWithTimeout(timeout time.Duration) *DeleteBackupParams
NewDeleteBackupParamsWithTimeout creates a new DeleteBackupParams object with the ability to set a timeout on a request.
func (*DeleteBackupParams) SetBackupID ¶
func (o *DeleteBackupParams) SetBackupID(backupID string)
SetBackupID adds the backupId to the delete backup params
func (*DeleteBackupParams) SetClusterID ¶
func (o *DeleteBackupParams) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the delete backup params
func (*DeleteBackupParams) SetContext ¶
func (o *DeleteBackupParams) SetContext(ctx context.Context)
SetContext adds the context to the delete backup params
func (*DeleteBackupParams) SetDefaults ¶
func (o *DeleteBackupParams) SetDefaults()
SetDefaults hydrates default values in the delete backup params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteBackupParams) SetHTTPClient ¶
func (o *DeleteBackupParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete backup params
func (*DeleteBackupParams) SetProjectID ¶
func (o *DeleteBackupParams) SetProjectID(projectID string)
SetProjectID adds the projectId to the delete backup params
func (*DeleteBackupParams) SetTimeout ¶
func (o *DeleteBackupParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete backup params
func (*DeleteBackupParams) WithBackupID ¶
func (o *DeleteBackupParams) WithBackupID(backupID string) *DeleteBackupParams
WithBackupID adds the backupID to the delete backup params
func (*DeleteBackupParams) WithClusterID ¶
func (o *DeleteBackupParams) WithClusterID(clusterID string) *DeleteBackupParams
WithClusterID adds the clusterID to the delete backup params
func (*DeleteBackupParams) WithContext ¶
func (o *DeleteBackupParams) WithContext(ctx context.Context) *DeleteBackupParams
WithContext adds the context to the delete backup params
func (*DeleteBackupParams) WithDefaults ¶
func (o *DeleteBackupParams) WithDefaults() *DeleteBackupParams
WithDefaults hydrates default values in the delete backup params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteBackupParams) WithHTTPClient ¶
func (o *DeleteBackupParams) WithHTTPClient(client *http.Client) *DeleteBackupParams
WithHTTPClient adds the HTTPClient to the delete backup params
func (*DeleteBackupParams) WithProjectID ¶
func (o *DeleteBackupParams) WithProjectID(projectID string) *DeleteBackupParams
WithProjectID adds the projectID to the delete backup params
func (*DeleteBackupParams) WithTimeout ¶
func (o *DeleteBackupParams) WithTimeout(timeout time.Duration) *DeleteBackupParams
WithTimeout adds the timeout to the delete backup params
func (*DeleteBackupParams) WriteToRequest ¶
func (o *DeleteBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteBackupReader ¶
type DeleteBackupReader struct {
// contains filtered or unexported fields
}
DeleteBackupReader is a Reader for the DeleteBackup structure.
func (*DeleteBackupReader) ReadResponse ¶
func (o *DeleteBackupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteBackupTooManyRequests ¶
type DeleteBackupTooManyRequests struct {
Payload *DeleteBackupTooManyRequestsBody
}
DeleteBackupTooManyRequests describes a response with status code 429, with default header values.
You have exceed the rate limit.
func NewDeleteBackupTooManyRequests ¶
func NewDeleteBackupTooManyRequests() *DeleteBackupTooManyRequests
NewDeleteBackupTooManyRequests creates a DeleteBackupTooManyRequests with default headers values
func (*DeleteBackupTooManyRequests) Code ¶
func (o *DeleteBackupTooManyRequests) Code() int
Code gets the status code for the delete backup too many requests response
func (*DeleteBackupTooManyRequests) Error ¶
func (o *DeleteBackupTooManyRequests) Error() string
func (*DeleteBackupTooManyRequests) GetPayload ¶
func (o *DeleteBackupTooManyRequests) GetPayload() *DeleteBackupTooManyRequestsBody
func (*DeleteBackupTooManyRequests) IsClientError ¶
func (o *DeleteBackupTooManyRequests) IsClientError() bool
IsClientError returns true when this delete backup too many requests response has a 4xx status code
func (*DeleteBackupTooManyRequests) IsCode ¶
func (o *DeleteBackupTooManyRequests) IsCode(code int) bool
IsCode returns true when this delete backup too many requests response a status code equal to that given
func (*DeleteBackupTooManyRequests) IsRedirect ¶
func (o *DeleteBackupTooManyRequests) IsRedirect() bool
IsRedirect returns true when this delete backup too many requests response has a 3xx status code
func (*DeleteBackupTooManyRequests) IsServerError ¶
func (o *DeleteBackupTooManyRequests) IsServerError() bool
IsServerError returns true when this delete backup too many requests response has a 5xx status code
func (*DeleteBackupTooManyRequests) IsSuccess ¶
func (o *DeleteBackupTooManyRequests) IsSuccess() bool
IsSuccess returns true when this delete backup too many requests response has a 2xx status code
func (*DeleteBackupTooManyRequests) String ¶
func (o *DeleteBackupTooManyRequests) String() string
type DeleteBackupTooManyRequestsBody ¶
type DeleteBackupTooManyRequestsBody 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"` }
DeleteBackupTooManyRequestsBody delete backup too many requests body swagger:model DeleteBackupTooManyRequestsBody
func (*DeleteBackupTooManyRequestsBody) ContextValidate ¶
func (o *DeleteBackupTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this delete backup too many requests body based on context it is used
func (*DeleteBackupTooManyRequestsBody) MarshalBinary ¶
func (o *DeleteBackupTooManyRequestsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteBackupTooManyRequestsBody) UnmarshalBinary ¶
func (o *DeleteBackupTooManyRequestsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteBackupUnauthorized ¶
type DeleteBackupUnauthorized struct {
}DeleteBackupUnauthorized describes a response with status code 401, with default header values.
The API key cannot be authenticated.
func NewDeleteBackupUnauthorized ¶
func NewDeleteBackupUnauthorized() *DeleteBackupUnauthorized
NewDeleteBackupUnauthorized creates a DeleteBackupUnauthorized with default headers values
func (*DeleteBackupUnauthorized) Code ¶
func (o *DeleteBackupUnauthorized) Code() int
Code gets the status code for the delete backup unauthorized response
func (*DeleteBackupUnauthorized) Error ¶
func (o *DeleteBackupUnauthorized) Error() string
func (*DeleteBackupUnauthorized) GetPayload ¶
func (o *DeleteBackupUnauthorized) GetPayload() interface{}
func (*DeleteBackupUnauthorized) IsClientError ¶
func (o *DeleteBackupUnauthorized) IsClientError() bool
IsClientError returns true when this delete backup unauthorized response has a 4xx status code
func (*DeleteBackupUnauthorized) IsCode ¶
func (o *DeleteBackupUnauthorized) IsCode(code int) bool
IsCode returns true when this delete backup unauthorized response a status code equal to that given
func (*DeleteBackupUnauthorized) IsRedirect ¶
func (o *DeleteBackupUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete backup unauthorized response has a 3xx status code
func (*DeleteBackupUnauthorized) IsServerError ¶
func (o *DeleteBackupUnauthorized) IsServerError() bool
IsServerError returns true when this delete backup unauthorized response has a 5xx status code
func (*DeleteBackupUnauthorized) IsSuccess ¶
func (o *DeleteBackupUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete backup unauthorized response has a 2xx status code
func (*DeleteBackupUnauthorized) String ¶
func (o *DeleteBackupUnauthorized) String() string
type GetBackupOfClusterBadRequest ¶
type GetBackupOfClusterBadRequest struct {
Payload *GetBackupOfClusterBadRequestBody
}
GetBackupOfClusterBadRequest describes a response with status code 400, with default header values.
A request field is invalid.
func NewGetBackupOfClusterBadRequest ¶
func NewGetBackupOfClusterBadRequest() *GetBackupOfClusterBadRequest
NewGetBackupOfClusterBadRequest creates a GetBackupOfClusterBadRequest with default headers values
func (*GetBackupOfClusterBadRequest) Code ¶
func (o *GetBackupOfClusterBadRequest) Code() int
Code gets the status code for the get backup of cluster bad request response
func (*GetBackupOfClusterBadRequest) Error ¶
func (o *GetBackupOfClusterBadRequest) Error() string
func (*GetBackupOfClusterBadRequest) GetPayload ¶
func (o *GetBackupOfClusterBadRequest) GetPayload() *GetBackupOfClusterBadRequestBody
func (*GetBackupOfClusterBadRequest) IsClientError ¶
func (o *GetBackupOfClusterBadRequest) IsClientError() bool
IsClientError returns true when this get backup of cluster bad request response has a 4xx status code
func (*GetBackupOfClusterBadRequest) IsCode ¶
func (o *GetBackupOfClusterBadRequest) IsCode(code int) bool
IsCode returns true when this get backup of cluster bad request response a status code equal to that given
func (*GetBackupOfClusterBadRequest) IsRedirect ¶
func (o *GetBackupOfClusterBadRequest) IsRedirect() bool
IsRedirect returns true when this get backup of cluster bad request response has a 3xx status code
func (*GetBackupOfClusterBadRequest) IsServerError ¶
func (o *GetBackupOfClusterBadRequest) IsServerError() bool
IsServerError returns true when this get backup of cluster bad request response has a 5xx status code
func (*GetBackupOfClusterBadRequest) IsSuccess ¶
func (o *GetBackupOfClusterBadRequest) IsSuccess() bool
IsSuccess returns true when this get backup of cluster bad request response has a 2xx status code
func (*GetBackupOfClusterBadRequest) String ¶
func (o *GetBackupOfClusterBadRequest) String() string
type GetBackupOfClusterBadRequestBody ¶
type GetBackupOfClusterBadRequestBody 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"` }
GetBackupOfClusterBadRequestBody get backup of cluster bad request body swagger:model GetBackupOfClusterBadRequestBody
func (*GetBackupOfClusterBadRequestBody) ContextValidate ¶
func (o *GetBackupOfClusterBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get backup of cluster bad request body based on context it is used
func (*GetBackupOfClusterBadRequestBody) MarshalBinary ¶
func (o *GetBackupOfClusterBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackupOfClusterBadRequestBody) UnmarshalBinary ¶
func (o *GetBackupOfClusterBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackupOfClusterDefault ¶
type GetBackupOfClusterDefault struct { Payload *GetBackupOfClusterDefaultBody // contains filtered or unexported fields }
GetBackupOfClusterDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewGetBackupOfClusterDefault ¶
func NewGetBackupOfClusterDefault(code int) *GetBackupOfClusterDefault
NewGetBackupOfClusterDefault creates a GetBackupOfClusterDefault with default headers values
func (*GetBackupOfClusterDefault) Code ¶
func (o *GetBackupOfClusterDefault) Code() int
Code gets the status code for the get backup of cluster default response
func (*GetBackupOfClusterDefault) Error ¶
func (o *GetBackupOfClusterDefault) Error() string
func (*GetBackupOfClusterDefault) GetPayload ¶
func (o *GetBackupOfClusterDefault) GetPayload() *GetBackupOfClusterDefaultBody
func (*GetBackupOfClusterDefault) IsClientError ¶
func (o *GetBackupOfClusterDefault) IsClientError() bool
IsClientError returns true when this get backup of cluster default response has a 4xx status code
func (*GetBackupOfClusterDefault) IsCode ¶
func (o *GetBackupOfClusterDefault) IsCode(code int) bool
IsCode returns true when this get backup of cluster default response a status code equal to that given
func (*GetBackupOfClusterDefault) IsRedirect ¶
func (o *GetBackupOfClusterDefault) IsRedirect() bool
IsRedirect returns true when this get backup of cluster default response has a 3xx status code
func (*GetBackupOfClusterDefault) IsServerError ¶
func (o *GetBackupOfClusterDefault) IsServerError() bool
IsServerError returns true when this get backup of cluster default response has a 5xx status code
func (*GetBackupOfClusterDefault) IsSuccess ¶
func (o *GetBackupOfClusterDefault) IsSuccess() bool
IsSuccess returns true when this get backup of cluster default response has a 2xx status code
func (*GetBackupOfClusterDefault) String ¶
func (o *GetBackupOfClusterDefault) String() string
type GetBackupOfClusterDefaultBody ¶
type GetBackupOfClusterDefaultBody struct { // code Code int32 `json:"code,omitempty"` // details Details []*GetBackupOfClusterDefaultBodyDetailsItems0 `json:"details"` // message Message string `json:"message,omitempty"` }
GetBackupOfClusterDefaultBody get backup of cluster default body swagger:model GetBackupOfClusterDefaultBody
func (*GetBackupOfClusterDefaultBody) ContextValidate ¶
func (o *GetBackupOfClusterDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get backup of cluster default body based on the context it is used
func (*GetBackupOfClusterDefaultBody) MarshalBinary ¶
func (o *GetBackupOfClusterDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackupOfClusterDefaultBody) UnmarshalBinary ¶
func (o *GetBackupOfClusterDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackupOfClusterDefaultBodyDetailsItems0 ¶
type GetBackupOfClusterDefaultBodyDetailsItems0 struct { // at type AtType string `json:"@type,omitempty"` }
GetBackupOfClusterDefaultBodyDetailsItems0 get backup of cluster default body details items0 swagger:model GetBackupOfClusterDefaultBodyDetailsItems0
func (*GetBackupOfClusterDefaultBodyDetailsItems0) ContextValidate ¶
func (o *GetBackupOfClusterDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get backup of cluster default body details items0 based on context it is used
func (*GetBackupOfClusterDefaultBodyDetailsItems0) MarshalBinary ¶
func (o *GetBackupOfClusterDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackupOfClusterDefaultBodyDetailsItems0) UnmarshalBinary ¶
func (o *GetBackupOfClusterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackupOfClusterForbidden ¶
type GetBackupOfClusterForbidden struct {
Payload *GetBackupOfClusterForbiddenBody
}
GetBackupOfClusterForbidden describes a response with status code 403, with default header values.
The API key does not have permission to access the resource.
func NewGetBackupOfClusterForbidden ¶
func NewGetBackupOfClusterForbidden() *GetBackupOfClusterForbidden
NewGetBackupOfClusterForbidden creates a GetBackupOfClusterForbidden with default headers values
func (*GetBackupOfClusterForbidden) Code ¶
func (o *GetBackupOfClusterForbidden) Code() int
Code gets the status code for the get backup of cluster forbidden response
func (*GetBackupOfClusterForbidden) Error ¶
func (o *GetBackupOfClusterForbidden) Error() string
func (*GetBackupOfClusterForbidden) GetPayload ¶
func (o *GetBackupOfClusterForbidden) GetPayload() *GetBackupOfClusterForbiddenBody
func (*GetBackupOfClusterForbidden) IsClientError ¶
func (o *GetBackupOfClusterForbidden) IsClientError() bool
IsClientError returns true when this get backup of cluster forbidden response has a 4xx status code
func (*GetBackupOfClusterForbidden) IsCode ¶
func (o *GetBackupOfClusterForbidden) IsCode(code int) bool
IsCode returns true when this get backup of cluster forbidden response a status code equal to that given
func (*GetBackupOfClusterForbidden) IsRedirect ¶
func (o *GetBackupOfClusterForbidden) IsRedirect() bool
IsRedirect returns true when this get backup of cluster forbidden response has a 3xx status code
func (*GetBackupOfClusterForbidden) IsServerError ¶
func (o *GetBackupOfClusterForbidden) IsServerError() bool
IsServerError returns true when this get backup of cluster forbidden response has a 5xx status code
func (*GetBackupOfClusterForbidden) IsSuccess ¶
func (o *GetBackupOfClusterForbidden) IsSuccess() bool
IsSuccess returns true when this get backup of cluster forbidden response has a 2xx status code
func (*GetBackupOfClusterForbidden) String ¶
func (o *GetBackupOfClusterForbidden) String() string
type GetBackupOfClusterForbiddenBody ¶
type GetBackupOfClusterForbiddenBody 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"` }
GetBackupOfClusterForbiddenBody get backup of cluster forbidden body swagger:model GetBackupOfClusterForbiddenBody
func (*GetBackupOfClusterForbiddenBody) ContextValidate ¶
func (o *GetBackupOfClusterForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get backup of cluster forbidden body based on context it is used
func (*GetBackupOfClusterForbiddenBody) MarshalBinary ¶
func (o *GetBackupOfClusterForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackupOfClusterForbiddenBody) UnmarshalBinary ¶
func (o *GetBackupOfClusterForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackupOfClusterInternalServerError ¶
type GetBackupOfClusterInternalServerError struct {
Payload *GetBackupOfClusterInternalServerErrorBody
}
GetBackupOfClusterInternalServerError describes a response with status code 500, with default header values.
Server error.
func NewGetBackupOfClusterInternalServerError ¶
func NewGetBackupOfClusterInternalServerError() *GetBackupOfClusterInternalServerError
NewGetBackupOfClusterInternalServerError creates a GetBackupOfClusterInternalServerError with default headers values
func (*GetBackupOfClusterInternalServerError) Code ¶
func (o *GetBackupOfClusterInternalServerError) Code() int
Code gets the status code for the get backup of cluster internal server error response
func (*GetBackupOfClusterInternalServerError) Error ¶
func (o *GetBackupOfClusterInternalServerError) Error() string
func (*GetBackupOfClusterInternalServerError) GetPayload ¶
func (o *GetBackupOfClusterInternalServerError) GetPayload() *GetBackupOfClusterInternalServerErrorBody
func (*GetBackupOfClusterInternalServerError) IsClientError ¶
func (o *GetBackupOfClusterInternalServerError) IsClientError() bool
IsClientError returns true when this get backup of cluster internal server error response has a 4xx status code
func (*GetBackupOfClusterInternalServerError) IsCode ¶
func (o *GetBackupOfClusterInternalServerError) IsCode(code int) bool
IsCode returns true when this get backup of cluster internal server error response a status code equal to that given
func (*GetBackupOfClusterInternalServerError) IsRedirect ¶
func (o *GetBackupOfClusterInternalServerError) IsRedirect() bool
IsRedirect returns true when this get backup of cluster internal server error response has a 3xx status code
func (*GetBackupOfClusterInternalServerError) IsServerError ¶
func (o *GetBackupOfClusterInternalServerError) IsServerError() bool
IsServerError returns true when this get backup of cluster internal server error response has a 5xx status code
func (*GetBackupOfClusterInternalServerError) IsSuccess ¶
func (o *GetBackupOfClusterInternalServerError) IsSuccess() bool
IsSuccess returns true when this get backup of cluster internal server error response has a 2xx status code
func (*GetBackupOfClusterInternalServerError) String ¶
func (o *GetBackupOfClusterInternalServerError) String() string
type GetBackupOfClusterInternalServerErrorBody ¶
type GetBackupOfClusterInternalServerErrorBody 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"` }
GetBackupOfClusterInternalServerErrorBody get backup of cluster internal server error body swagger:model GetBackupOfClusterInternalServerErrorBody
func (*GetBackupOfClusterInternalServerErrorBody) ContextValidate ¶
func (o *GetBackupOfClusterInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get backup of cluster internal server error body based on context it is used
func (*GetBackupOfClusterInternalServerErrorBody) MarshalBinary ¶
func (o *GetBackupOfClusterInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackupOfClusterInternalServerErrorBody) UnmarshalBinary ¶
func (o *GetBackupOfClusterInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackupOfClusterNotFound ¶
type GetBackupOfClusterNotFound struct {
Payload *GetBackupOfClusterNotFoundBody
}
GetBackupOfClusterNotFound describes a response with status code 404, with default header values.
The requested resource does not exist.
func NewGetBackupOfClusterNotFound ¶
func NewGetBackupOfClusterNotFound() *GetBackupOfClusterNotFound
NewGetBackupOfClusterNotFound creates a GetBackupOfClusterNotFound with default headers values
func (*GetBackupOfClusterNotFound) Code ¶
func (o *GetBackupOfClusterNotFound) Code() int
Code gets the status code for the get backup of cluster not found response
func (*GetBackupOfClusterNotFound) Error ¶
func (o *GetBackupOfClusterNotFound) Error() string
func (*GetBackupOfClusterNotFound) GetPayload ¶
func (o *GetBackupOfClusterNotFound) GetPayload() *GetBackupOfClusterNotFoundBody
func (*GetBackupOfClusterNotFound) IsClientError ¶
func (o *GetBackupOfClusterNotFound) IsClientError() bool
IsClientError returns true when this get backup of cluster not found response has a 4xx status code
func (*GetBackupOfClusterNotFound) IsCode ¶
func (o *GetBackupOfClusterNotFound) IsCode(code int) bool
IsCode returns true when this get backup of cluster not found response a status code equal to that given
func (*GetBackupOfClusterNotFound) IsRedirect ¶
func (o *GetBackupOfClusterNotFound) IsRedirect() bool
IsRedirect returns true when this get backup of cluster not found response has a 3xx status code
func (*GetBackupOfClusterNotFound) IsServerError ¶
func (o *GetBackupOfClusterNotFound) IsServerError() bool
IsServerError returns true when this get backup of cluster not found response has a 5xx status code
func (*GetBackupOfClusterNotFound) IsSuccess ¶
func (o *GetBackupOfClusterNotFound) IsSuccess() bool
IsSuccess returns true when this get backup of cluster not found response has a 2xx status code
func (*GetBackupOfClusterNotFound) String ¶
func (o *GetBackupOfClusterNotFound) String() string
type GetBackupOfClusterNotFoundBody ¶
type GetBackupOfClusterNotFoundBody 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"` }
GetBackupOfClusterNotFoundBody get backup of cluster not found body swagger:model GetBackupOfClusterNotFoundBody
func (*GetBackupOfClusterNotFoundBody) ContextValidate ¶
func (o *GetBackupOfClusterNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get backup of cluster not found body based on context it is used
func (*GetBackupOfClusterNotFoundBody) MarshalBinary ¶
func (o *GetBackupOfClusterNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackupOfClusterNotFoundBody) UnmarshalBinary ¶
func (o *GetBackupOfClusterNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackupOfClusterOK ¶
type GetBackupOfClusterOK struct {
Payload *GetBackupOfClusterOKBody
}
GetBackupOfClusterOK describes a response with status code 200, with default header values.
A successful response.
func NewGetBackupOfClusterOK ¶
func NewGetBackupOfClusterOK() *GetBackupOfClusterOK
NewGetBackupOfClusterOK creates a GetBackupOfClusterOK with default headers values
func (*GetBackupOfClusterOK) Code ¶
func (o *GetBackupOfClusterOK) Code() int
Code gets the status code for the get backup of cluster o k response
func (*GetBackupOfClusterOK) Error ¶
func (o *GetBackupOfClusterOK) Error() string
func (*GetBackupOfClusterOK) GetPayload ¶
func (o *GetBackupOfClusterOK) GetPayload() *GetBackupOfClusterOKBody
func (*GetBackupOfClusterOK) IsClientError ¶
func (o *GetBackupOfClusterOK) IsClientError() bool
IsClientError returns true when this get backup of cluster o k response has a 4xx status code
func (*GetBackupOfClusterOK) IsCode ¶
func (o *GetBackupOfClusterOK) IsCode(code int) bool
IsCode returns true when this get backup of cluster o k response a status code equal to that given
func (*GetBackupOfClusterOK) IsRedirect ¶
func (o *GetBackupOfClusterOK) IsRedirect() bool
IsRedirect returns true when this get backup of cluster o k response has a 3xx status code
func (*GetBackupOfClusterOK) IsServerError ¶
func (o *GetBackupOfClusterOK) IsServerError() bool
IsServerError returns true when this get backup of cluster o k response has a 5xx status code
func (*GetBackupOfClusterOK) IsSuccess ¶
func (o *GetBackupOfClusterOK) IsSuccess() bool
IsSuccess returns true when this get backup of cluster o k response has a 2xx status code
func (*GetBackupOfClusterOK) String ¶
func (o *GetBackupOfClusterOK) String() string
type GetBackupOfClusterOKBody ¶
type GetBackupOfClusterOKBody struct { // 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 description of the backup. It is specified by the user when taking a manual type backup. It helps you add additional information to the backup. // Example: backup for cluster upgrade in 2022/06/07 Description string `json:"description,omitempty"` // The ID of the backup. // Example: 1 ID string `json:"id,omitempty"` // The name of the backup. // Example: backup-1 Name string `json:"name,omitempty"` // The bytes of the backup. // Example: 102400 Size string `json:"size,omitempty"` // The status of backup. // Example: SUCCESS // Enum: [PENDING RUNNING FAILED SUCCESS] Status string `json:"status,omitempty"` // The type of backup. TiDB Cloud only supports manual and auto backup. For more information, see [TiDB Cloud Documentation](https://docs.pingcap.com/tidbcloud/backup-and-restore#backup). // Example: MANUAL // Enum: [MANUAL AUTO] Type string `json:"type,omitempty"` }
GetBackupOfClusterOKBody GetBackupOfClusterResp // // This response for getting backup of a cluster. swagger:model GetBackupOfClusterOKBody
func (*GetBackupOfClusterOKBody) ContextValidate ¶
func (o *GetBackupOfClusterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get backup of cluster o k body based on context it is used
func (*GetBackupOfClusterOKBody) MarshalBinary ¶
func (o *GetBackupOfClusterOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackupOfClusterOKBody) UnmarshalBinary ¶
func (o *GetBackupOfClusterOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackupOfClusterParams ¶
type GetBackupOfClusterParams struct { /* BackupID. The ID of the backup. Format: uint64 */ BackupID string /* ClusterID. The ID of your cluster. You can get the cluster ID from the response of [Get all clusters in a project](#tag/Cluster/operation/ListClustersOfProject). Format: uint64 */ ClusterID string /* 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 }
GetBackupOfClusterParams contains all the parameters to send to the API endpoint
for the get backup of cluster operation. Typically these are written to a http.Request.
func NewGetBackupOfClusterParams ¶
func NewGetBackupOfClusterParams() *GetBackupOfClusterParams
NewGetBackupOfClusterParams creates a new GetBackupOfClusterParams 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 NewGetBackupOfClusterParamsWithContext ¶
func NewGetBackupOfClusterParamsWithContext(ctx context.Context) *GetBackupOfClusterParams
NewGetBackupOfClusterParamsWithContext creates a new GetBackupOfClusterParams object with the ability to set a context for a request.
func NewGetBackupOfClusterParamsWithHTTPClient ¶
func NewGetBackupOfClusterParamsWithHTTPClient(client *http.Client) *GetBackupOfClusterParams
NewGetBackupOfClusterParamsWithHTTPClient creates a new GetBackupOfClusterParams object with the ability to set a custom HTTPClient for a request.
func NewGetBackupOfClusterParamsWithTimeout ¶
func NewGetBackupOfClusterParamsWithTimeout(timeout time.Duration) *GetBackupOfClusterParams
NewGetBackupOfClusterParamsWithTimeout creates a new GetBackupOfClusterParams object with the ability to set a timeout on a request.
func (*GetBackupOfClusterParams) SetBackupID ¶
func (o *GetBackupOfClusterParams) SetBackupID(backupID string)
SetBackupID adds the backupId to the get backup of cluster params
func (*GetBackupOfClusterParams) SetClusterID ¶
func (o *GetBackupOfClusterParams) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the get backup of cluster params
func (*GetBackupOfClusterParams) SetContext ¶
func (o *GetBackupOfClusterParams) SetContext(ctx context.Context)
SetContext adds the context to the get backup of cluster params
func (*GetBackupOfClusterParams) SetDefaults ¶
func (o *GetBackupOfClusterParams) SetDefaults()
SetDefaults hydrates default values in the get backup of cluster params (not the query body).
All values with no default are reset to their zero value.
func (*GetBackupOfClusterParams) SetHTTPClient ¶
func (o *GetBackupOfClusterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get backup of cluster params
func (*GetBackupOfClusterParams) SetProjectID ¶
func (o *GetBackupOfClusterParams) SetProjectID(projectID string)
SetProjectID adds the projectId to the get backup of cluster params
func (*GetBackupOfClusterParams) SetTimeout ¶
func (o *GetBackupOfClusterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get backup of cluster params
func (*GetBackupOfClusterParams) WithBackupID ¶
func (o *GetBackupOfClusterParams) WithBackupID(backupID string) *GetBackupOfClusterParams
WithBackupID adds the backupID to the get backup of cluster params
func (*GetBackupOfClusterParams) WithClusterID ¶
func (o *GetBackupOfClusterParams) WithClusterID(clusterID string) *GetBackupOfClusterParams
WithClusterID adds the clusterID to the get backup of cluster params
func (*GetBackupOfClusterParams) WithContext ¶
func (o *GetBackupOfClusterParams) WithContext(ctx context.Context) *GetBackupOfClusterParams
WithContext adds the context to the get backup of cluster params
func (*GetBackupOfClusterParams) WithDefaults ¶
func (o *GetBackupOfClusterParams) WithDefaults() *GetBackupOfClusterParams
WithDefaults hydrates default values in the get backup of cluster params (not the query body).
All values with no default are reset to their zero value.
func (*GetBackupOfClusterParams) WithHTTPClient ¶
func (o *GetBackupOfClusterParams) WithHTTPClient(client *http.Client) *GetBackupOfClusterParams
WithHTTPClient adds the HTTPClient to the get backup of cluster params
func (*GetBackupOfClusterParams) WithProjectID ¶
func (o *GetBackupOfClusterParams) WithProjectID(projectID string) *GetBackupOfClusterParams
WithProjectID adds the projectID to the get backup of cluster params
func (*GetBackupOfClusterParams) WithTimeout ¶
func (o *GetBackupOfClusterParams) WithTimeout(timeout time.Duration) *GetBackupOfClusterParams
WithTimeout adds the timeout to the get backup of cluster params
func (*GetBackupOfClusterParams) WriteToRequest ¶
func (o *GetBackupOfClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetBackupOfClusterReader ¶
type GetBackupOfClusterReader struct {
// contains filtered or unexported fields
}
GetBackupOfClusterReader is a Reader for the GetBackupOfCluster structure.
func (*GetBackupOfClusterReader) ReadResponse ¶
func (o *GetBackupOfClusterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetBackupOfClusterTooManyRequests ¶
type GetBackupOfClusterTooManyRequests struct {
Payload *GetBackupOfClusterTooManyRequestsBody
}
GetBackupOfClusterTooManyRequests describes a response with status code 429, with default header values.
You have exceed the rate limit.
func NewGetBackupOfClusterTooManyRequests ¶
func NewGetBackupOfClusterTooManyRequests() *GetBackupOfClusterTooManyRequests
NewGetBackupOfClusterTooManyRequests creates a GetBackupOfClusterTooManyRequests with default headers values
func (*GetBackupOfClusterTooManyRequests) Code ¶
func (o *GetBackupOfClusterTooManyRequests) Code() int
Code gets the status code for the get backup of cluster too many requests response
func (*GetBackupOfClusterTooManyRequests) Error ¶
func (o *GetBackupOfClusterTooManyRequests) Error() string
func (*GetBackupOfClusterTooManyRequests) GetPayload ¶
func (o *GetBackupOfClusterTooManyRequests) GetPayload() *GetBackupOfClusterTooManyRequestsBody
func (*GetBackupOfClusterTooManyRequests) IsClientError ¶
func (o *GetBackupOfClusterTooManyRequests) IsClientError() bool
IsClientError returns true when this get backup of cluster too many requests response has a 4xx status code
func (*GetBackupOfClusterTooManyRequests) IsCode ¶
func (o *GetBackupOfClusterTooManyRequests) IsCode(code int) bool
IsCode returns true when this get backup of cluster too many requests response a status code equal to that given
func (*GetBackupOfClusterTooManyRequests) IsRedirect ¶
func (o *GetBackupOfClusterTooManyRequests) IsRedirect() bool
IsRedirect returns true when this get backup of cluster too many requests response has a 3xx status code
func (*GetBackupOfClusterTooManyRequests) IsServerError ¶
func (o *GetBackupOfClusterTooManyRequests) IsServerError() bool
IsServerError returns true when this get backup of cluster too many requests response has a 5xx status code
func (*GetBackupOfClusterTooManyRequests) IsSuccess ¶
func (o *GetBackupOfClusterTooManyRequests) IsSuccess() bool
IsSuccess returns true when this get backup of cluster too many requests response has a 2xx status code
func (*GetBackupOfClusterTooManyRequests) String ¶
func (o *GetBackupOfClusterTooManyRequests) String() string
type GetBackupOfClusterTooManyRequestsBody ¶
type GetBackupOfClusterTooManyRequestsBody 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"` }
GetBackupOfClusterTooManyRequestsBody get backup of cluster too many requests body swagger:model GetBackupOfClusterTooManyRequestsBody
func (*GetBackupOfClusterTooManyRequestsBody) ContextValidate ¶
func (o *GetBackupOfClusterTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get backup of cluster too many requests body based on context it is used
func (*GetBackupOfClusterTooManyRequestsBody) MarshalBinary ¶
func (o *GetBackupOfClusterTooManyRequestsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBackupOfClusterTooManyRequestsBody) UnmarshalBinary ¶
func (o *GetBackupOfClusterTooManyRequestsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetBackupOfClusterUnauthorized ¶
type GetBackupOfClusterUnauthorized struct {
}GetBackupOfClusterUnauthorized describes a response with status code 401, with default header values.
The API key cannot be authenticated.
func NewGetBackupOfClusterUnauthorized ¶
func NewGetBackupOfClusterUnauthorized() *GetBackupOfClusterUnauthorized
NewGetBackupOfClusterUnauthorized creates a GetBackupOfClusterUnauthorized with default headers values
func (*GetBackupOfClusterUnauthorized) Code ¶
func (o *GetBackupOfClusterUnauthorized) Code() int
Code gets the status code for the get backup of cluster unauthorized response
func (*GetBackupOfClusterUnauthorized) Error ¶
func (o *GetBackupOfClusterUnauthorized) Error() string
func (*GetBackupOfClusterUnauthorized) GetPayload ¶
func (o *GetBackupOfClusterUnauthorized) GetPayload() interface{}
func (*GetBackupOfClusterUnauthorized) IsClientError ¶
func (o *GetBackupOfClusterUnauthorized) IsClientError() bool
IsClientError returns true when this get backup of cluster unauthorized response has a 4xx status code
func (*GetBackupOfClusterUnauthorized) IsCode ¶
func (o *GetBackupOfClusterUnauthorized) IsCode(code int) bool
IsCode returns true when this get backup of cluster unauthorized response a status code equal to that given
func (*GetBackupOfClusterUnauthorized) IsRedirect ¶
func (o *GetBackupOfClusterUnauthorized) IsRedirect() bool
IsRedirect returns true when this get backup of cluster unauthorized response has a 3xx status code
func (*GetBackupOfClusterUnauthorized) IsServerError ¶
func (o *GetBackupOfClusterUnauthorized) IsServerError() bool
IsServerError returns true when this get backup of cluster unauthorized response has a 5xx status code
func (*GetBackupOfClusterUnauthorized) IsSuccess ¶
func (o *GetBackupOfClusterUnauthorized) IsSuccess() bool
IsSuccess returns true when this get backup of cluster unauthorized response has a 2xx status code
func (*GetBackupOfClusterUnauthorized) String ¶
func (o *GetBackupOfClusterUnauthorized) String() string
type ListBackUpOfClusterBadRequest ¶
type ListBackUpOfClusterBadRequest struct {
Payload *ListBackUpOfClusterBadRequestBody
}
ListBackUpOfClusterBadRequest describes a response with status code 400, with default header values.
A request field is invalid.
func NewListBackUpOfClusterBadRequest ¶
func NewListBackUpOfClusterBadRequest() *ListBackUpOfClusterBadRequest
NewListBackUpOfClusterBadRequest creates a ListBackUpOfClusterBadRequest with default headers values
func (*ListBackUpOfClusterBadRequest) Code ¶
func (o *ListBackUpOfClusterBadRequest) Code() int
Code gets the status code for the list back up of cluster bad request response
func (*ListBackUpOfClusterBadRequest) Error ¶
func (o *ListBackUpOfClusterBadRequest) Error() string
func (*ListBackUpOfClusterBadRequest) GetPayload ¶
func (o *ListBackUpOfClusterBadRequest) GetPayload() *ListBackUpOfClusterBadRequestBody
func (*ListBackUpOfClusterBadRequest) IsClientError ¶
func (o *ListBackUpOfClusterBadRequest) IsClientError() bool
IsClientError returns true when this list back up of cluster bad request response has a 4xx status code
func (*ListBackUpOfClusterBadRequest) IsCode ¶
func (o *ListBackUpOfClusterBadRequest) IsCode(code int) bool
IsCode returns true when this list back up of cluster bad request response a status code equal to that given
func (*ListBackUpOfClusterBadRequest) IsRedirect ¶
func (o *ListBackUpOfClusterBadRequest) IsRedirect() bool
IsRedirect returns true when this list back up of cluster bad request response has a 3xx status code
func (*ListBackUpOfClusterBadRequest) IsServerError ¶
func (o *ListBackUpOfClusterBadRequest) IsServerError() bool
IsServerError returns true when this list back up of cluster bad request response has a 5xx status code
func (*ListBackUpOfClusterBadRequest) IsSuccess ¶
func (o *ListBackUpOfClusterBadRequest) IsSuccess() bool
IsSuccess returns true when this list back up of cluster bad request response has a 2xx status code
func (*ListBackUpOfClusterBadRequest) String ¶
func (o *ListBackUpOfClusterBadRequest) String() string
type ListBackUpOfClusterBadRequestBody ¶
type ListBackUpOfClusterBadRequestBody 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"` }
ListBackUpOfClusterBadRequestBody list back up of cluster bad request body swagger:model ListBackUpOfClusterBadRequestBody
func (*ListBackUpOfClusterBadRequestBody) ContextValidate ¶
func (o *ListBackUpOfClusterBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this list back up of cluster bad request body based on context it is used
func (*ListBackUpOfClusterBadRequestBody) MarshalBinary ¶
func (o *ListBackUpOfClusterBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListBackUpOfClusterBadRequestBody) UnmarshalBinary ¶
func (o *ListBackUpOfClusterBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListBackUpOfClusterDefault ¶
type ListBackUpOfClusterDefault struct { Payload *ListBackUpOfClusterDefaultBody // contains filtered or unexported fields }
ListBackUpOfClusterDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewListBackUpOfClusterDefault ¶
func NewListBackUpOfClusterDefault(code int) *ListBackUpOfClusterDefault
NewListBackUpOfClusterDefault creates a ListBackUpOfClusterDefault with default headers values
func (*ListBackUpOfClusterDefault) Code ¶
func (o *ListBackUpOfClusterDefault) Code() int
Code gets the status code for the list back up of cluster default response
func (*ListBackUpOfClusterDefault) Error ¶
func (o *ListBackUpOfClusterDefault) Error() string
func (*ListBackUpOfClusterDefault) GetPayload ¶
func (o *ListBackUpOfClusterDefault) GetPayload() *ListBackUpOfClusterDefaultBody
func (*ListBackUpOfClusterDefault) IsClientError ¶
func (o *ListBackUpOfClusterDefault) IsClientError() bool
IsClientError returns true when this list back up of cluster default response has a 4xx status code
func (*ListBackUpOfClusterDefault) IsCode ¶
func (o *ListBackUpOfClusterDefault) IsCode(code int) bool
IsCode returns true when this list back up of cluster default response a status code equal to that given
func (*ListBackUpOfClusterDefault) IsRedirect ¶
func (o *ListBackUpOfClusterDefault) IsRedirect() bool
IsRedirect returns true when this list back up of cluster default response has a 3xx status code
func (*ListBackUpOfClusterDefault) IsServerError ¶
func (o *ListBackUpOfClusterDefault) IsServerError() bool
IsServerError returns true when this list back up of cluster default response has a 5xx status code
func (*ListBackUpOfClusterDefault) IsSuccess ¶
func (o *ListBackUpOfClusterDefault) IsSuccess() bool
IsSuccess returns true when this list back up of cluster default response has a 2xx status code
func (*ListBackUpOfClusterDefault) String ¶
func (o *ListBackUpOfClusterDefault) String() string
type ListBackUpOfClusterDefaultBody ¶
type ListBackUpOfClusterDefaultBody struct { // code Code int32 `json:"code,omitempty"` // details Details []*ListBackUpOfClusterDefaultBodyDetailsItems0 `json:"details"` // message Message string `json:"message,omitempty"` }
ListBackUpOfClusterDefaultBody list back up of cluster default body swagger:model ListBackUpOfClusterDefaultBody
func (*ListBackUpOfClusterDefaultBody) ContextValidate ¶
func (o *ListBackUpOfClusterDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this list back up of cluster default body based on the context it is used
func (*ListBackUpOfClusterDefaultBody) MarshalBinary ¶
func (o *ListBackUpOfClusterDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListBackUpOfClusterDefaultBody) UnmarshalBinary ¶
func (o *ListBackUpOfClusterDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListBackUpOfClusterDefaultBodyDetailsItems0 ¶
type ListBackUpOfClusterDefaultBodyDetailsItems0 struct { // at type AtType string `json:"@type,omitempty"` }
ListBackUpOfClusterDefaultBodyDetailsItems0 list back up of cluster default body details items0 swagger:model ListBackUpOfClusterDefaultBodyDetailsItems0
func (*ListBackUpOfClusterDefaultBodyDetailsItems0) ContextValidate ¶
func (o *ListBackUpOfClusterDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this list back up of cluster default body details items0 based on context it is used
func (*ListBackUpOfClusterDefaultBodyDetailsItems0) MarshalBinary ¶
func (o *ListBackUpOfClusterDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListBackUpOfClusterDefaultBodyDetailsItems0) UnmarshalBinary ¶
func (o *ListBackUpOfClusterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListBackUpOfClusterForbidden ¶
type ListBackUpOfClusterForbidden struct {
Payload *ListBackUpOfClusterForbiddenBody
}
ListBackUpOfClusterForbidden describes a response with status code 403, with default header values.
The API key does not have permission to access the resource.
func NewListBackUpOfClusterForbidden ¶
func NewListBackUpOfClusterForbidden() *ListBackUpOfClusterForbidden
NewListBackUpOfClusterForbidden creates a ListBackUpOfClusterForbidden with default headers values
func (*ListBackUpOfClusterForbidden) Code ¶
func (o *ListBackUpOfClusterForbidden) Code() int
Code gets the status code for the list back up of cluster forbidden response
func (*ListBackUpOfClusterForbidden) Error ¶
func (o *ListBackUpOfClusterForbidden) Error() string
func (*ListBackUpOfClusterForbidden) GetPayload ¶
func (o *ListBackUpOfClusterForbidden) GetPayload() *ListBackUpOfClusterForbiddenBody
func (*ListBackUpOfClusterForbidden) IsClientError ¶
func (o *ListBackUpOfClusterForbidden) IsClientError() bool
IsClientError returns true when this list back up of cluster forbidden response has a 4xx status code
func (*ListBackUpOfClusterForbidden) IsCode ¶
func (o *ListBackUpOfClusterForbidden) IsCode(code int) bool
IsCode returns true when this list back up of cluster forbidden response a status code equal to that given
func (*ListBackUpOfClusterForbidden) IsRedirect ¶
func (o *ListBackUpOfClusterForbidden) IsRedirect() bool
IsRedirect returns true when this list back up of cluster forbidden response has a 3xx status code
func (*ListBackUpOfClusterForbidden) IsServerError ¶
func (o *ListBackUpOfClusterForbidden) IsServerError() bool
IsServerError returns true when this list back up of cluster forbidden response has a 5xx status code
func (*ListBackUpOfClusterForbidden) IsSuccess ¶
func (o *ListBackUpOfClusterForbidden) IsSuccess() bool
IsSuccess returns true when this list back up of cluster forbidden response has a 2xx status code
func (*ListBackUpOfClusterForbidden) String ¶
func (o *ListBackUpOfClusterForbidden) String() string
type ListBackUpOfClusterForbiddenBody ¶
type ListBackUpOfClusterForbiddenBody 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"` }
ListBackUpOfClusterForbiddenBody list back up of cluster forbidden body swagger:model ListBackUpOfClusterForbiddenBody
func (*ListBackUpOfClusterForbiddenBody) ContextValidate ¶
func (o *ListBackUpOfClusterForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this list back up of cluster forbidden body based on context it is used
func (*ListBackUpOfClusterForbiddenBody) MarshalBinary ¶
func (o *ListBackUpOfClusterForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListBackUpOfClusterForbiddenBody) UnmarshalBinary ¶
func (o *ListBackUpOfClusterForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListBackUpOfClusterInternalServerError ¶
type ListBackUpOfClusterInternalServerError struct {
Payload *ListBackUpOfClusterInternalServerErrorBody
}
ListBackUpOfClusterInternalServerError describes a response with status code 500, with default header values.
Server error.
func NewListBackUpOfClusterInternalServerError ¶
func NewListBackUpOfClusterInternalServerError() *ListBackUpOfClusterInternalServerError
NewListBackUpOfClusterInternalServerError creates a ListBackUpOfClusterInternalServerError with default headers values
func (*ListBackUpOfClusterInternalServerError) Code ¶
func (o *ListBackUpOfClusterInternalServerError) Code() int
Code gets the status code for the list back up of cluster internal server error response
func (*ListBackUpOfClusterInternalServerError) Error ¶
func (o *ListBackUpOfClusterInternalServerError) Error() string
func (*ListBackUpOfClusterInternalServerError) GetPayload ¶
func (o *ListBackUpOfClusterInternalServerError) GetPayload() *ListBackUpOfClusterInternalServerErrorBody
func (*ListBackUpOfClusterInternalServerError) IsClientError ¶
func (o *ListBackUpOfClusterInternalServerError) IsClientError() bool
IsClientError returns true when this list back up of cluster internal server error response has a 4xx status code
func (*ListBackUpOfClusterInternalServerError) IsCode ¶
func (o *ListBackUpOfClusterInternalServerError) IsCode(code int) bool
IsCode returns true when this list back up of cluster internal server error response a status code equal to that given
func (*ListBackUpOfClusterInternalServerError) IsRedirect ¶
func (o *ListBackUpOfClusterInternalServerError) IsRedirect() bool
IsRedirect returns true when this list back up of cluster internal server error response has a 3xx status code
func (*ListBackUpOfClusterInternalServerError) IsServerError ¶
func (o *ListBackUpOfClusterInternalServerError) IsServerError() bool
IsServerError returns true when this list back up of cluster internal server error response has a 5xx status code
func (*ListBackUpOfClusterInternalServerError) IsSuccess ¶
func (o *ListBackUpOfClusterInternalServerError) IsSuccess() bool
IsSuccess returns true when this list back up of cluster internal server error response has a 2xx status code
func (*ListBackUpOfClusterInternalServerError) String ¶
func (o *ListBackUpOfClusterInternalServerError) String() string
type ListBackUpOfClusterInternalServerErrorBody ¶
type ListBackUpOfClusterInternalServerErrorBody 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"` }
ListBackUpOfClusterInternalServerErrorBody list back up of cluster internal server error body swagger:model ListBackUpOfClusterInternalServerErrorBody
func (*ListBackUpOfClusterInternalServerErrorBody) ContextValidate ¶
func (o *ListBackUpOfClusterInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this list back up of cluster internal server error body based on context it is used
func (*ListBackUpOfClusterInternalServerErrorBody) MarshalBinary ¶
func (o *ListBackUpOfClusterInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListBackUpOfClusterInternalServerErrorBody) UnmarshalBinary ¶
func (o *ListBackUpOfClusterInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListBackUpOfClusterNotFound ¶
type ListBackUpOfClusterNotFound struct {
Payload *ListBackUpOfClusterNotFoundBody
}
ListBackUpOfClusterNotFound describes a response with status code 404, with default header values.
The requested resource does not exist.
func NewListBackUpOfClusterNotFound ¶
func NewListBackUpOfClusterNotFound() *ListBackUpOfClusterNotFound
NewListBackUpOfClusterNotFound creates a ListBackUpOfClusterNotFound with default headers values
func (*ListBackUpOfClusterNotFound) Code ¶
func (o *ListBackUpOfClusterNotFound) Code() int
Code gets the status code for the list back up of cluster not found response
func (*ListBackUpOfClusterNotFound) Error ¶
func (o *ListBackUpOfClusterNotFound) Error() string
func (*ListBackUpOfClusterNotFound) GetPayload ¶
func (o *ListBackUpOfClusterNotFound) GetPayload() *ListBackUpOfClusterNotFoundBody
func (*ListBackUpOfClusterNotFound) IsClientError ¶
func (o *ListBackUpOfClusterNotFound) IsClientError() bool
IsClientError returns true when this list back up of cluster not found response has a 4xx status code
func (*ListBackUpOfClusterNotFound) IsCode ¶
func (o *ListBackUpOfClusterNotFound) IsCode(code int) bool
IsCode returns true when this list back up of cluster not found response a status code equal to that given
func (*ListBackUpOfClusterNotFound) IsRedirect ¶
func (o *ListBackUpOfClusterNotFound) IsRedirect() bool
IsRedirect returns true when this list back up of cluster not found response has a 3xx status code
func (*ListBackUpOfClusterNotFound) IsServerError ¶
func (o *ListBackUpOfClusterNotFound) IsServerError() bool
IsServerError returns true when this list back up of cluster not found response has a 5xx status code
func (*ListBackUpOfClusterNotFound) IsSuccess ¶
func (o *ListBackUpOfClusterNotFound) IsSuccess() bool
IsSuccess returns true when this list back up of cluster not found response has a 2xx status code
func (*ListBackUpOfClusterNotFound) String ¶
func (o *ListBackUpOfClusterNotFound) String() string
type ListBackUpOfClusterNotFoundBody ¶
type ListBackUpOfClusterNotFoundBody 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"` }
ListBackUpOfClusterNotFoundBody list back up of cluster not found body swagger:model ListBackUpOfClusterNotFoundBody
func (*ListBackUpOfClusterNotFoundBody) ContextValidate ¶
func (o *ListBackUpOfClusterNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this list back up of cluster not found body based on context it is used
func (*ListBackUpOfClusterNotFoundBody) MarshalBinary ¶
func (o *ListBackUpOfClusterNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListBackUpOfClusterNotFoundBody) UnmarshalBinary ¶
func (o *ListBackUpOfClusterNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListBackUpOfClusterOK ¶
type ListBackUpOfClusterOK struct {
Payload *ListBackUpOfClusterOKBody
}
ListBackUpOfClusterOK describes a response with status code 200, with default header values.
A successful response.
func NewListBackUpOfClusterOK ¶
func NewListBackUpOfClusterOK() *ListBackUpOfClusterOK
NewListBackUpOfClusterOK creates a ListBackUpOfClusterOK with default headers values
func (*ListBackUpOfClusterOK) Code ¶
func (o *ListBackUpOfClusterOK) Code() int
Code gets the status code for the list back up of cluster o k response
func (*ListBackUpOfClusterOK) Error ¶
func (o *ListBackUpOfClusterOK) Error() string
func (*ListBackUpOfClusterOK) GetPayload ¶
func (o *ListBackUpOfClusterOK) GetPayload() *ListBackUpOfClusterOKBody
func (*ListBackUpOfClusterOK) IsClientError ¶
func (o *ListBackUpOfClusterOK) IsClientError() bool
IsClientError returns true when this list back up of cluster o k response has a 4xx status code
func (*ListBackUpOfClusterOK) IsCode ¶
func (o *ListBackUpOfClusterOK) IsCode(code int) bool
IsCode returns true when this list back up of cluster o k response a status code equal to that given
func (*ListBackUpOfClusterOK) IsRedirect ¶
func (o *ListBackUpOfClusterOK) IsRedirect() bool
IsRedirect returns true when this list back up of cluster o k response has a 3xx status code
func (*ListBackUpOfClusterOK) IsServerError ¶
func (o *ListBackUpOfClusterOK) IsServerError() bool
IsServerError returns true when this list back up of cluster o k response has a 5xx status code
func (*ListBackUpOfClusterOK) IsSuccess ¶
func (o *ListBackUpOfClusterOK) IsSuccess() bool
IsSuccess returns true when this list back up of cluster o k response has a 2xx status code
func (*ListBackUpOfClusterOK) String ¶
func (o *ListBackUpOfClusterOK) String() string
type ListBackUpOfClusterOKBody ¶
type ListBackUpOfClusterOKBody struct { // The items of all backups. Items []*ListBackUpOfClusterOKBodyItemsItems0 `json:"items"` // The total number of backups in the project. // Example: 10 Total int64 `json:"total,omitempty"` }
ListBackUpOfClusterOKBody ListBackupOfClusterResp // // The response for listing backups of a cluster. swagger:model ListBackUpOfClusterOKBody
func (*ListBackUpOfClusterOKBody) ContextValidate ¶
func (o *ListBackUpOfClusterOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this list back up of cluster o k body based on the context it is used
func (*ListBackUpOfClusterOKBody) MarshalBinary ¶
func (o *ListBackUpOfClusterOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListBackUpOfClusterOKBody) UnmarshalBinary ¶
func (o *ListBackUpOfClusterOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListBackUpOfClusterOKBodyItemsItems0 ¶
type ListBackUpOfClusterOKBodyItemsItems0 struct { // 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 description of the backup. It is specified by the user when taking a manual type backup. It helps you add additional information to the backup. // Example: backup for cluster upgrade in 2022/06/07 Description string `json:"description,omitempty"` // The ID of the backup. It is generated by TiDB Cloud. // Example: 1 ID string `json:"id,omitempty"` // The name of the backup. // Example: backup-1 Name string `json:"name,omitempty"` // The bytes of the backup. // Example: 102400 Size string `json:"size,omitempty"` // The status of backup. // Example: SUCCESS // Enum: [PENDING RUNNING FAILED SUCCESS] Status string `json:"status,omitempty"` // The type of backup. TiDB Cloud only supports manual and auto backup. For more information, see [TiDB Cloud Documentation](https://docs.pingcap.com/tidbcloud/backup-and-restore#backup). // Example: MANUAL // Enum: [MANUAL AUTO] Type string `json:"type,omitempty"` }
ListBackUpOfClusterOKBodyItemsItems0 ListBackupItem // // The item of backup list. swagger:model ListBackUpOfClusterOKBodyItemsItems0
func (*ListBackUpOfClusterOKBodyItemsItems0) ContextValidate ¶
func (o *ListBackUpOfClusterOKBodyItemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this list back up of cluster o k body items items0 based on context it is used
func (*ListBackUpOfClusterOKBodyItemsItems0) MarshalBinary ¶
func (o *ListBackUpOfClusterOKBodyItemsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListBackUpOfClusterOKBodyItemsItems0) UnmarshalBinary ¶
func (o *ListBackUpOfClusterOKBodyItemsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListBackUpOfClusterParams ¶
type ListBackUpOfClusterParams struct { /* ClusterID. The ID of your cluster. You can get the cluster ID from the response of [Get all clusters in a project](#tag/Cluster/operation/ListClustersOfProject). Format: uint64 */ ClusterID string /* 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 }
ListBackUpOfClusterParams contains all the parameters to send to the API endpoint
for the list back up of cluster operation. Typically these are written to a http.Request.
func NewListBackUpOfClusterParams ¶
func NewListBackUpOfClusterParams() *ListBackUpOfClusterParams
NewListBackUpOfClusterParams creates a new ListBackUpOfClusterParams 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 NewListBackUpOfClusterParamsWithContext ¶
func NewListBackUpOfClusterParamsWithContext(ctx context.Context) *ListBackUpOfClusterParams
NewListBackUpOfClusterParamsWithContext creates a new ListBackUpOfClusterParams object with the ability to set a context for a request.
func NewListBackUpOfClusterParamsWithHTTPClient ¶
func NewListBackUpOfClusterParamsWithHTTPClient(client *http.Client) *ListBackUpOfClusterParams
NewListBackUpOfClusterParamsWithHTTPClient creates a new ListBackUpOfClusterParams object with the ability to set a custom HTTPClient for a request.
func NewListBackUpOfClusterParamsWithTimeout ¶
func NewListBackUpOfClusterParamsWithTimeout(timeout time.Duration) *ListBackUpOfClusterParams
NewListBackUpOfClusterParamsWithTimeout creates a new ListBackUpOfClusterParams object with the ability to set a timeout on a request.
func (*ListBackUpOfClusterParams) SetClusterID ¶
func (o *ListBackUpOfClusterParams) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the list back up of cluster params
func (*ListBackUpOfClusterParams) SetContext ¶
func (o *ListBackUpOfClusterParams) SetContext(ctx context.Context)
SetContext adds the context to the list back up of cluster params
func (*ListBackUpOfClusterParams) SetDefaults ¶
func (o *ListBackUpOfClusterParams) SetDefaults()
SetDefaults hydrates default values in the list back up of cluster params (not the query body).
All values with no default are reset to their zero value.
func (*ListBackUpOfClusterParams) SetHTTPClient ¶
func (o *ListBackUpOfClusterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list back up of cluster params
func (*ListBackUpOfClusterParams) SetPage ¶
func (o *ListBackUpOfClusterParams) SetPage(page *int32)
SetPage adds the page to the list back up of cluster params
func (*ListBackUpOfClusterParams) SetPageSize ¶
func (o *ListBackUpOfClusterParams) SetPageSize(pageSize *int32)
SetPageSize adds the pageSize to the list back up of cluster params
func (*ListBackUpOfClusterParams) SetProjectID ¶
func (o *ListBackUpOfClusterParams) SetProjectID(projectID string)
SetProjectID adds the projectId to the list back up of cluster params
func (*ListBackUpOfClusterParams) SetTimeout ¶
func (o *ListBackUpOfClusterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list back up of cluster params
func (*ListBackUpOfClusterParams) WithClusterID ¶
func (o *ListBackUpOfClusterParams) WithClusterID(clusterID string) *ListBackUpOfClusterParams
WithClusterID adds the clusterID to the list back up of cluster params
func (*ListBackUpOfClusterParams) WithContext ¶
func (o *ListBackUpOfClusterParams) WithContext(ctx context.Context) *ListBackUpOfClusterParams
WithContext adds the context to the list back up of cluster params
func (*ListBackUpOfClusterParams) WithDefaults ¶
func (o *ListBackUpOfClusterParams) WithDefaults() *ListBackUpOfClusterParams
WithDefaults hydrates default values in the list back up of cluster params (not the query body).
All values with no default are reset to their zero value.
func (*ListBackUpOfClusterParams) WithHTTPClient ¶
func (o *ListBackUpOfClusterParams) WithHTTPClient(client *http.Client) *ListBackUpOfClusterParams
WithHTTPClient adds the HTTPClient to the list back up of cluster params
func (*ListBackUpOfClusterParams) WithPage ¶
func (o *ListBackUpOfClusterParams) WithPage(page *int32) *ListBackUpOfClusterParams
WithPage adds the page to the list back up of cluster params
func (*ListBackUpOfClusterParams) WithPageSize ¶
func (o *ListBackUpOfClusterParams) WithPageSize(pageSize *int32) *ListBackUpOfClusterParams
WithPageSize adds the pageSize to the list back up of cluster params
func (*ListBackUpOfClusterParams) WithProjectID ¶
func (o *ListBackUpOfClusterParams) WithProjectID(projectID string) *ListBackUpOfClusterParams
WithProjectID adds the projectID to the list back up of cluster params
func (*ListBackUpOfClusterParams) WithTimeout ¶
func (o *ListBackUpOfClusterParams) WithTimeout(timeout time.Duration) *ListBackUpOfClusterParams
WithTimeout adds the timeout to the list back up of cluster params
func (*ListBackUpOfClusterParams) WriteToRequest ¶
func (o *ListBackUpOfClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListBackUpOfClusterReader ¶
type ListBackUpOfClusterReader struct {
// contains filtered or unexported fields
}
ListBackUpOfClusterReader is a Reader for the ListBackUpOfCluster structure.
func (*ListBackUpOfClusterReader) ReadResponse ¶
func (o *ListBackUpOfClusterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListBackUpOfClusterTooManyRequests ¶
type ListBackUpOfClusterTooManyRequests struct {
Payload *ListBackUpOfClusterTooManyRequestsBody
}
ListBackUpOfClusterTooManyRequests describes a response with status code 429, with default header values.
You have exceed the rate limit.
func NewListBackUpOfClusterTooManyRequests ¶
func NewListBackUpOfClusterTooManyRequests() *ListBackUpOfClusterTooManyRequests
NewListBackUpOfClusterTooManyRequests creates a ListBackUpOfClusterTooManyRequests with default headers values
func (*ListBackUpOfClusterTooManyRequests) Code ¶
func (o *ListBackUpOfClusterTooManyRequests) Code() int
Code gets the status code for the list back up of cluster too many requests response
func (*ListBackUpOfClusterTooManyRequests) Error ¶
func (o *ListBackUpOfClusterTooManyRequests) Error() string
func (*ListBackUpOfClusterTooManyRequests) GetPayload ¶
func (o *ListBackUpOfClusterTooManyRequests) GetPayload() *ListBackUpOfClusterTooManyRequestsBody
func (*ListBackUpOfClusterTooManyRequests) IsClientError ¶
func (o *ListBackUpOfClusterTooManyRequests) IsClientError() bool
IsClientError returns true when this list back up of cluster too many requests response has a 4xx status code
func (*ListBackUpOfClusterTooManyRequests) IsCode ¶
func (o *ListBackUpOfClusterTooManyRequests) IsCode(code int) bool
IsCode returns true when this list back up of cluster too many requests response a status code equal to that given
func (*ListBackUpOfClusterTooManyRequests) IsRedirect ¶
func (o *ListBackUpOfClusterTooManyRequests) IsRedirect() bool
IsRedirect returns true when this list back up of cluster too many requests response has a 3xx status code
func (*ListBackUpOfClusterTooManyRequests) IsServerError ¶
func (o *ListBackUpOfClusterTooManyRequests) IsServerError() bool
IsServerError returns true when this list back up of cluster too many requests response has a 5xx status code
func (*ListBackUpOfClusterTooManyRequests) IsSuccess ¶
func (o *ListBackUpOfClusterTooManyRequests) IsSuccess() bool
IsSuccess returns true when this list back up of cluster too many requests response has a 2xx status code
func (*ListBackUpOfClusterTooManyRequests) String ¶
func (o *ListBackUpOfClusterTooManyRequests) String() string
type ListBackUpOfClusterTooManyRequestsBody ¶
type ListBackUpOfClusterTooManyRequestsBody 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"` }
ListBackUpOfClusterTooManyRequestsBody list back up of cluster too many requests body swagger:model ListBackUpOfClusterTooManyRequestsBody
func (*ListBackUpOfClusterTooManyRequestsBody) ContextValidate ¶
func (o *ListBackUpOfClusterTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this list back up of cluster too many requests body based on context it is used
func (*ListBackUpOfClusterTooManyRequestsBody) MarshalBinary ¶
func (o *ListBackUpOfClusterTooManyRequestsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListBackUpOfClusterTooManyRequestsBody) UnmarshalBinary ¶
func (o *ListBackUpOfClusterTooManyRequestsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListBackUpOfClusterUnauthorized ¶
type ListBackUpOfClusterUnauthorized struct {
}ListBackUpOfClusterUnauthorized describes a response with status code 401, with default header values.
The API key cannot be authenticated.
func NewListBackUpOfClusterUnauthorized ¶
func NewListBackUpOfClusterUnauthorized() *ListBackUpOfClusterUnauthorized
NewListBackUpOfClusterUnauthorized creates a ListBackUpOfClusterUnauthorized with default headers values
func (*ListBackUpOfClusterUnauthorized) Code ¶
func (o *ListBackUpOfClusterUnauthorized) Code() int
Code gets the status code for the list back up of cluster unauthorized response
func (*ListBackUpOfClusterUnauthorized) Error ¶
func (o *ListBackUpOfClusterUnauthorized) Error() string
func (*ListBackUpOfClusterUnauthorized) GetPayload ¶
func (o *ListBackUpOfClusterUnauthorized) GetPayload() interface{}
func (*ListBackUpOfClusterUnauthorized) IsClientError ¶
func (o *ListBackUpOfClusterUnauthorized) IsClientError() bool
IsClientError returns true when this list back up of cluster unauthorized response has a 4xx status code
func (*ListBackUpOfClusterUnauthorized) IsCode ¶
func (o *ListBackUpOfClusterUnauthorized) IsCode(code int) bool
IsCode returns true when this list back up of cluster unauthorized response a status code equal to that given
func (*ListBackUpOfClusterUnauthorized) IsRedirect ¶
func (o *ListBackUpOfClusterUnauthorized) IsRedirect() bool
IsRedirect returns true when this list back up of cluster unauthorized response has a 3xx status code
func (*ListBackUpOfClusterUnauthorized) IsServerError ¶
func (o *ListBackUpOfClusterUnauthorized) IsServerError() bool
IsServerError returns true when this list back up of cluster unauthorized response has a 5xx status code
func (*ListBackUpOfClusterUnauthorized) IsSuccess ¶
func (o *ListBackUpOfClusterUnauthorized) IsSuccess() bool
IsSuccess returns true when this list back up of cluster unauthorized response has a 2xx status code
func (*ListBackUpOfClusterUnauthorized) String ¶
func (o *ListBackUpOfClusterUnauthorized) String() string