restore

package
v0.0.0-...-82ba225 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for restore API

func (*Client) RestoreAdd

func (a *Client) RestoreAdd(params *RestoreAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestoreAddCreated, error)

RestoreAdd creates restore object

Create restore object

func (*Client) RestoreDelete

func (a *Client) RestoreDelete(params *RestoreDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestoreDeleteOK, error)

RestoreDelete deletes a restore item

Deletes a restore object

func (*Client) RestoreList

func (a *Client) RestoreList(params *RestoreListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestoreListOK, error)

RestoreList lists restores

List restore objects

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 {
	RestoreAdd(params *RestoreAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestoreAddCreated, error)

	RestoreDelete(params *RestoreDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestoreDeleteOK, error)

	RestoreList(params *RestoreListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestoreListOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new restore API client.

type RestoreAddBadRequest

type RestoreAddBadRequest struct {
	Payload *models.Error
}
RestoreAddBadRequest describes a response with status code 400, with default header values.

invalid input, object invalid

func NewRestoreAddBadRequest

func NewRestoreAddBadRequest() *RestoreAddBadRequest

NewRestoreAddBadRequest creates a RestoreAddBadRequest with default headers values

func (*RestoreAddBadRequest) Error

func (o *RestoreAddBadRequest) Error() string

func (*RestoreAddBadRequest) GetPayload

func (o *RestoreAddBadRequest) GetPayload() *models.Error

type RestoreAddConflict

type RestoreAddConflict struct {
}
RestoreAddConflict describes a response with status code 409, with default header values.

item already exists

func NewRestoreAddConflict

func NewRestoreAddConflict() *RestoreAddConflict

NewRestoreAddConflict creates a RestoreAddConflict with default headers values

func (*RestoreAddConflict) Error

func (o *RestoreAddConflict) Error() string

type RestoreAddCreated

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

item created

func NewRestoreAddCreated

func NewRestoreAddCreated() *RestoreAddCreated

NewRestoreAddCreated creates a RestoreAddCreated with default headers values

func (*RestoreAddCreated) Error

func (o *RestoreAddCreated) Error() string

func (*RestoreAddCreated) GetPayload

func (o *RestoreAddCreated) GetPayload() *models.Restore

type RestoreAddParams

type RestoreAddParams struct {

	/* RestoreItem.

	   restore item
	*/
	RestoreItem *models.Restore

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

RestoreAddParams contains all the parameters to send to the API endpoint

for the restore add operation.

Typically these are written to a http.Request.

func NewRestoreAddParams

func NewRestoreAddParams() *RestoreAddParams

NewRestoreAddParams creates a new RestoreAddParams 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 NewRestoreAddParamsWithContext

func NewRestoreAddParamsWithContext(ctx context.Context) *RestoreAddParams

NewRestoreAddParamsWithContext creates a new RestoreAddParams object with the ability to set a context for a request.

func NewRestoreAddParamsWithHTTPClient

func NewRestoreAddParamsWithHTTPClient(client *http.Client) *RestoreAddParams

NewRestoreAddParamsWithHTTPClient creates a new RestoreAddParams object with the ability to set a custom HTTPClient for a request.

func NewRestoreAddParamsWithTimeout

func NewRestoreAddParamsWithTimeout(timeout time.Duration) *RestoreAddParams

NewRestoreAddParamsWithTimeout creates a new RestoreAddParams object with the ability to set a timeout on a request.

func (*RestoreAddParams) SetContext

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

SetContext adds the context to the restore add params

func (*RestoreAddParams) SetDefaults

func (o *RestoreAddParams) SetDefaults()

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

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

func (*RestoreAddParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the restore add params

func (*RestoreAddParams) SetRestoreItem

func (o *RestoreAddParams) SetRestoreItem(restoreItem *models.Restore)

SetRestoreItem adds the restoreItem to the restore add params

func (*RestoreAddParams) SetTimeout

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

SetTimeout adds the timeout to the restore add params

func (*RestoreAddParams) WithContext

func (o *RestoreAddParams) WithContext(ctx context.Context) *RestoreAddParams

WithContext adds the context to the restore add params

func (*RestoreAddParams) WithDefaults

func (o *RestoreAddParams) WithDefaults() *RestoreAddParams

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

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

func (*RestoreAddParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the restore add params

func (*RestoreAddParams) WithRestoreItem

func (o *RestoreAddParams) WithRestoreItem(restoreItem *models.Restore) *RestoreAddParams

WithRestoreItem adds the restoreItem to the restore add params

func (*RestoreAddParams) WithTimeout

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

WithTimeout adds the timeout to the restore add params

func (*RestoreAddParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RestoreAddReader

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

RestoreAddReader is a Reader for the RestoreAdd structure.

func (*RestoreAddReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestoreAddServiceUnavailable

type RestoreAddServiceUnavailable struct {
	Payload *models.Error
}
RestoreAddServiceUnavailable describes a response with status code 503, with default header values.

internal server error

func NewRestoreAddServiceUnavailable

func NewRestoreAddServiceUnavailable() *RestoreAddServiceUnavailable

NewRestoreAddServiceUnavailable creates a RestoreAddServiceUnavailable with default headers values

func (*RestoreAddServiceUnavailable) Error

func (*RestoreAddServiceUnavailable) GetPayload

func (o *RestoreAddServiceUnavailable) GetPayload() *models.Error

type RestoreAddUnauthorized

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

bad authentication

func NewRestoreAddUnauthorized

func NewRestoreAddUnauthorized() *RestoreAddUnauthorized

NewRestoreAddUnauthorized creates a RestoreAddUnauthorized with default headers values

func (*RestoreAddUnauthorized) Error

func (o *RestoreAddUnauthorized) Error() string

type RestoreAddUnprocessableEntity

type RestoreAddUnprocessableEntity struct {
	Payload *models.Error
}
RestoreAddUnprocessableEntity describes a response with status code 422, with default header values.

bad validation

func NewRestoreAddUnprocessableEntity

func NewRestoreAddUnprocessableEntity() *RestoreAddUnprocessableEntity

NewRestoreAddUnprocessableEntity creates a RestoreAddUnprocessableEntity with default headers values

func (*RestoreAddUnprocessableEntity) Error

func (*RestoreAddUnprocessableEntity) GetPayload

func (o *RestoreAddUnprocessableEntity) GetPayload() *models.Error

type RestoreDeleteBadRequest

type RestoreDeleteBadRequest struct {
	Payload *models.Error
}
RestoreDeleteBadRequest describes a response with status code 400, with default header values.

invalid input, object invalid

func NewRestoreDeleteBadRequest

func NewRestoreDeleteBadRequest() *RestoreDeleteBadRequest

NewRestoreDeleteBadRequest creates a RestoreDeleteBadRequest with default headers values

func (*RestoreDeleteBadRequest) Error

func (o *RestoreDeleteBadRequest) Error() string

func (*RestoreDeleteBadRequest) GetPayload

func (o *RestoreDeleteBadRequest) GetPayload() *models.Error

type RestoreDeleteForbidden

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

bad permissions

func NewRestoreDeleteForbidden

func NewRestoreDeleteForbidden() *RestoreDeleteForbidden

NewRestoreDeleteForbidden creates a RestoreDeleteForbidden with default headers values

func (*RestoreDeleteForbidden) Error

func (o *RestoreDeleteForbidden) Error() string

type RestoreDeleteNotFound

type RestoreDeleteNotFound struct {
	Payload *models.Error
}
RestoreDeleteNotFound describes a response with status code 404, with default header values.

item not found

func NewRestoreDeleteNotFound

func NewRestoreDeleteNotFound() *RestoreDeleteNotFound

NewRestoreDeleteNotFound creates a RestoreDeleteNotFound with default headers values

func (*RestoreDeleteNotFound) Error

func (o *RestoreDeleteNotFound) Error() string

func (*RestoreDeleteNotFound) GetPayload

func (o *RestoreDeleteNotFound) GetPayload() *models.Error

type RestoreDeleteOK

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

item deleted

func NewRestoreDeleteOK

func NewRestoreDeleteOK() *RestoreDeleteOK

NewRestoreDeleteOK creates a RestoreDeleteOK with default headers values

func (*RestoreDeleteOK) Error

func (o *RestoreDeleteOK) Error() string

type RestoreDeleteParams

type RestoreDeleteParams struct {

	/* RestoreID.

	   restore Resource ID
	*/
	RestoreID string

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

RestoreDeleteParams contains all the parameters to send to the API endpoint

for the restore delete operation.

Typically these are written to a http.Request.

func NewRestoreDeleteParams

func NewRestoreDeleteParams() *RestoreDeleteParams

NewRestoreDeleteParams creates a new RestoreDeleteParams 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 NewRestoreDeleteParamsWithContext

func NewRestoreDeleteParamsWithContext(ctx context.Context) *RestoreDeleteParams

NewRestoreDeleteParamsWithContext creates a new RestoreDeleteParams object with the ability to set a context for a request.

func NewRestoreDeleteParamsWithHTTPClient

func NewRestoreDeleteParamsWithHTTPClient(client *http.Client) *RestoreDeleteParams

NewRestoreDeleteParamsWithHTTPClient creates a new RestoreDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewRestoreDeleteParamsWithTimeout

func NewRestoreDeleteParamsWithTimeout(timeout time.Duration) *RestoreDeleteParams

NewRestoreDeleteParamsWithTimeout creates a new RestoreDeleteParams object with the ability to set a timeout on a request.

func (*RestoreDeleteParams) SetContext

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

SetContext adds the context to the restore delete params

func (*RestoreDeleteParams) SetDefaults

func (o *RestoreDeleteParams) SetDefaults()

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

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

func (*RestoreDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the restore delete params

func (*RestoreDeleteParams) SetRestoreID

func (o *RestoreDeleteParams) SetRestoreID(restoreID string)

SetRestoreID adds the restoreId to the restore delete params

func (*RestoreDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the restore delete params

func (*RestoreDeleteParams) WithContext

WithContext adds the context to the restore delete params

func (*RestoreDeleteParams) WithDefaults

func (o *RestoreDeleteParams) WithDefaults() *RestoreDeleteParams

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

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

func (*RestoreDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the restore delete params

func (*RestoreDeleteParams) WithRestoreID

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

WithRestoreID adds the restoreID to the restore delete params

func (*RestoreDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the restore delete params

func (*RestoreDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RestoreDeleteReader

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

RestoreDeleteReader is a Reader for the RestoreDelete structure.

func (*RestoreDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestoreDeleteServiceUnavailable

type RestoreDeleteServiceUnavailable struct {
	Payload *models.Error
}
RestoreDeleteServiceUnavailable describes a response with status code 503, with default header values.

internal server error

func NewRestoreDeleteServiceUnavailable

func NewRestoreDeleteServiceUnavailable() *RestoreDeleteServiceUnavailable

NewRestoreDeleteServiceUnavailable creates a RestoreDeleteServiceUnavailable with default headers values

func (*RestoreDeleteServiceUnavailable) Error

func (*RestoreDeleteServiceUnavailable) GetPayload

func (o *RestoreDeleteServiceUnavailable) GetPayload() *models.Error

type RestoreDeleteUnauthorized

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

bad authentication

func NewRestoreDeleteUnauthorized

func NewRestoreDeleteUnauthorized() *RestoreDeleteUnauthorized

NewRestoreDeleteUnauthorized creates a RestoreDeleteUnauthorized with default headers values

func (*RestoreDeleteUnauthorized) Error

func (o *RestoreDeleteUnauthorized) Error() string

type RestoreDeleteUnprocessableEntity

type RestoreDeleteUnprocessableEntity struct {
}
RestoreDeleteUnprocessableEntity describes a response with status code 422, with default header values.

bad validation

func NewRestoreDeleteUnprocessableEntity

func NewRestoreDeleteUnprocessableEntity() *RestoreDeleteUnprocessableEntity

NewRestoreDeleteUnprocessableEntity creates a RestoreDeleteUnprocessableEntity with default headers values

func (*RestoreDeleteUnprocessableEntity) Error

type RestoreListBadRequest

type RestoreListBadRequest struct {
	Payload *models.Error
}
RestoreListBadRequest describes a response with status code 400, with default header values.

bad input parameter

func NewRestoreListBadRequest

func NewRestoreListBadRequest() *RestoreListBadRequest

NewRestoreListBadRequest creates a RestoreListBadRequest with default headers values

func (*RestoreListBadRequest) Error

func (o *RestoreListBadRequest) Error() string

func (*RestoreListBadRequest) GetPayload

func (o *RestoreListBadRequest) GetPayload() *models.Error

type RestoreListForbidden

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

bad permissions

func NewRestoreListForbidden

func NewRestoreListForbidden() *RestoreListForbidden

NewRestoreListForbidden creates a RestoreListForbidden with default headers values

func (*RestoreListForbidden) Error

func (o *RestoreListForbidden) Error() string

type RestoreListOK

type RestoreListOK struct {
	Payload models.Restores
}
RestoreListOK describes a response with status code 200, with default header values.

search results matching criteria

func NewRestoreListOK

func NewRestoreListOK() *RestoreListOK

NewRestoreListOK creates a RestoreListOK with default headers values

func (*RestoreListOK) Error

func (o *RestoreListOK) Error() string

func (*RestoreListOK) GetPayload

func (o *RestoreListOK) GetPayload() models.Restores

type RestoreListParams

type RestoreListParams struct {

	/* ServiceID.

	   service Resource ID to query backups/restores by
	*/
	ServiceID *string

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

RestoreListParams contains all the parameters to send to the API endpoint

for the restore list operation.

Typically these are written to a http.Request.

func NewRestoreListParams

func NewRestoreListParams() *RestoreListParams

NewRestoreListParams creates a new RestoreListParams 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 NewRestoreListParamsWithContext

func NewRestoreListParamsWithContext(ctx context.Context) *RestoreListParams

NewRestoreListParamsWithContext creates a new RestoreListParams object with the ability to set a context for a request.

func NewRestoreListParamsWithHTTPClient

func NewRestoreListParamsWithHTTPClient(client *http.Client) *RestoreListParams

NewRestoreListParamsWithHTTPClient creates a new RestoreListParams object with the ability to set a custom HTTPClient for a request.

func NewRestoreListParamsWithTimeout

func NewRestoreListParamsWithTimeout(timeout time.Duration) *RestoreListParams

NewRestoreListParamsWithTimeout creates a new RestoreListParams object with the ability to set a timeout on a request.

func (*RestoreListParams) SetContext

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

SetContext adds the context to the restore list params

func (*RestoreListParams) SetDefaults

func (o *RestoreListParams) SetDefaults()

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

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

func (*RestoreListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the restore list params

func (*RestoreListParams) SetServiceID

func (o *RestoreListParams) SetServiceID(serviceID *string)

SetServiceID adds the serviceId to the restore list params

func (*RestoreListParams) SetTimeout

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

SetTimeout adds the timeout to the restore list params

func (*RestoreListParams) WithContext

func (o *RestoreListParams) WithContext(ctx context.Context) *RestoreListParams

WithContext adds the context to the restore list params

func (*RestoreListParams) WithDefaults

func (o *RestoreListParams) WithDefaults() *RestoreListParams

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

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

func (*RestoreListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the restore list params

func (*RestoreListParams) WithServiceID

func (o *RestoreListParams) WithServiceID(serviceID *string) *RestoreListParams

WithServiceID adds the serviceID to the restore list params

func (*RestoreListParams) WithTimeout

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

WithTimeout adds the timeout to the restore list params

func (*RestoreListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RestoreListReader

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

RestoreListReader is a Reader for the RestoreList structure.

func (*RestoreListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestoreListServiceUnavailable

type RestoreListServiceUnavailable struct {
	Payload *models.Error
}
RestoreListServiceUnavailable describes a response with status code 503, with default header values.

internal server error

func NewRestoreListServiceUnavailable

func NewRestoreListServiceUnavailable() *RestoreListServiceUnavailable

NewRestoreListServiceUnavailable creates a RestoreListServiceUnavailable with default headers values

func (*RestoreListServiceUnavailable) Error

func (*RestoreListServiceUnavailable) GetPayload

func (o *RestoreListServiceUnavailable) GetPayload() *models.Error

type RestoreListUnauthorized

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

bad authentication

func NewRestoreListUnauthorized

func NewRestoreListUnauthorized() *RestoreListUnauthorized

NewRestoreListUnauthorized creates a RestoreListUnauthorized with default headers values

func (*RestoreListUnauthorized) Error

func (o *RestoreListUnauthorized) Error() string

type RestoreListUnprocessableEntity

type RestoreListUnprocessableEntity struct {
	Payload *models.Error
}
RestoreListUnprocessableEntity describes a response with status code 422, with default header values.

bad validation

func NewRestoreListUnprocessableEntity

func NewRestoreListUnprocessableEntity() *RestoreListUnprocessableEntity

NewRestoreListUnprocessableEntity creates a RestoreListUnprocessableEntity with default headers values

func (*RestoreListUnprocessableEntity) Error

func (*RestoreListUnprocessableEntity) GetPayload

func (o *RestoreListUnprocessableEntity) GetPayload() *models.Error

Jump to

Keyboard shortcuts

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