backup

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 BackupAddBadRequest

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

invalid input, object invalid

func NewBackupAddBadRequest

func NewBackupAddBadRequest() *BackupAddBadRequest

NewBackupAddBadRequest creates a BackupAddBadRequest with default headers values

func (*BackupAddBadRequest) Error

func (o *BackupAddBadRequest) Error() string

func (*BackupAddBadRequest) GetPayload

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

type BackupAddConflict

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

item already exists

func NewBackupAddConflict

func NewBackupAddConflict() *BackupAddConflict

NewBackupAddConflict creates a BackupAddConflict with default headers values

func (*BackupAddConflict) Error

func (o *BackupAddConflict) Error() string

type BackupAddCreated

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

item created

func NewBackupAddCreated

func NewBackupAddCreated() *BackupAddCreated

NewBackupAddCreated creates a BackupAddCreated with default headers values

func (*BackupAddCreated) Error

func (o *BackupAddCreated) Error() string

func (*BackupAddCreated) GetPayload

func (o *BackupAddCreated) GetPayload() *models.Backup

type BackupAddParams

type BackupAddParams struct {

	/* BackupItem.

	   backup item
	*/
	BackupItem *models.Backup

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

BackupAddParams contains all the parameters to send to the API endpoint

for the backup add operation.

Typically these are written to a http.Request.

func NewBackupAddParams

func NewBackupAddParams() *BackupAddParams

NewBackupAddParams creates a new BackupAddParams 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 NewBackupAddParamsWithContext

func NewBackupAddParamsWithContext(ctx context.Context) *BackupAddParams

NewBackupAddParamsWithContext creates a new BackupAddParams object with the ability to set a context for a request.

func NewBackupAddParamsWithHTTPClient

func NewBackupAddParamsWithHTTPClient(client *http.Client) *BackupAddParams

NewBackupAddParamsWithHTTPClient creates a new BackupAddParams object with the ability to set a custom HTTPClient for a request.

func NewBackupAddParamsWithTimeout

func NewBackupAddParamsWithTimeout(timeout time.Duration) *BackupAddParams

NewBackupAddParamsWithTimeout creates a new BackupAddParams object with the ability to set a timeout on a request.

func (*BackupAddParams) SetBackupItem

func (o *BackupAddParams) SetBackupItem(backupItem *models.Backup)

SetBackupItem adds the backupItem to the backup add params

func (*BackupAddParams) SetContext

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

SetContext adds the context to the backup add params

func (*BackupAddParams) SetDefaults

func (o *BackupAddParams) SetDefaults()

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

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

func (*BackupAddParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the backup add params

func (*BackupAddParams) SetTimeout

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

SetTimeout adds the timeout to the backup add params

func (*BackupAddParams) WithBackupItem

func (o *BackupAddParams) WithBackupItem(backupItem *models.Backup) *BackupAddParams

WithBackupItem adds the backupItem to the backup add params

func (*BackupAddParams) WithContext

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

WithContext adds the context to the backup add params

func (*BackupAddParams) WithDefaults

func (o *BackupAddParams) WithDefaults() *BackupAddParams

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

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

func (*BackupAddParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the backup add params

func (*BackupAddParams) WithTimeout

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

WithTimeout adds the timeout to the backup add params

func (*BackupAddParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type BackupAddReader

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

BackupAddReader is a Reader for the BackupAdd structure.

func (*BackupAddReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BackupAddServiceUnavailable

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

internal server error

func NewBackupAddServiceUnavailable

func NewBackupAddServiceUnavailable() *BackupAddServiceUnavailable

NewBackupAddServiceUnavailable creates a BackupAddServiceUnavailable with default headers values

func (*BackupAddServiceUnavailable) Error

func (*BackupAddServiceUnavailable) GetPayload

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

type BackupAddUnauthorized

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

bad authentication

func NewBackupAddUnauthorized

func NewBackupAddUnauthorized() *BackupAddUnauthorized

NewBackupAddUnauthorized creates a BackupAddUnauthorized with default headers values

func (*BackupAddUnauthorized) Error

func (o *BackupAddUnauthorized) Error() string

type BackupAddUnprocessableEntity

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

bad validation

func NewBackupAddUnprocessableEntity

func NewBackupAddUnprocessableEntity() *BackupAddUnprocessableEntity

NewBackupAddUnprocessableEntity creates a BackupAddUnprocessableEntity with default headers values

func (*BackupAddUnprocessableEntity) Error

func (*BackupAddUnprocessableEntity) GetPayload

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

type BackupDeleteBadRequest

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

invalid input, object invalid

func NewBackupDeleteBadRequest

func NewBackupDeleteBadRequest() *BackupDeleteBadRequest

NewBackupDeleteBadRequest creates a BackupDeleteBadRequest with default headers values

func (*BackupDeleteBadRequest) Error

func (o *BackupDeleteBadRequest) Error() string

func (*BackupDeleteBadRequest) GetPayload

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

type BackupDeleteForbidden

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

bad permissions

func NewBackupDeleteForbidden

func NewBackupDeleteForbidden() *BackupDeleteForbidden

NewBackupDeleteForbidden creates a BackupDeleteForbidden with default headers values

func (*BackupDeleteForbidden) Error

func (o *BackupDeleteForbidden) Error() string

type BackupDeleteNotFound

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

item not found

func NewBackupDeleteNotFound

func NewBackupDeleteNotFound() *BackupDeleteNotFound

NewBackupDeleteNotFound creates a BackupDeleteNotFound with default headers values

func (*BackupDeleteNotFound) Error

func (o *BackupDeleteNotFound) Error() string

func (*BackupDeleteNotFound) GetPayload

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

type BackupDeleteOK

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

item deleted

func NewBackupDeleteOK

func NewBackupDeleteOK() *BackupDeleteOK

NewBackupDeleteOK creates a BackupDeleteOK with default headers values

func (*BackupDeleteOK) Error

func (o *BackupDeleteOK) Error() string

type BackupDeleteParams

type BackupDeleteParams struct {

	/* BackupID.

	   backup Resource ID
	*/
	BackupID string

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

BackupDeleteParams contains all the parameters to send to the API endpoint

for the backup delete operation.

Typically these are written to a http.Request.

func NewBackupDeleteParams

func NewBackupDeleteParams() *BackupDeleteParams

NewBackupDeleteParams creates a new BackupDeleteParams 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 NewBackupDeleteParamsWithContext

func NewBackupDeleteParamsWithContext(ctx context.Context) *BackupDeleteParams

NewBackupDeleteParamsWithContext creates a new BackupDeleteParams object with the ability to set a context for a request.

func NewBackupDeleteParamsWithHTTPClient

func NewBackupDeleteParamsWithHTTPClient(client *http.Client) *BackupDeleteParams

NewBackupDeleteParamsWithHTTPClient creates a new BackupDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewBackupDeleteParamsWithTimeout

func NewBackupDeleteParamsWithTimeout(timeout time.Duration) *BackupDeleteParams

NewBackupDeleteParamsWithTimeout creates a new BackupDeleteParams object with the ability to set a timeout on a request.

func (*BackupDeleteParams) SetBackupID

func (o *BackupDeleteParams) SetBackupID(backupID string)

SetBackupID adds the backupId to the backup delete params

func (*BackupDeleteParams) SetContext

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

SetContext adds the context to the backup delete params

func (*BackupDeleteParams) SetDefaults

func (o *BackupDeleteParams) SetDefaults()

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

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

func (*BackupDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the backup delete params

func (*BackupDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the backup delete params

func (*BackupDeleteParams) WithBackupID

func (o *BackupDeleteParams) WithBackupID(backupID string) *BackupDeleteParams

WithBackupID adds the backupID to the backup delete params

func (*BackupDeleteParams) WithContext

WithContext adds the context to the backup delete params

func (*BackupDeleteParams) WithDefaults

func (o *BackupDeleteParams) WithDefaults() *BackupDeleteParams

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

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

func (*BackupDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the backup delete params

func (*BackupDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the backup delete params

func (*BackupDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type BackupDeleteReader

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

BackupDeleteReader is a Reader for the BackupDelete structure.

func (*BackupDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BackupDeleteServiceUnavailable

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

internal server error

func NewBackupDeleteServiceUnavailable

func NewBackupDeleteServiceUnavailable() *BackupDeleteServiceUnavailable

NewBackupDeleteServiceUnavailable creates a BackupDeleteServiceUnavailable with default headers values

func (*BackupDeleteServiceUnavailable) Error

func (*BackupDeleteServiceUnavailable) GetPayload

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

type BackupDeleteUnauthorized

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

bad authentication

func NewBackupDeleteUnauthorized

func NewBackupDeleteUnauthorized() *BackupDeleteUnauthorized

NewBackupDeleteUnauthorized creates a BackupDeleteUnauthorized with default headers values

func (*BackupDeleteUnauthorized) Error

func (o *BackupDeleteUnauthorized) Error() string

type BackupDeleteUnprocessableEntity

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

bad validation

func NewBackupDeleteUnprocessableEntity

func NewBackupDeleteUnprocessableEntity() *BackupDeleteUnprocessableEntity

NewBackupDeleteUnprocessableEntity creates a BackupDeleteUnprocessableEntity with default headers values

func (*BackupDeleteUnprocessableEntity) Error

type BackupListBadRequest

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

bad input parameter

func NewBackupListBadRequest

func NewBackupListBadRequest() *BackupListBadRequest

NewBackupListBadRequest creates a BackupListBadRequest with default headers values

func (*BackupListBadRequest) Error

func (o *BackupListBadRequest) Error() string

func (*BackupListBadRequest) GetPayload

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

type BackupListForbidden

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

bad permissions

func NewBackupListForbidden

func NewBackupListForbidden() *BackupListForbidden

NewBackupListForbidden creates a BackupListForbidden with default headers values

func (*BackupListForbidden) Error

func (o *BackupListForbidden) Error() string

type BackupListOK

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

search results matching criteria

func NewBackupListOK

func NewBackupListOK() *BackupListOK

NewBackupListOK creates a BackupListOK with default headers values

func (*BackupListOK) Error

func (o *BackupListOK) Error() string

func (*BackupListOK) GetPayload

func (o *BackupListOK) GetPayload() models.Backups

type BackupListParams

type BackupListParams struct {

	/* ServiceID.

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

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

BackupListParams contains all the parameters to send to the API endpoint

for the backup list operation.

Typically these are written to a http.Request.

func NewBackupListParams

func NewBackupListParams() *BackupListParams

NewBackupListParams creates a new BackupListParams 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 NewBackupListParamsWithContext

func NewBackupListParamsWithContext(ctx context.Context) *BackupListParams

NewBackupListParamsWithContext creates a new BackupListParams object with the ability to set a context for a request.

func NewBackupListParamsWithHTTPClient

func NewBackupListParamsWithHTTPClient(client *http.Client) *BackupListParams

NewBackupListParamsWithHTTPClient creates a new BackupListParams object with the ability to set a custom HTTPClient for a request.

func NewBackupListParamsWithTimeout

func NewBackupListParamsWithTimeout(timeout time.Duration) *BackupListParams

NewBackupListParamsWithTimeout creates a new BackupListParams object with the ability to set a timeout on a request.

func (*BackupListParams) SetContext

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

SetContext adds the context to the backup list params

func (*BackupListParams) SetDefaults

func (o *BackupListParams) SetDefaults()

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

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

func (*BackupListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the backup list params

func (*BackupListParams) SetServiceID

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

SetServiceID adds the serviceId to the backup list params

func (*BackupListParams) SetTimeout

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

SetTimeout adds the timeout to the backup list params

func (*BackupListParams) WithContext

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

WithContext adds the context to the backup list params

func (*BackupListParams) WithDefaults

func (o *BackupListParams) WithDefaults() *BackupListParams

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

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

func (*BackupListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the backup list params

func (*BackupListParams) WithServiceID

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

WithServiceID adds the serviceID to the backup list params

func (*BackupListParams) WithTimeout

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

WithTimeout adds the timeout to the backup list params

func (*BackupListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type BackupListReader

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

BackupListReader is a Reader for the BackupList structure.

func (*BackupListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BackupListServiceUnavailable

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

internal server error

func NewBackupListServiceUnavailable

func NewBackupListServiceUnavailable() *BackupListServiceUnavailable

NewBackupListServiceUnavailable creates a BackupListServiceUnavailable with default headers values

func (*BackupListServiceUnavailable) Error

func (*BackupListServiceUnavailable) GetPayload

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

type BackupListUnauthorized

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

bad authentication

func NewBackupListUnauthorized

func NewBackupListUnauthorized() *BackupListUnauthorized

NewBackupListUnauthorized creates a BackupListUnauthorized with default headers values

func (*BackupListUnauthorized) Error

func (o *BackupListUnauthorized) Error() string

type BackupListUnprocessableEntity

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

bad validation

func NewBackupListUnprocessableEntity

func NewBackupListUnprocessableEntity() *BackupListUnprocessableEntity

NewBackupListUnprocessableEntity creates a BackupListUnprocessableEntity with default headers values

func (*BackupListUnprocessableEntity) Error

func (*BackupListUnprocessableEntity) GetPayload

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

type Client

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

Client for backup API

func (*Client) BackupAdd

func (a *Client) BackupAdd(params *BackupAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BackupAddCreated, error)

BackupAdd creates backup object

Create backup object

func (*Client) BackupDelete

func (a *Client) BackupDelete(params *BackupDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BackupDeleteOK, error)

BackupDelete deletes a backup item

Deletes a backup object

func (*Client) BackupList

func (a *Client) BackupList(params *BackupListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BackupListOK, error)

BackupList lists backups

List backup 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 {
	BackupAdd(params *BackupAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BackupAddCreated, error)

	BackupDelete(params *BackupDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BackupDeleteOK, error)

	BackupList(params *BackupListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BackupListOK, 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.

Jump to

Keyboard shortcuts

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