storages

package
v0.2.0-beta Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MPL-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// StorageCreateHTTPBodyLocationSDashDt2 captures enum value "s-dt2"
	StorageCreateHTTPBodyLocationSDashDt2 string = "s-dt2"
)
View Source
const (

	// StorageCreateHTTPBodyTypeS3 captures enum value "s3"
	StorageCreateHTTPBodyTypeS3 string = "s3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for storages API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) StorageCreateHTTP

func (a *Client) StorageCreateHTTP(params *StorageCreateHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageCreateHTTPOK, error)

StorageCreateHTTP creates a storage

Creates a storage and returns it.

func (*Client) StorageDeleteHTTP

func (a *Client) StorageDeleteHTTP(params *StorageDeleteHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageDeleteHTTPNoContent, error)

StorageDeleteHTTP deletes a storage

Deletes a storage from your account.

func (*Client) StorageGetHTTP

func (a *Client) StorageGetHTTP(params *StorageGetHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageGetHTTPOK, error)

StorageGetHTTP gets a storage

Returns information about a specific storage in your account.

func (*Client) StorageListHTTPV2

func (a *Client) StorageListHTTPV2(params *StorageListHTTPV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageListHTTPV2OK, error)

StorageListHTTPV2 gets all storages

Returns information about all storages in your account

func (*Client) StorageRestoreHTTP

func (a *Client) StorageRestoreHTTP(params *StorageRestoreHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageRestoreHTTPNoContent, error)

StorageRestoreHTTP recovers a deleted s3 storage

Recovers S3 storage that was deleted in the last 2 weeks. The storage will appear in your account.

func (*Client) StorageUpdateCredentialsHTTP

func (a *Client) StorageUpdateCredentialsHTTP(params *StorageUpdateCredentialsHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageUpdateCredentialsHTTPOK, error)

StorageUpdateCredentialsHTTP updates a storage credentials

Changes the credentials of your storage.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	StorageCreateHTTP(params *StorageCreateHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageCreateHTTPOK, error)

	StorageDeleteHTTP(params *StorageDeleteHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageDeleteHTTPNoContent, error)

	StorageGetHTTP(params *StorageGetHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageGetHTTPOK, error)

	StorageListHTTPV2(params *StorageListHTTPV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageListHTTPV2OK, error)

	StorageRestoreHTTP(params *StorageRestoreHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageRestoreHTTPNoContent, error)

	StorageUpdateCredentialsHTTP(params *StorageUpdateCredentialsHTTPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StorageUpdateCredentialsHTTPOK, 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 storages API client.

type StorageCreateHTTPBadRequest

type StorageCreateHTTPBadRequest struct {
	Payload *models.ErrResponse
}

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

ErrResponse

func NewStorageCreateHTTPBadRequest

func NewStorageCreateHTTPBadRequest() *StorageCreateHTTPBadRequest

NewStorageCreateHTTPBadRequest creates a StorageCreateHTTPBadRequest with default headers values

func (*StorageCreateHTTPBadRequest) Code

func (o *StorageCreateHTTPBadRequest) Code() int

Code gets the status code for the storage create Http bad request response

func (*StorageCreateHTTPBadRequest) Error

func (*StorageCreateHTTPBadRequest) GetPayload

func (*StorageCreateHTTPBadRequest) IsClientError

func (o *StorageCreateHTTPBadRequest) IsClientError() bool

IsClientError returns true when this storage create Http bad request response has a 4xx status code

func (*StorageCreateHTTPBadRequest) IsCode

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

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

func (*StorageCreateHTTPBadRequest) IsRedirect

func (o *StorageCreateHTTPBadRequest) IsRedirect() bool

IsRedirect returns true when this storage create Http bad request response has a 3xx status code

func (*StorageCreateHTTPBadRequest) IsServerError

func (o *StorageCreateHTTPBadRequest) IsServerError() bool

IsServerError returns true when this storage create Http bad request response has a 5xx status code

func (*StorageCreateHTTPBadRequest) IsSuccess

func (o *StorageCreateHTTPBadRequest) IsSuccess() bool

IsSuccess returns true when this storage create Http bad request response has a 2xx status code

func (*StorageCreateHTTPBadRequest) String

func (o *StorageCreateHTTPBadRequest) String() string

type StorageCreateHTTPBody

type StorageCreateHTTPBody struct {

	// generate sftp password
	GenerateSftpPassword bool `json:"generate_sftp_password,omitempty"`

	// Specify the storage location.
	// <a href="https://apidocs.edgecenter.ru/storage#tag/location/operation/locationListHttp">Get a list of
	// available locations here</a>
	// Enum: [s-dt2]
	Location string `json:"location,omitempty"`

	// Storage name
	Name string `json:"name,omitempty"`

	// sftp password
	SftpPassword string `json:"sftp_password,omitempty"`

	// Storage type
	// Enum: [s3]
	Type string `json:"type,omitempty"`
}

StorageCreateHTTPBody storage create HTTP body swagger:model StorageCreateHTTPBody

func (*StorageCreateHTTPBody) ContextValidate

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

ContextValidate validates this storage create HTTP body based on context it is used

func (*StorageCreateHTTPBody) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageCreateHTTPBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageCreateHTTPBody) Validate

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

Validate validates this storage create HTTP body

type StorageCreateHTTPConflict

type StorageCreateHTTPConflict struct {
	Payload *models.ErrResponse
}

StorageCreateHTTPConflict describes a response with status code 409, with default header values.

ErrResponse

func NewStorageCreateHTTPConflict

func NewStorageCreateHTTPConflict() *StorageCreateHTTPConflict

NewStorageCreateHTTPConflict creates a StorageCreateHTTPConflict with default headers values

func (*StorageCreateHTTPConflict) Code

func (o *StorageCreateHTTPConflict) Code() int

Code gets the status code for the storage create Http conflict response

func (*StorageCreateHTTPConflict) Error

func (o *StorageCreateHTTPConflict) Error() string

func (*StorageCreateHTTPConflict) GetPayload

func (o *StorageCreateHTTPConflict) GetPayload() *models.ErrResponse

func (*StorageCreateHTTPConflict) IsClientError

func (o *StorageCreateHTTPConflict) IsClientError() bool

IsClientError returns true when this storage create Http conflict response has a 4xx status code

func (*StorageCreateHTTPConflict) IsCode

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

IsCode returns true when this storage create Http conflict response a status code equal to that given

func (*StorageCreateHTTPConflict) IsRedirect

func (o *StorageCreateHTTPConflict) IsRedirect() bool

IsRedirect returns true when this storage create Http conflict response has a 3xx status code

func (*StorageCreateHTTPConflict) IsServerError

func (o *StorageCreateHTTPConflict) IsServerError() bool

IsServerError returns true when this storage create Http conflict response has a 5xx status code

func (*StorageCreateHTTPConflict) IsSuccess

func (o *StorageCreateHTTPConflict) IsSuccess() bool

IsSuccess returns true when this storage create Http conflict response has a 2xx status code

func (*StorageCreateHTTPConflict) String

func (o *StorageCreateHTTPConflict) String() string

type StorageCreateHTTPOK

type StorageCreateHTTPOK struct {
	Payload *models.Storage
}

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

Storage

func NewStorageCreateHTTPOK

func NewStorageCreateHTTPOK() *StorageCreateHTTPOK

NewStorageCreateHTTPOK creates a StorageCreateHTTPOK with default headers values

func (*StorageCreateHTTPOK) Code

func (o *StorageCreateHTTPOK) Code() int

Code gets the status code for the storage create Http o k response

func (*StorageCreateHTTPOK) Error

func (o *StorageCreateHTTPOK) Error() string

func (*StorageCreateHTTPOK) GetPayload

func (o *StorageCreateHTTPOK) GetPayload() *models.Storage

func (*StorageCreateHTTPOK) IsClientError

func (o *StorageCreateHTTPOK) IsClientError() bool

IsClientError returns true when this storage create Http o k response has a 4xx status code

func (*StorageCreateHTTPOK) IsCode

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

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

func (*StorageCreateHTTPOK) IsRedirect

func (o *StorageCreateHTTPOK) IsRedirect() bool

IsRedirect returns true when this storage create Http o k response has a 3xx status code

func (*StorageCreateHTTPOK) IsServerError

func (o *StorageCreateHTTPOK) IsServerError() bool

IsServerError returns true when this storage create Http o k response has a 5xx status code

func (*StorageCreateHTTPOK) IsSuccess

func (o *StorageCreateHTTPOK) IsSuccess() bool

IsSuccess returns true when this storage create Http o k response has a 2xx status code

func (*StorageCreateHTTPOK) String

func (o *StorageCreateHTTPOK) String() string

type StorageCreateHTTPParams

type StorageCreateHTTPParams struct {

	// Body.
	Body StorageCreateHTTPBody

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

StorageCreateHTTPParams contains all the parameters to send to the API endpoint

for the storage create Http operation.

Typically these are written to a http.Request.

func NewStorageCreateHTTPParams

func NewStorageCreateHTTPParams() *StorageCreateHTTPParams

NewStorageCreateHTTPParams creates a new StorageCreateHTTPParams 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 NewStorageCreateHTTPParamsWithContext

func NewStorageCreateHTTPParamsWithContext(ctx context.Context) *StorageCreateHTTPParams

NewStorageCreateHTTPParamsWithContext creates a new StorageCreateHTTPParams object with the ability to set a context for a request.

func NewStorageCreateHTTPParamsWithHTTPClient

func NewStorageCreateHTTPParamsWithHTTPClient(client *http.Client) *StorageCreateHTTPParams

NewStorageCreateHTTPParamsWithHTTPClient creates a new StorageCreateHTTPParams object with the ability to set a custom HTTPClient for a request.

func NewStorageCreateHTTPParamsWithTimeout

func NewStorageCreateHTTPParamsWithTimeout(timeout time.Duration) *StorageCreateHTTPParams

NewStorageCreateHTTPParamsWithTimeout creates a new StorageCreateHTTPParams object with the ability to set a timeout on a request.

func (*StorageCreateHTTPParams) SetBody

SetBody adds the body to the storage create Http params

func (*StorageCreateHTTPParams) SetContext

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

SetContext adds the context to the storage create Http params

func (*StorageCreateHTTPParams) SetDefaults

func (o *StorageCreateHTTPParams) SetDefaults()

SetDefaults hydrates default values in the storage create Http params (not the query body).

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

func (*StorageCreateHTTPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the storage create Http params

func (*StorageCreateHTTPParams) SetTimeout

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

SetTimeout adds the timeout to the storage create Http params

func (*StorageCreateHTTPParams) WithBody

WithBody adds the body to the storage create Http params

func (*StorageCreateHTTPParams) WithContext

WithContext adds the context to the storage create Http params

func (*StorageCreateHTTPParams) WithDefaults

WithDefaults hydrates default values in the storage create Http params (not the query body).

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

func (*StorageCreateHTTPParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the storage create Http params

func (*StorageCreateHTTPParams) WithTimeout

WithTimeout adds the timeout to the storage create Http params

func (*StorageCreateHTTPParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type StorageCreateHTTPReader

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

StorageCreateHTTPReader is a Reader for the StorageCreateHTTP structure.

func (*StorageCreateHTTPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StorageDeleteHTTPBadRequest

type StorageDeleteHTTPBadRequest struct {
	Payload *models.ErrResponse
}

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

ErrResponse

func NewStorageDeleteHTTPBadRequest

func NewStorageDeleteHTTPBadRequest() *StorageDeleteHTTPBadRequest

NewStorageDeleteHTTPBadRequest creates a StorageDeleteHTTPBadRequest with default headers values

func (*StorageDeleteHTTPBadRequest) Code

func (o *StorageDeleteHTTPBadRequest) Code() int

Code gets the status code for the storage delete Http bad request response

func (*StorageDeleteHTTPBadRequest) Error

func (*StorageDeleteHTTPBadRequest) GetPayload

func (*StorageDeleteHTTPBadRequest) IsClientError

func (o *StorageDeleteHTTPBadRequest) IsClientError() bool

IsClientError returns true when this storage delete Http bad request response has a 4xx status code

func (*StorageDeleteHTTPBadRequest) IsCode

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

IsCode returns true when this storage delete Http bad request response a status code equal to that given

func (*StorageDeleteHTTPBadRequest) IsRedirect

func (o *StorageDeleteHTTPBadRequest) IsRedirect() bool

IsRedirect returns true when this storage delete Http bad request response has a 3xx status code

func (*StorageDeleteHTTPBadRequest) IsServerError

func (o *StorageDeleteHTTPBadRequest) IsServerError() bool

IsServerError returns true when this storage delete Http bad request response has a 5xx status code

func (*StorageDeleteHTTPBadRequest) IsSuccess

func (o *StorageDeleteHTTPBadRequest) IsSuccess() bool

IsSuccess returns true when this storage delete Http bad request response has a 2xx status code

func (*StorageDeleteHTTPBadRequest) String

func (o *StorageDeleteHTTPBadRequest) String() string

type StorageDeleteHTTPNoContent

type StorageDeleteHTTPNoContent struct {
}

StorageDeleteHTTPNoContent describes a response with status code 204, with default header values.

A SuccessResponse is a response that shows that operations was completed successfully

func NewStorageDeleteHTTPNoContent

func NewStorageDeleteHTTPNoContent() *StorageDeleteHTTPNoContent

NewStorageDeleteHTTPNoContent creates a StorageDeleteHTTPNoContent with default headers values

func (*StorageDeleteHTTPNoContent) Code

func (o *StorageDeleteHTTPNoContent) Code() int

Code gets the status code for the storage delete Http no content response

func (*StorageDeleteHTTPNoContent) Error

func (*StorageDeleteHTTPNoContent) IsClientError

func (o *StorageDeleteHTTPNoContent) IsClientError() bool

IsClientError returns true when this storage delete Http no content response has a 4xx status code

func (*StorageDeleteHTTPNoContent) IsCode

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

IsCode returns true when this storage delete Http no content response a status code equal to that given

func (*StorageDeleteHTTPNoContent) IsRedirect

func (o *StorageDeleteHTTPNoContent) IsRedirect() bool

IsRedirect returns true when this storage delete Http no content response has a 3xx status code

func (*StorageDeleteHTTPNoContent) IsServerError

func (o *StorageDeleteHTTPNoContent) IsServerError() bool

IsServerError returns true when this storage delete Http no content response has a 5xx status code

func (*StorageDeleteHTTPNoContent) IsSuccess

func (o *StorageDeleteHTTPNoContent) IsSuccess() bool

IsSuccess returns true when this storage delete Http no content response has a 2xx status code

func (*StorageDeleteHTTPNoContent) String

func (o *StorageDeleteHTTPNoContent) String() string

type StorageDeleteHTTPParams

type StorageDeleteHTTPParams struct {

	/* ID.

	   Storage ID

	   Format: int64
	*/
	ID int64

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

StorageDeleteHTTPParams contains all the parameters to send to the API endpoint

for the storage delete Http operation.

Typically these are written to a http.Request.

func NewStorageDeleteHTTPParams

func NewStorageDeleteHTTPParams() *StorageDeleteHTTPParams

NewStorageDeleteHTTPParams creates a new StorageDeleteHTTPParams 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 NewStorageDeleteHTTPParamsWithContext

func NewStorageDeleteHTTPParamsWithContext(ctx context.Context) *StorageDeleteHTTPParams

NewStorageDeleteHTTPParamsWithContext creates a new StorageDeleteHTTPParams object with the ability to set a context for a request.

func NewStorageDeleteHTTPParamsWithHTTPClient

func NewStorageDeleteHTTPParamsWithHTTPClient(client *http.Client) *StorageDeleteHTTPParams

NewStorageDeleteHTTPParamsWithHTTPClient creates a new StorageDeleteHTTPParams object with the ability to set a custom HTTPClient for a request.

func NewStorageDeleteHTTPParamsWithTimeout

func NewStorageDeleteHTTPParamsWithTimeout(timeout time.Duration) *StorageDeleteHTTPParams

NewStorageDeleteHTTPParamsWithTimeout creates a new StorageDeleteHTTPParams object with the ability to set a timeout on a request.

func (*StorageDeleteHTTPParams) SetContext

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

SetContext adds the context to the storage delete Http params

func (*StorageDeleteHTTPParams) SetDefaults

func (o *StorageDeleteHTTPParams) SetDefaults()

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

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

func (*StorageDeleteHTTPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the storage delete Http params

func (*StorageDeleteHTTPParams) SetID

func (o *StorageDeleteHTTPParams) SetID(id int64)

SetID adds the id to the storage delete Http params

func (*StorageDeleteHTTPParams) SetTimeout

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

SetTimeout adds the timeout to the storage delete Http params

func (*StorageDeleteHTTPParams) WithContext

WithContext adds the context to the storage delete Http params

func (*StorageDeleteHTTPParams) WithDefaults

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

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

func (*StorageDeleteHTTPParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the storage delete Http params

func (*StorageDeleteHTTPParams) WithID

WithID adds the id to the storage delete Http params

func (*StorageDeleteHTTPParams) WithTimeout

WithTimeout adds the timeout to the storage delete Http params

func (*StorageDeleteHTTPParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type StorageDeleteHTTPReader

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

StorageDeleteHTTPReader is a Reader for the StorageDeleteHTTP structure.

func (*StorageDeleteHTTPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StorageGetHTTPBadRequest

type StorageGetHTTPBadRequest struct {
	Payload *models.ErrResponse
}

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

ErrResponse

func NewStorageGetHTTPBadRequest

func NewStorageGetHTTPBadRequest() *StorageGetHTTPBadRequest

NewStorageGetHTTPBadRequest creates a StorageGetHTTPBadRequest with default headers values

func (*StorageGetHTTPBadRequest) Code

func (o *StorageGetHTTPBadRequest) Code() int

Code gets the status code for the storage get Http bad request response

func (*StorageGetHTTPBadRequest) Error

func (o *StorageGetHTTPBadRequest) Error() string

func (*StorageGetHTTPBadRequest) GetPayload

func (o *StorageGetHTTPBadRequest) GetPayload() *models.ErrResponse

func (*StorageGetHTTPBadRequest) IsClientError

func (o *StorageGetHTTPBadRequest) IsClientError() bool

IsClientError returns true when this storage get Http bad request response has a 4xx status code

func (*StorageGetHTTPBadRequest) IsCode

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

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

func (*StorageGetHTTPBadRequest) IsRedirect

func (o *StorageGetHTTPBadRequest) IsRedirect() bool

IsRedirect returns true when this storage get Http bad request response has a 3xx status code

func (*StorageGetHTTPBadRequest) IsServerError

func (o *StorageGetHTTPBadRequest) IsServerError() bool

IsServerError returns true when this storage get Http bad request response has a 5xx status code

func (*StorageGetHTTPBadRequest) IsSuccess

func (o *StorageGetHTTPBadRequest) IsSuccess() bool

IsSuccess returns true when this storage get Http bad request response has a 2xx status code

func (*StorageGetHTTPBadRequest) String

func (o *StorageGetHTTPBadRequest) String() string

type StorageGetHTTPOK

type StorageGetHTTPOK struct {
	Payload *models.Storage
}

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

Storage

func NewStorageGetHTTPOK

func NewStorageGetHTTPOK() *StorageGetHTTPOK

NewStorageGetHTTPOK creates a StorageGetHTTPOK with default headers values

func (*StorageGetHTTPOK) Code

func (o *StorageGetHTTPOK) Code() int

Code gets the status code for the storage get Http o k response

func (*StorageGetHTTPOK) Error

func (o *StorageGetHTTPOK) Error() string

func (*StorageGetHTTPOK) GetPayload

func (o *StorageGetHTTPOK) GetPayload() *models.Storage

func (*StorageGetHTTPOK) IsClientError

func (o *StorageGetHTTPOK) IsClientError() bool

IsClientError returns true when this storage get Http o k response has a 4xx status code

func (*StorageGetHTTPOK) IsCode

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

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

func (*StorageGetHTTPOK) IsRedirect

func (o *StorageGetHTTPOK) IsRedirect() bool

IsRedirect returns true when this storage get Http o k response has a 3xx status code

func (*StorageGetHTTPOK) IsServerError

func (o *StorageGetHTTPOK) IsServerError() bool

IsServerError returns true when this storage get Http o k response has a 5xx status code

func (*StorageGetHTTPOK) IsSuccess

func (o *StorageGetHTTPOK) IsSuccess() bool

IsSuccess returns true when this storage get Http o k response has a 2xx status code

func (*StorageGetHTTPOK) String

func (o *StorageGetHTTPOK) String() string

type StorageGetHTTPParams

type StorageGetHTTPParams struct {

	/* ID.

	   Storage ID

	   Format: int64
	*/
	ID int64

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

StorageGetHTTPParams contains all the parameters to send to the API endpoint

for the storage get Http operation.

Typically these are written to a http.Request.

func NewStorageGetHTTPParams

func NewStorageGetHTTPParams() *StorageGetHTTPParams

NewStorageGetHTTPParams creates a new StorageGetHTTPParams 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 NewStorageGetHTTPParamsWithContext

func NewStorageGetHTTPParamsWithContext(ctx context.Context) *StorageGetHTTPParams

NewStorageGetHTTPParamsWithContext creates a new StorageGetHTTPParams object with the ability to set a context for a request.

func NewStorageGetHTTPParamsWithHTTPClient

func NewStorageGetHTTPParamsWithHTTPClient(client *http.Client) *StorageGetHTTPParams

NewStorageGetHTTPParamsWithHTTPClient creates a new StorageGetHTTPParams object with the ability to set a custom HTTPClient for a request.

func NewStorageGetHTTPParamsWithTimeout

func NewStorageGetHTTPParamsWithTimeout(timeout time.Duration) *StorageGetHTTPParams

NewStorageGetHTTPParamsWithTimeout creates a new StorageGetHTTPParams object with the ability to set a timeout on a request.

func (*StorageGetHTTPParams) SetContext

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

SetContext adds the context to the storage get Http params

func (*StorageGetHTTPParams) SetDefaults

func (o *StorageGetHTTPParams) SetDefaults()

SetDefaults hydrates default values in the storage get Http params (not the query body).

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

func (*StorageGetHTTPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the storage get Http params

func (*StorageGetHTTPParams) SetID

func (o *StorageGetHTTPParams) SetID(id int64)

SetID adds the id to the storage get Http params

func (*StorageGetHTTPParams) SetTimeout

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

SetTimeout adds the timeout to the storage get Http params

func (*StorageGetHTTPParams) WithContext

WithContext adds the context to the storage get Http params

func (*StorageGetHTTPParams) WithDefaults

func (o *StorageGetHTTPParams) WithDefaults() *StorageGetHTTPParams

WithDefaults hydrates default values in the storage get Http params (not the query body).

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

func (*StorageGetHTTPParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the storage get Http params

func (*StorageGetHTTPParams) WithID

WithID adds the id to the storage get Http params

func (*StorageGetHTTPParams) WithTimeout

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

WithTimeout adds the timeout to the storage get Http params

func (*StorageGetHTTPParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StorageGetHTTPReader

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

StorageGetHTTPReader is a Reader for the StorageGetHTTP structure.

func (*StorageGetHTTPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StorageListHTTPV2BadRequest

type StorageListHTTPV2BadRequest struct {
	Payload *models.ErrResponse
}

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

ErrResponse

func NewStorageListHTTPV2BadRequest

func NewStorageListHTTPV2BadRequest() *StorageListHTTPV2BadRequest

NewStorageListHTTPV2BadRequest creates a StorageListHTTPV2BadRequest with default headers values

func (*StorageListHTTPV2BadRequest) Code

func (o *StorageListHTTPV2BadRequest) Code() int

Code gets the status code for the storage list Http v2 bad request response

func (*StorageListHTTPV2BadRequest) Error

func (*StorageListHTTPV2BadRequest) GetPayload

func (*StorageListHTTPV2BadRequest) IsClientError

func (o *StorageListHTTPV2BadRequest) IsClientError() bool

IsClientError returns true when this storage list Http v2 bad request response has a 4xx status code

func (*StorageListHTTPV2BadRequest) IsCode

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

IsCode returns true when this storage list Http v2 bad request response a status code equal to that given

func (*StorageListHTTPV2BadRequest) IsRedirect

func (o *StorageListHTTPV2BadRequest) IsRedirect() bool

IsRedirect returns true when this storage list Http v2 bad request response has a 3xx status code

func (*StorageListHTTPV2BadRequest) IsServerError

func (o *StorageListHTTPV2BadRequest) IsServerError() bool

IsServerError returns true when this storage list Http v2 bad request response has a 5xx status code

func (*StorageListHTTPV2BadRequest) IsSuccess

func (o *StorageListHTTPV2BadRequest) IsSuccess() bool

IsSuccess returns true when this storage list Http v2 bad request response has a 2xx status code

func (*StorageListHTTPV2BadRequest) String

func (o *StorageListHTTPV2BadRequest) String() string

type StorageListHTTPV2OK

type StorageListHTTPV2OK struct {
	Payload *models.StorageListEndpointRes
}

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

StorageListEndpointRes

func NewStorageListHTTPV2OK

func NewStorageListHTTPV2OK() *StorageListHTTPV2OK

NewStorageListHTTPV2OK creates a StorageListHTTPV2OK with default headers values

func (*StorageListHTTPV2OK) Code

func (o *StorageListHTTPV2OK) Code() int

Code gets the status code for the storage list Http v2 o k response

func (*StorageListHTTPV2OK) Error

func (o *StorageListHTTPV2OK) Error() string

func (*StorageListHTTPV2OK) GetPayload

func (*StorageListHTTPV2OK) IsClientError

func (o *StorageListHTTPV2OK) IsClientError() bool

IsClientError returns true when this storage list Http v2 o k response has a 4xx status code

func (*StorageListHTTPV2OK) IsCode

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

IsCode returns true when this storage list Http v2 o k response a status code equal to that given

func (*StorageListHTTPV2OK) IsRedirect

func (o *StorageListHTTPV2OK) IsRedirect() bool

IsRedirect returns true when this storage list Http v2 o k response has a 3xx status code

func (*StorageListHTTPV2OK) IsServerError

func (o *StorageListHTTPV2OK) IsServerError() bool

IsServerError returns true when this storage list Http v2 o k response has a 5xx status code

func (*StorageListHTTPV2OK) IsSuccess

func (o *StorageListHTTPV2OK) IsSuccess() bool

IsSuccess returns true when this storage list Http v2 o k response has a 2xx status code

func (*StorageListHTTPV2OK) String

func (o *StorageListHTTPV2OK) String() string

type StorageListHTTPV2Params

type StorageListHTTPV2Params struct {

	/* ID.

	     Specify a storage ID that should be displayed in the output.<br>
	Note: <ul>
	<li>If you type any number, all storage IDs that contain that number will be displayed</li>
	</ul>
	*/
	ID *string

	/* Limit.

	   Max number of records in response

	   Format: uint64
	*/
	Limit *uint64

	/* Location.

	   Specify a storage location name that should be displayed in the output
	*/
	Location *string

	/* Name.

	     Specify a storage name that should be displayed in the output.<br>
	Note:<ul>
	<li>If you type any letter, all storage names that contain that letter will be displayed</li>
	</ul>
	*/
	Name *string

	/* Offset.

	   Amount of records to skip before beginning to write in response

	   Format: uint64
	*/
	Offset *uint64

	/* OrderBy.

	   Field name to sort by
	*/
	OrderBy *string

	/* OrderDirection.

	     Ascending or descending order <br>
	Choose one of the values: <ul>
	<li><b>asc</b> — to set the ascending order;</li>
	<li><b>desc</b> — to set the descending order</li>
	</ul>
	*/
	OrderDirection *string

	/* ShowDeleted.

	     Specify whether you want to see deleted storages in the output.<br>
	Choose one of the values: <ul>
	<li><b>true</b> — to get details of deleted storages;</li>
	<li><b>false</b> — to get details about existing storages only</li>
	</ul>
	*/
	ShowDeleted *bool

	/* Status.

	   Specify a storage status that should be displayed in the output
	*/
	Status *string

	/* Type.

	   Specify a storage type that should be displayed in the output
	*/
	Type *string

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

StorageListHTTPV2Params contains all the parameters to send to the API endpoint

for the storage list Http v2 operation.

Typically these are written to a http.Request.

func NewStorageListHTTPV2Params

func NewStorageListHTTPV2Params() *StorageListHTTPV2Params

NewStorageListHTTPV2Params creates a new StorageListHTTPV2Params 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 NewStorageListHTTPV2ParamsWithContext

func NewStorageListHTTPV2ParamsWithContext(ctx context.Context) *StorageListHTTPV2Params

NewStorageListHTTPV2ParamsWithContext creates a new StorageListHTTPV2Params object with the ability to set a context for a request.

func NewStorageListHTTPV2ParamsWithHTTPClient

func NewStorageListHTTPV2ParamsWithHTTPClient(client *http.Client) *StorageListHTTPV2Params

NewStorageListHTTPV2ParamsWithHTTPClient creates a new StorageListHTTPV2Params object with the ability to set a custom HTTPClient for a request.

func NewStorageListHTTPV2ParamsWithTimeout

func NewStorageListHTTPV2ParamsWithTimeout(timeout time.Duration) *StorageListHTTPV2Params

NewStorageListHTTPV2ParamsWithTimeout creates a new StorageListHTTPV2Params object with the ability to set a timeout on a request.

func (*StorageListHTTPV2Params) SetContext

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

SetContext adds the context to the storage list Http v2 params

func (*StorageListHTTPV2Params) SetDefaults

func (o *StorageListHTTPV2Params) SetDefaults()

SetDefaults hydrates default values in the storage list Http v2 params (not the query body).

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

func (*StorageListHTTPV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the storage list Http v2 params

func (*StorageListHTTPV2Params) SetID

func (o *StorageListHTTPV2Params) SetID(id *string)

SetID adds the id to the storage list Http v2 params

func (*StorageListHTTPV2Params) SetLimit

func (o *StorageListHTTPV2Params) SetLimit(limit *uint64)

SetLimit adds the limit to the storage list Http v2 params

func (*StorageListHTTPV2Params) SetLocation

func (o *StorageListHTTPV2Params) SetLocation(location *string)

SetLocation adds the location to the storage list Http v2 params

func (*StorageListHTTPV2Params) SetName

func (o *StorageListHTTPV2Params) SetName(name *string)

SetName adds the name to the storage list Http v2 params

func (*StorageListHTTPV2Params) SetOffset

func (o *StorageListHTTPV2Params) SetOffset(offset *uint64)

SetOffset adds the offset to the storage list Http v2 params

func (*StorageListHTTPV2Params) SetOrderBy

func (o *StorageListHTTPV2Params) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the storage list Http v2 params

func (*StorageListHTTPV2Params) SetOrderDirection

func (o *StorageListHTTPV2Params) SetOrderDirection(orderDirection *string)

SetOrderDirection adds the orderDirection to the storage list Http v2 params

func (*StorageListHTTPV2Params) SetShowDeleted

func (o *StorageListHTTPV2Params) SetShowDeleted(showDeleted *bool)

SetShowDeleted adds the showDeleted to the storage list Http v2 params

func (*StorageListHTTPV2Params) SetStatus

func (o *StorageListHTTPV2Params) SetStatus(status *string)

SetStatus adds the status to the storage list Http v2 params

func (*StorageListHTTPV2Params) SetTimeout

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

SetTimeout adds the timeout to the storage list Http v2 params

func (*StorageListHTTPV2Params) SetType

func (o *StorageListHTTPV2Params) SetType(typeVar *string)

SetType adds the type to the storage list Http v2 params

func (*StorageListHTTPV2Params) WithContext

WithContext adds the context to the storage list Http v2 params

func (*StorageListHTTPV2Params) WithDefaults

WithDefaults hydrates default values in the storage list Http v2 params (not the query body).

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

func (*StorageListHTTPV2Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the storage list Http v2 params

func (*StorageListHTTPV2Params) WithID

WithID adds the id to the storage list Http v2 params

func (*StorageListHTTPV2Params) WithLimit

WithLimit adds the limit to the storage list Http v2 params

func (*StorageListHTTPV2Params) WithLocation

func (o *StorageListHTTPV2Params) WithLocation(location *string) *StorageListHTTPV2Params

WithLocation adds the location to the storage list Http v2 params

func (*StorageListHTTPV2Params) WithName

WithName adds the name to the storage list Http v2 params

func (*StorageListHTTPV2Params) WithOffset

func (o *StorageListHTTPV2Params) WithOffset(offset *uint64) *StorageListHTTPV2Params

WithOffset adds the offset to the storage list Http v2 params

func (*StorageListHTTPV2Params) WithOrderBy

func (o *StorageListHTTPV2Params) WithOrderBy(orderBy *string) *StorageListHTTPV2Params

WithOrderBy adds the orderBy to the storage list Http v2 params

func (*StorageListHTTPV2Params) WithOrderDirection

func (o *StorageListHTTPV2Params) WithOrderDirection(orderDirection *string) *StorageListHTTPV2Params

WithOrderDirection adds the orderDirection to the storage list Http v2 params

func (*StorageListHTTPV2Params) WithShowDeleted

func (o *StorageListHTTPV2Params) WithShowDeleted(showDeleted *bool) *StorageListHTTPV2Params

WithShowDeleted adds the showDeleted to the storage list Http v2 params

func (*StorageListHTTPV2Params) WithStatus

func (o *StorageListHTTPV2Params) WithStatus(status *string) *StorageListHTTPV2Params

WithStatus adds the status to the storage list Http v2 params

func (*StorageListHTTPV2Params) WithTimeout

WithTimeout adds the timeout to the storage list Http v2 params

func (*StorageListHTTPV2Params) WithType

WithType adds the typeVar to the storage list Http v2 params

func (*StorageListHTTPV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type StorageListHTTPV2Reader

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

StorageListHTTPV2Reader is a Reader for the StorageListHTTPV2 structure.

func (*StorageListHTTPV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StorageRestoreHTTPBadRequest

type StorageRestoreHTTPBadRequest struct {
	Payload *models.ErrResponse
}

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

ErrResponse

func NewStorageRestoreHTTPBadRequest

func NewStorageRestoreHTTPBadRequest() *StorageRestoreHTTPBadRequest

NewStorageRestoreHTTPBadRequest creates a StorageRestoreHTTPBadRequest with default headers values

func (*StorageRestoreHTTPBadRequest) Code

Code gets the status code for the storage restore Http bad request response

func (*StorageRestoreHTTPBadRequest) Error

func (*StorageRestoreHTTPBadRequest) GetPayload

func (*StorageRestoreHTTPBadRequest) IsClientError

func (o *StorageRestoreHTTPBadRequest) IsClientError() bool

IsClientError returns true when this storage restore Http bad request response has a 4xx status code

func (*StorageRestoreHTTPBadRequest) IsCode

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

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

func (*StorageRestoreHTTPBadRequest) IsRedirect

func (o *StorageRestoreHTTPBadRequest) IsRedirect() bool

IsRedirect returns true when this storage restore Http bad request response has a 3xx status code

func (*StorageRestoreHTTPBadRequest) IsServerError

func (o *StorageRestoreHTTPBadRequest) IsServerError() bool

IsServerError returns true when this storage restore Http bad request response has a 5xx status code

func (*StorageRestoreHTTPBadRequest) IsSuccess

func (o *StorageRestoreHTTPBadRequest) IsSuccess() bool

IsSuccess returns true when this storage restore Http bad request response has a 2xx status code

func (*StorageRestoreHTTPBadRequest) String

type StorageRestoreHTTPNoContent

type StorageRestoreHTTPNoContent struct {
}

StorageRestoreHTTPNoContent describes a response with status code 204, with default header values.

A SuccessResponse is a response that shows that operations was completed successfully

func NewStorageRestoreHTTPNoContent

func NewStorageRestoreHTTPNoContent() *StorageRestoreHTTPNoContent

NewStorageRestoreHTTPNoContent creates a StorageRestoreHTTPNoContent with default headers values

func (*StorageRestoreHTTPNoContent) Code

func (o *StorageRestoreHTTPNoContent) Code() int

Code gets the status code for the storage restore Http no content response

func (*StorageRestoreHTTPNoContent) Error

func (*StorageRestoreHTTPNoContent) IsClientError

func (o *StorageRestoreHTTPNoContent) IsClientError() bool

IsClientError returns true when this storage restore Http no content response has a 4xx status code

func (*StorageRestoreHTTPNoContent) IsCode

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

IsCode returns true when this storage restore Http no content response a status code equal to that given

func (*StorageRestoreHTTPNoContent) IsRedirect

func (o *StorageRestoreHTTPNoContent) IsRedirect() bool

IsRedirect returns true when this storage restore Http no content response has a 3xx status code

func (*StorageRestoreHTTPNoContent) IsServerError

func (o *StorageRestoreHTTPNoContent) IsServerError() bool

IsServerError returns true when this storage restore Http no content response has a 5xx status code

func (*StorageRestoreHTTPNoContent) IsSuccess

func (o *StorageRestoreHTTPNoContent) IsSuccess() bool

IsSuccess returns true when this storage restore Http no content response has a 2xx status code

func (*StorageRestoreHTTPNoContent) String

func (o *StorageRestoreHTTPNoContent) String() string

type StorageRestoreHTTPParams

type StorageRestoreHTTPParams struct {

	// ClientID.
	//
	// Format: int64
	ClientID *int64

	/* ID.

	   Storage ID

	   Format: int64
	*/
	ID int64

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

StorageRestoreHTTPParams contains all the parameters to send to the API endpoint

for the storage restore Http operation.

Typically these are written to a http.Request.

func NewStorageRestoreHTTPParams

func NewStorageRestoreHTTPParams() *StorageRestoreHTTPParams

NewStorageRestoreHTTPParams creates a new StorageRestoreHTTPParams 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 NewStorageRestoreHTTPParamsWithContext

func NewStorageRestoreHTTPParamsWithContext(ctx context.Context) *StorageRestoreHTTPParams

NewStorageRestoreHTTPParamsWithContext creates a new StorageRestoreHTTPParams object with the ability to set a context for a request.

func NewStorageRestoreHTTPParamsWithHTTPClient

func NewStorageRestoreHTTPParamsWithHTTPClient(client *http.Client) *StorageRestoreHTTPParams

NewStorageRestoreHTTPParamsWithHTTPClient creates a new StorageRestoreHTTPParams object with the ability to set a custom HTTPClient for a request.

func NewStorageRestoreHTTPParamsWithTimeout

func NewStorageRestoreHTTPParamsWithTimeout(timeout time.Duration) *StorageRestoreHTTPParams

NewStorageRestoreHTTPParamsWithTimeout creates a new StorageRestoreHTTPParams object with the ability to set a timeout on a request.

func (*StorageRestoreHTTPParams) SetClientID

func (o *StorageRestoreHTTPParams) SetClientID(clientID *int64)

SetClientID adds the clientId to the storage restore Http params

func (*StorageRestoreHTTPParams) SetContext

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

SetContext adds the context to the storage restore Http params

func (*StorageRestoreHTTPParams) SetDefaults

func (o *StorageRestoreHTTPParams) SetDefaults()

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

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

func (*StorageRestoreHTTPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the storage restore Http params

func (*StorageRestoreHTTPParams) SetID

func (o *StorageRestoreHTTPParams) SetID(id int64)

SetID adds the id to the storage restore Http params

func (*StorageRestoreHTTPParams) SetTimeout

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

SetTimeout adds the timeout to the storage restore Http params

func (*StorageRestoreHTTPParams) WithClientID

func (o *StorageRestoreHTTPParams) WithClientID(clientID *int64) *StorageRestoreHTTPParams

WithClientID adds the clientID to the storage restore Http params

func (*StorageRestoreHTTPParams) WithContext

WithContext adds the context to the storage restore Http params

func (*StorageRestoreHTTPParams) WithDefaults

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

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

func (*StorageRestoreHTTPParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the storage restore Http params

func (*StorageRestoreHTTPParams) WithID

WithID adds the id to the storage restore Http params

func (*StorageRestoreHTTPParams) WithTimeout

WithTimeout adds the timeout to the storage restore Http params

func (*StorageRestoreHTTPParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type StorageRestoreHTTPReader

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

StorageRestoreHTTPReader is a Reader for the StorageRestoreHTTP structure.

func (*StorageRestoreHTTPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StorageUpdateCredentialsHTTPBadRequest

type StorageUpdateCredentialsHTTPBadRequest struct {
	Payload *models.ErrResponse
}

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

ErrResponse

func NewStorageUpdateCredentialsHTTPBadRequest

func NewStorageUpdateCredentialsHTTPBadRequest() *StorageUpdateCredentialsHTTPBadRequest

NewStorageUpdateCredentialsHTTPBadRequest creates a StorageUpdateCredentialsHTTPBadRequest with default headers values

func (*StorageUpdateCredentialsHTTPBadRequest) Code

Code gets the status code for the storage update credentials Http bad request response

func (*StorageUpdateCredentialsHTTPBadRequest) Error

func (*StorageUpdateCredentialsHTTPBadRequest) GetPayload

func (*StorageUpdateCredentialsHTTPBadRequest) IsClientError

func (o *StorageUpdateCredentialsHTTPBadRequest) IsClientError() bool

IsClientError returns true when this storage update credentials Http bad request response has a 4xx status code

func (*StorageUpdateCredentialsHTTPBadRequest) IsCode

IsCode returns true when this storage update credentials Http bad request response a status code equal to that given

func (*StorageUpdateCredentialsHTTPBadRequest) IsRedirect

IsRedirect returns true when this storage update credentials Http bad request response has a 3xx status code

func (*StorageUpdateCredentialsHTTPBadRequest) IsServerError

func (o *StorageUpdateCredentialsHTTPBadRequest) IsServerError() bool

IsServerError returns true when this storage update credentials Http bad request response has a 5xx status code

func (*StorageUpdateCredentialsHTTPBadRequest) IsSuccess

IsSuccess returns true when this storage update credentials Http bad request response has a 2xx status code

func (*StorageUpdateCredentialsHTTPBadRequest) String

type StorageUpdateCredentialsHTTPBody

type StorageUpdateCredentialsHTTPBody struct {

	// Decide whether to delete the SFTP password.<br>
	// Choose one of the values:<ul>
	// <li><b>true</b> — to delete the SFTP password</li>
	// <li><b>false</b> — not to delete the SFTP password</li>
	// </ul>
	DeleteSftpPassword bool `json:"delete_sftp_password,omitempty"`

	// Specify if new S3 keys should be generated.<br>
	// Choose one of the values:<ul>
	// <li><b>true</b> — to generate the S3 keys;</li>
	// <li><b>false</b> — not to generate the S3 keys</li>
	// </ul>
	GenerateS3Keys bool `json:"generate_s3_keys,omitempty"`

	// Specify if a new SFTP password should be generated.<br>
	// Choose one of the values: <ul>
	// <li><b>true</b> — to generate the SFTP password</li>
	// <li><b>false</b> — not to generate the SFTP password</li>
	// </ul>
	GenerateSftpPassword bool `json:"generate_sftp_password,omitempty"`

	// Decide whether to reset the SFTP keys.<br>
	// Choose one of the values:<ul>
	// <li><b>true</b> — to reset the SFTP keys</li>
	// <li><b>false</b> — not to reset the SFTP keys</li>
	// </ul>
	ResetSftpKeys bool `json:"reset_sftp_keys,omitempty"`

	// Specify if a new SFTP password
	SftpPassword string `json:"sftp_password,omitempty"`
}

StorageUpdateCredentialsHTTPBody storage update credentials HTTP body swagger:model StorageUpdateCredentialsHTTPBody

func (*StorageUpdateCredentialsHTTPBody) ContextValidate

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

ContextValidate validates this storage update credentials HTTP body based on context it is used

func (*StorageUpdateCredentialsHTTPBody) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageUpdateCredentialsHTTPBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageUpdateCredentialsHTTPBody) Validate

Validate validates this storage update credentials HTTP body

type StorageUpdateCredentialsHTTPOK

type StorageUpdateCredentialsHTTPOK struct {
	Payload *models.Storage
}

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

Storage

func NewStorageUpdateCredentialsHTTPOK

func NewStorageUpdateCredentialsHTTPOK() *StorageUpdateCredentialsHTTPOK

NewStorageUpdateCredentialsHTTPOK creates a StorageUpdateCredentialsHTTPOK with default headers values

func (*StorageUpdateCredentialsHTTPOK) Code

Code gets the status code for the storage update credentials Http o k response

func (*StorageUpdateCredentialsHTTPOK) Error

func (*StorageUpdateCredentialsHTTPOK) GetPayload

func (*StorageUpdateCredentialsHTTPOK) IsClientError

func (o *StorageUpdateCredentialsHTTPOK) IsClientError() bool

IsClientError returns true when this storage update credentials Http o k response has a 4xx status code

func (*StorageUpdateCredentialsHTTPOK) IsCode

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

IsCode returns true when this storage update credentials Http o k response a status code equal to that given

func (*StorageUpdateCredentialsHTTPOK) IsRedirect

func (o *StorageUpdateCredentialsHTTPOK) IsRedirect() bool

IsRedirect returns true when this storage update credentials Http o k response has a 3xx status code

func (*StorageUpdateCredentialsHTTPOK) IsServerError

func (o *StorageUpdateCredentialsHTTPOK) IsServerError() bool

IsServerError returns true when this storage update credentials Http o k response has a 5xx status code

func (*StorageUpdateCredentialsHTTPOK) IsSuccess

func (o *StorageUpdateCredentialsHTTPOK) IsSuccess() bool

IsSuccess returns true when this storage update credentials Http o k response has a 2xx status code

func (*StorageUpdateCredentialsHTTPOK) String

type StorageUpdateCredentialsHTTPParams

type StorageUpdateCredentialsHTTPParams struct {

	// Body.
	Body StorageUpdateCredentialsHTTPBody

	/* ID.

	   Storage ID

	   Format: int64
	*/
	ID int64

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

StorageUpdateCredentialsHTTPParams contains all the parameters to send to the API endpoint

for the storage update credentials Http operation.

Typically these are written to a http.Request.

func NewStorageUpdateCredentialsHTTPParams

func NewStorageUpdateCredentialsHTTPParams() *StorageUpdateCredentialsHTTPParams

NewStorageUpdateCredentialsHTTPParams creates a new StorageUpdateCredentialsHTTPParams 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 NewStorageUpdateCredentialsHTTPParamsWithContext

func NewStorageUpdateCredentialsHTTPParamsWithContext(ctx context.Context) *StorageUpdateCredentialsHTTPParams

NewStorageUpdateCredentialsHTTPParamsWithContext creates a new StorageUpdateCredentialsHTTPParams object with the ability to set a context for a request.

func NewStorageUpdateCredentialsHTTPParamsWithHTTPClient

func NewStorageUpdateCredentialsHTTPParamsWithHTTPClient(client *http.Client) *StorageUpdateCredentialsHTTPParams

NewStorageUpdateCredentialsHTTPParamsWithHTTPClient creates a new StorageUpdateCredentialsHTTPParams object with the ability to set a custom HTTPClient for a request.

func NewStorageUpdateCredentialsHTTPParamsWithTimeout

func NewStorageUpdateCredentialsHTTPParamsWithTimeout(timeout time.Duration) *StorageUpdateCredentialsHTTPParams

NewStorageUpdateCredentialsHTTPParamsWithTimeout creates a new StorageUpdateCredentialsHTTPParams object with the ability to set a timeout on a request.

func (*StorageUpdateCredentialsHTTPParams) SetBody

SetBody adds the body to the storage update credentials Http params

func (*StorageUpdateCredentialsHTTPParams) SetContext

SetContext adds the context to the storage update credentials Http params

func (*StorageUpdateCredentialsHTTPParams) SetDefaults

func (o *StorageUpdateCredentialsHTTPParams) SetDefaults()

SetDefaults hydrates default values in the storage update credentials Http params (not the query body).

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

func (*StorageUpdateCredentialsHTTPParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the storage update credentials Http params

func (*StorageUpdateCredentialsHTTPParams) SetID

SetID adds the id to the storage update credentials Http params

func (*StorageUpdateCredentialsHTTPParams) SetTimeout

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

SetTimeout adds the timeout to the storage update credentials Http params

func (*StorageUpdateCredentialsHTTPParams) WithBody

WithBody adds the body to the storage update credentials Http params

func (*StorageUpdateCredentialsHTTPParams) WithContext

WithContext adds the context to the storage update credentials Http params

func (*StorageUpdateCredentialsHTTPParams) WithDefaults

WithDefaults hydrates default values in the storage update credentials Http params (not the query body).

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

func (*StorageUpdateCredentialsHTTPParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the storage update credentials Http params

func (*StorageUpdateCredentialsHTTPParams) WithID

WithID adds the id to the storage update credentials Http params

func (*StorageUpdateCredentialsHTTPParams) WithTimeout

WithTimeout adds the timeout to the storage update credentials Http params

func (*StorageUpdateCredentialsHTTPParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type StorageUpdateCredentialsHTTPReader

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

StorageUpdateCredentialsHTTPReader is a Reader for the StorageUpdateCredentialsHTTP structure.

func (*StorageUpdateCredentialsHTTPReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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