Documentation ¶
Index ¶
- Constants
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) StorageCreateHTTP(params *StorageCreateHTTPParams, authInfo runtime.ClientAuthInfoWriter, ...) (*StorageCreateHTTPOK, error)
- func (a *Client) StorageDeleteHTTP(params *StorageDeleteHTTPParams, authInfo runtime.ClientAuthInfoWriter, ...) (*StorageDeleteHTTPNoContent, error)
- func (a *Client) StorageGetHTTP(params *StorageGetHTTPParams, authInfo runtime.ClientAuthInfoWriter, ...) (*StorageGetHTTPOK, error)
- func (a *Client) StorageListHTTPV2(params *StorageListHTTPV2Params, authInfo runtime.ClientAuthInfoWriter, ...) (*StorageListHTTPV2OK, error)
- func (a *Client) StorageRestoreHTTP(params *StorageRestoreHTTPParams, authInfo runtime.ClientAuthInfoWriter, ...) (*StorageRestoreHTTPNoContent, error)
- func (a *Client) StorageUpdateCredentialsHTTP(params *StorageUpdateCredentialsHTTPParams, ...) (*StorageUpdateCredentialsHTTPOK, error)
- type ClientOption
- type ClientService
- type StorageCreateHTTPBadRequest
- func (o *StorageCreateHTTPBadRequest) Code() int
- func (o *StorageCreateHTTPBadRequest) Error() string
- func (o *StorageCreateHTTPBadRequest) GetPayload() *models.ErrResponse
- func (o *StorageCreateHTTPBadRequest) IsClientError() bool
- func (o *StorageCreateHTTPBadRequest) IsCode(code int) bool
- func (o *StorageCreateHTTPBadRequest) IsRedirect() bool
- func (o *StorageCreateHTTPBadRequest) IsServerError() bool
- func (o *StorageCreateHTTPBadRequest) IsSuccess() bool
- func (o *StorageCreateHTTPBadRequest) String() string
- type StorageCreateHTTPBody
- type StorageCreateHTTPConflict
- func (o *StorageCreateHTTPConflict) Code() int
- func (o *StorageCreateHTTPConflict) Error() string
- func (o *StorageCreateHTTPConflict) GetPayload() *models.ErrResponse
- func (o *StorageCreateHTTPConflict) IsClientError() bool
- func (o *StorageCreateHTTPConflict) IsCode(code int) bool
- func (o *StorageCreateHTTPConflict) IsRedirect() bool
- func (o *StorageCreateHTTPConflict) IsServerError() bool
- func (o *StorageCreateHTTPConflict) IsSuccess() bool
- func (o *StorageCreateHTTPConflict) String() string
- type StorageCreateHTTPOK
- func (o *StorageCreateHTTPOK) Code() int
- func (o *StorageCreateHTTPOK) Error() string
- func (o *StorageCreateHTTPOK) GetPayload() *models.Storage
- func (o *StorageCreateHTTPOK) IsClientError() bool
- func (o *StorageCreateHTTPOK) IsCode(code int) bool
- func (o *StorageCreateHTTPOK) IsRedirect() bool
- func (o *StorageCreateHTTPOK) IsServerError() bool
- func (o *StorageCreateHTTPOK) IsSuccess() bool
- func (o *StorageCreateHTTPOK) String() string
- type StorageCreateHTTPParams
- func NewStorageCreateHTTPParams() *StorageCreateHTTPParams
- func NewStorageCreateHTTPParamsWithContext(ctx context.Context) *StorageCreateHTTPParams
- func NewStorageCreateHTTPParamsWithHTTPClient(client *http.Client) *StorageCreateHTTPParams
- func NewStorageCreateHTTPParamsWithTimeout(timeout time.Duration) *StorageCreateHTTPParams
- func (o *StorageCreateHTTPParams) SetBody(body StorageCreateHTTPBody)
- func (o *StorageCreateHTTPParams) SetContext(ctx context.Context)
- func (o *StorageCreateHTTPParams) SetDefaults()
- func (o *StorageCreateHTTPParams) SetHTTPClient(client *http.Client)
- func (o *StorageCreateHTTPParams) SetTimeout(timeout time.Duration)
- func (o *StorageCreateHTTPParams) WithBody(body StorageCreateHTTPBody) *StorageCreateHTTPParams
- func (o *StorageCreateHTTPParams) WithContext(ctx context.Context) *StorageCreateHTTPParams
- func (o *StorageCreateHTTPParams) WithDefaults() *StorageCreateHTTPParams
- func (o *StorageCreateHTTPParams) WithHTTPClient(client *http.Client) *StorageCreateHTTPParams
- func (o *StorageCreateHTTPParams) WithTimeout(timeout time.Duration) *StorageCreateHTTPParams
- func (o *StorageCreateHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StorageCreateHTTPReader
- type StorageDeleteHTTPBadRequest
- func (o *StorageDeleteHTTPBadRequest) Code() int
- func (o *StorageDeleteHTTPBadRequest) Error() string
- func (o *StorageDeleteHTTPBadRequest) GetPayload() *models.ErrResponse
- func (o *StorageDeleteHTTPBadRequest) IsClientError() bool
- func (o *StorageDeleteHTTPBadRequest) IsCode(code int) bool
- func (o *StorageDeleteHTTPBadRequest) IsRedirect() bool
- func (o *StorageDeleteHTTPBadRequest) IsServerError() bool
- func (o *StorageDeleteHTTPBadRequest) IsSuccess() bool
- func (o *StorageDeleteHTTPBadRequest) String() string
- type StorageDeleteHTTPNoContent
- func (o *StorageDeleteHTTPNoContent) Code() int
- func (o *StorageDeleteHTTPNoContent) Error() string
- func (o *StorageDeleteHTTPNoContent) IsClientError() bool
- func (o *StorageDeleteHTTPNoContent) IsCode(code int) bool
- func (o *StorageDeleteHTTPNoContent) IsRedirect() bool
- func (o *StorageDeleteHTTPNoContent) IsServerError() bool
- func (o *StorageDeleteHTTPNoContent) IsSuccess() bool
- func (o *StorageDeleteHTTPNoContent) String() string
- type StorageDeleteHTTPParams
- func NewStorageDeleteHTTPParams() *StorageDeleteHTTPParams
- func NewStorageDeleteHTTPParamsWithContext(ctx context.Context) *StorageDeleteHTTPParams
- func NewStorageDeleteHTTPParamsWithHTTPClient(client *http.Client) *StorageDeleteHTTPParams
- func NewStorageDeleteHTTPParamsWithTimeout(timeout time.Duration) *StorageDeleteHTTPParams
- func (o *StorageDeleteHTTPParams) SetContext(ctx context.Context)
- func (o *StorageDeleteHTTPParams) SetDefaults()
- func (o *StorageDeleteHTTPParams) SetHTTPClient(client *http.Client)
- func (o *StorageDeleteHTTPParams) SetID(id int64)
- func (o *StorageDeleteHTTPParams) SetTimeout(timeout time.Duration)
- func (o *StorageDeleteHTTPParams) WithContext(ctx context.Context) *StorageDeleteHTTPParams
- func (o *StorageDeleteHTTPParams) WithDefaults() *StorageDeleteHTTPParams
- func (o *StorageDeleteHTTPParams) WithHTTPClient(client *http.Client) *StorageDeleteHTTPParams
- func (o *StorageDeleteHTTPParams) WithID(id int64) *StorageDeleteHTTPParams
- func (o *StorageDeleteHTTPParams) WithTimeout(timeout time.Duration) *StorageDeleteHTTPParams
- func (o *StorageDeleteHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StorageDeleteHTTPReader
- type StorageGetHTTPBadRequest
- func (o *StorageGetHTTPBadRequest) Code() int
- func (o *StorageGetHTTPBadRequest) Error() string
- func (o *StorageGetHTTPBadRequest) GetPayload() *models.ErrResponse
- func (o *StorageGetHTTPBadRequest) IsClientError() bool
- func (o *StorageGetHTTPBadRequest) IsCode(code int) bool
- func (o *StorageGetHTTPBadRequest) IsRedirect() bool
- func (o *StorageGetHTTPBadRequest) IsServerError() bool
- func (o *StorageGetHTTPBadRequest) IsSuccess() bool
- func (o *StorageGetHTTPBadRequest) String() string
- type StorageGetHTTPOK
- func (o *StorageGetHTTPOK) Code() int
- func (o *StorageGetHTTPOK) Error() string
- func (o *StorageGetHTTPOK) GetPayload() *models.Storage
- func (o *StorageGetHTTPOK) IsClientError() bool
- func (o *StorageGetHTTPOK) IsCode(code int) bool
- func (o *StorageGetHTTPOK) IsRedirect() bool
- func (o *StorageGetHTTPOK) IsServerError() bool
- func (o *StorageGetHTTPOK) IsSuccess() bool
- func (o *StorageGetHTTPOK) String() string
- type StorageGetHTTPParams
- func NewStorageGetHTTPParams() *StorageGetHTTPParams
- func NewStorageGetHTTPParamsWithContext(ctx context.Context) *StorageGetHTTPParams
- func NewStorageGetHTTPParamsWithHTTPClient(client *http.Client) *StorageGetHTTPParams
- func NewStorageGetHTTPParamsWithTimeout(timeout time.Duration) *StorageGetHTTPParams
- func (o *StorageGetHTTPParams) SetContext(ctx context.Context)
- func (o *StorageGetHTTPParams) SetDefaults()
- func (o *StorageGetHTTPParams) SetHTTPClient(client *http.Client)
- func (o *StorageGetHTTPParams) SetID(id int64)
- func (o *StorageGetHTTPParams) SetTimeout(timeout time.Duration)
- func (o *StorageGetHTTPParams) WithContext(ctx context.Context) *StorageGetHTTPParams
- func (o *StorageGetHTTPParams) WithDefaults() *StorageGetHTTPParams
- func (o *StorageGetHTTPParams) WithHTTPClient(client *http.Client) *StorageGetHTTPParams
- func (o *StorageGetHTTPParams) WithID(id int64) *StorageGetHTTPParams
- func (o *StorageGetHTTPParams) WithTimeout(timeout time.Duration) *StorageGetHTTPParams
- func (o *StorageGetHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StorageGetHTTPReader
- type StorageListHTTPV2BadRequest
- func (o *StorageListHTTPV2BadRequest) Code() int
- func (o *StorageListHTTPV2BadRequest) Error() string
- func (o *StorageListHTTPV2BadRequest) GetPayload() *models.ErrResponse
- func (o *StorageListHTTPV2BadRequest) IsClientError() bool
- func (o *StorageListHTTPV2BadRequest) IsCode(code int) bool
- func (o *StorageListHTTPV2BadRequest) IsRedirect() bool
- func (o *StorageListHTTPV2BadRequest) IsServerError() bool
- func (o *StorageListHTTPV2BadRequest) IsSuccess() bool
- func (o *StorageListHTTPV2BadRequest) String() string
- type StorageListHTTPV2OK
- func (o *StorageListHTTPV2OK) Code() int
- func (o *StorageListHTTPV2OK) Error() string
- func (o *StorageListHTTPV2OK) GetPayload() *models.StorageListEndpointRes
- func (o *StorageListHTTPV2OK) IsClientError() bool
- func (o *StorageListHTTPV2OK) IsCode(code int) bool
- func (o *StorageListHTTPV2OK) IsRedirect() bool
- func (o *StorageListHTTPV2OK) IsServerError() bool
- func (o *StorageListHTTPV2OK) IsSuccess() bool
- func (o *StorageListHTTPV2OK) String() string
- type StorageListHTTPV2Params
- func NewStorageListHTTPV2Params() *StorageListHTTPV2Params
- func NewStorageListHTTPV2ParamsWithContext(ctx context.Context) *StorageListHTTPV2Params
- func NewStorageListHTTPV2ParamsWithHTTPClient(client *http.Client) *StorageListHTTPV2Params
- func NewStorageListHTTPV2ParamsWithTimeout(timeout time.Duration) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) SetContext(ctx context.Context)
- func (o *StorageListHTTPV2Params) SetDefaults()
- func (o *StorageListHTTPV2Params) SetHTTPClient(client *http.Client)
- func (o *StorageListHTTPV2Params) SetID(id *string)
- func (o *StorageListHTTPV2Params) SetLimit(limit *uint64)
- func (o *StorageListHTTPV2Params) SetLocation(location *string)
- func (o *StorageListHTTPV2Params) SetName(name *string)
- func (o *StorageListHTTPV2Params) SetOffset(offset *uint64)
- func (o *StorageListHTTPV2Params) SetOrderBy(orderBy *string)
- func (o *StorageListHTTPV2Params) SetOrderDirection(orderDirection *string)
- func (o *StorageListHTTPV2Params) SetShowDeleted(showDeleted *bool)
- func (o *StorageListHTTPV2Params) SetStatus(status *string)
- func (o *StorageListHTTPV2Params) SetTimeout(timeout time.Duration)
- func (o *StorageListHTTPV2Params) SetType(typeVar *string)
- func (o *StorageListHTTPV2Params) WithContext(ctx context.Context) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WithDefaults() *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WithHTTPClient(client *http.Client) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WithID(id *string) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WithLimit(limit *uint64) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WithLocation(location *string) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WithName(name *string) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WithOffset(offset *uint64) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WithOrderBy(orderBy *string) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WithOrderDirection(orderDirection *string) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WithShowDeleted(showDeleted *bool) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WithStatus(status *string) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WithTimeout(timeout time.Duration) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WithType(typeVar *string) *StorageListHTTPV2Params
- func (o *StorageListHTTPV2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StorageListHTTPV2Reader
- type StorageRestoreHTTPBadRequest
- func (o *StorageRestoreHTTPBadRequest) Code() int
- func (o *StorageRestoreHTTPBadRequest) Error() string
- func (o *StorageRestoreHTTPBadRequest) GetPayload() *models.ErrResponse
- func (o *StorageRestoreHTTPBadRequest) IsClientError() bool
- func (o *StorageRestoreHTTPBadRequest) IsCode(code int) bool
- func (o *StorageRestoreHTTPBadRequest) IsRedirect() bool
- func (o *StorageRestoreHTTPBadRequest) IsServerError() bool
- func (o *StorageRestoreHTTPBadRequest) IsSuccess() bool
- func (o *StorageRestoreHTTPBadRequest) String() string
- type StorageRestoreHTTPNoContent
- func (o *StorageRestoreHTTPNoContent) Code() int
- func (o *StorageRestoreHTTPNoContent) Error() string
- func (o *StorageRestoreHTTPNoContent) IsClientError() bool
- func (o *StorageRestoreHTTPNoContent) IsCode(code int) bool
- func (o *StorageRestoreHTTPNoContent) IsRedirect() bool
- func (o *StorageRestoreHTTPNoContent) IsServerError() bool
- func (o *StorageRestoreHTTPNoContent) IsSuccess() bool
- func (o *StorageRestoreHTTPNoContent) String() string
- type StorageRestoreHTTPParams
- func NewStorageRestoreHTTPParams() *StorageRestoreHTTPParams
- func NewStorageRestoreHTTPParamsWithContext(ctx context.Context) *StorageRestoreHTTPParams
- func NewStorageRestoreHTTPParamsWithHTTPClient(client *http.Client) *StorageRestoreHTTPParams
- func NewStorageRestoreHTTPParamsWithTimeout(timeout time.Duration) *StorageRestoreHTTPParams
- func (o *StorageRestoreHTTPParams) SetClientID(clientID *int64)
- func (o *StorageRestoreHTTPParams) SetContext(ctx context.Context)
- func (o *StorageRestoreHTTPParams) SetDefaults()
- func (o *StorageRestoreHTTPParams) SetHTTPClient(client *http.Client)
- func (o *StorageRestoreHTTPParams) SetID(id int64)
- func (o *StorageRestoreHTTPParams) SetTimeout(timeout time.Duration)
- func (o *StorageRestoreHTTPParams) WithClientID(clientID *int64) *StorageRestoreHTTPParams
- func (o *StorageRestoreHTTPParams) WithContext(ctx context.Context) *StorageRestoreHTTPParams
- func (o *StorageRestoreHTTPParams) WithDefaults() *StorageRestoreHTTPParams
- func (o *StorageRestoreHTTPParams) WithHTTPClient(client *http.Client) *StorageRestoreHTTPParams
- func (o *StorageRestoreHTTPParams) WithID(id int64) *StorageRestoreHTTPParams
- func (o *StorageRestoreHTTPParams) WithTimeout(timeout time.Duration) *StorageRestoreHTTPParams
- func (o *StorageRestoreHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StorageRestoreHTTPReader
- type StorageUpdateCredentialsHTTPBadRequest
- func (o *StorageUpdateCredentialsHTTPBadRequest) Code() int
- func (o *StorageUpdateCredentialsHTTPBadRequest) Error() string
- func (o *StorageUpdateCredentialsHTTPBadRequest) GetPayload() *models.ErrResponse
- func (o *StorageUpdateCredentialsHTTPBadRequest) IsClientError() bool
- func (o *StorageUpdateCredentialsHTTPBadRequest) IsCode(code int) bool
- func (o *StorageUpdateCredentialsHTTPBadRequest) IsRedirect() bool
- func (o *StorageUpdateCredentialsHTTPBadRequest) IsServerError() bool
- func (o *StorageUpdateCredentialsHTTPBadRequest) IsSuccess() bool
- func (o *StorageUpdateCredentialsHTTPBadRequest) String() string
- type StorageUpdateCredentialsHTTPBody
- func (o *StorageUpdateCredentialsHTTPBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *StorageUpdateCredentialsHTTPBody) MarshalBinary() ([]byte, error)
- func (o *StorageUpdateCredentialsHTTPBody) UnmarshalBinary(b []byte) error
- func (o *StorageUpdateCredentialsHTTPBody) Validate(formats strfmt.Registry) error
- type StorageUpdateCredentialsHTTPOK
- func (o *StorageUpdateCredentialsHTTPOK) Code() int
- func (o *StorageUpdateCredentialsHTTPOK) Error() string
- func (o *StorageUpdateCredentialsHTTPOK) GetPayload() *models.Storage
- func (o *StorageUpdateCredentialsHTTPOK) IsClientError() bool
- func (o *StorageUpdateCredentialsHTTPOK) IsCode(code int) bool
- func (o *StorageUpdateCredentialsHTTPOK) IsRedirect() bool
- func (o *StorageUpdateCredentialsHTTPOK) IsServerError() bool
- func (o *StorageUpdateCredentialsHTTPOK) IsSuccess() bool
- func (o *StorageUpdateCredentialsHTTPOK) String() string
- type StorageUpdateCredentialsHTTPParams
- func NewStorageUpdateCredentialsHTTPParams() *StorageUpdateCredentialsHTTPParams
- func NewStorageUpdateCredentialsHTTPParamsWithContext(ctx context.Context) *StorageUpdateCredentialsHTTPParams
- func NewStorageUpdateCredentialsHTTPParamsWithHTTPClient(client *http.Client) *StorageUpdateCredentialsHTTPParams
- func NewStorageUpdateCredentialsHTTPParamsWithTimeout(timeout time.Duration) *StorageUpdateCredentialsHTTPParams
- func (o *StorageUpdateCredentialsHTTPParams) SetBody(body StorageUpdateCredentialsHTTPBody)
- func (o *StorageUpdateCredentialsHTTPParams) SetContext(ctx context.Context)
- func (o *StorageUpdateCredentialsHTTPParams) SetDefaults()
- func (o *StorageUpdateCredentialsHTTPParams) SetHTTPClient(client *http.Client)
- func (o *StorageUpdateCredentialsHTTPParams) SetID(id int64)
- func (o *StorageUpdateCredentialsHTTPParams) SetTimeout(timeout time.Duration)
- func (o *StorageUpdateCredentialsHTTPParams) WithBody(body StorageUpdateCredentialsHTTPBody) *StorageUpdateCredentialsHTTPParams
- func (o *StorageUpdateCredentialsHTTPParams) WithContext(ctx context.Context) *StorageUpdateCredentialsHTTPParams
- func (o *StorageUpdateCredentialsHTTPParams) WithDefaults() *StorageUpdateCredentialsHTTPParams
- func (o *StorageUpdateCredentialsHTTPParams) WithHTTPClient(client *http.Client) *StorageUpdateCredentialsHTTPParams
- func (o *StorageUpdateCredentialsHTTPParams) WithID(id int64) *StorageUpdateCredentialsHTTPParams
- func (o *StorageUpdateCredentialsHTTPParams) WithTimeout(timeout time.Duration) *StorageUpdateCredentialsHTTPParams
- func (o *StorageUpdateCredentialsHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StorageUpdateCredentialsHTTPReader
Constants ¶
const ( // StorageCreateHTTPBodyLocationSDashDt2 captures enum value "s-dt2" StorageCreateHTTPBodyLocationSDashDt2 string = "s-dt2" )
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 (o *StorageCreateHTTPBadRequest) Error() string
func (*StorageCreateHTTPBadRequest) GetPayload ¶
func (o *StorageCreateHTTPBadRequest) GetPayload() *models.ErrResponse
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 ¶
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
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 ¶
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 ¶
func (o *StorageCreateHTTPParams) SetBody(body StorageCreateHTTPBody)
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 ¶
func (o *StorageCreateHTTPParams) WithBody(body StorageCreateHTTPBody) *StorageCreateHTTPParams
WithBody adds the body to the storage create Http params
func (*StorageCreateHTTPParams) WithContext ¶
func (o *StorageCreateHTTPParams) WithContext(ctx context.Context) *StorageCreateHTTPParams
WithContext adds the context to the storage create Http params
func (*StorageCreateHTTPParams) WithDefaults ¶
func (o *StorageCreateHTTPParams) WithDefaults() *StorageCreateHTTPParams
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 ¶
func (o *StorageCreateHTTPParams) WithTimeout(timeout time.Duration) *StorageCreateHTTPParams
WithTimeout adds the timeout to the storage create Http params
func (*StorageCreateHTTPParams) WriteToRequest ¶
func (o *StorageCreateHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *StorageDeleteHTTPBadRequest) Error() string
func (*StorageDeleteHTTPBadRequest) GetPayload ¶
func (o *StorageDeleteHTTPBadRequest) GetPayload() *models.ErrResponse
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 (o *StorageDeleteHTTPNoContent) Error() string
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 ¶
func (o *StorageDeleteHTTPParams) WithContext(ctx context.Context) *StorageDeleteHTTPParams
WithContext adds the context to the storage delete Http params
func (*StorageDeleteHTTPParams) WithDefaults ¶
func (o *StorageDeleteHTTPParams) WithDefaults() *StorageDeleteHTTPParams
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 ¶
func (o *StorageDeleteHTTPParams) WithID(id int64) *StorageDeleteHTTPParams
WithID adds the id to the storage delete Http params
func (*StorageDeleteHTTPParams) WithTimeout ¶
func (o *StorageDeleteHTTPParams) WithTimeout(timeout time.Duration) *StorageDeleteHTTPParams
WithTimeout adds the timeout to the storage delete Http params
func (*StorageDeleteHTTPParams) WriteToRequest ¶
func (o *StorageDeleteHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *StorageGetHTTPParams) WithContext(ctx context.Context) *StorageGetHTTPParams
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 ¶
func (o *StorageGetHTTPParams) WithID(id int64) *StorageGetHTTPParams
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 (o *StorageListHTTPV2BadRequest) Error() string
func (*StorageListHTTPV2BadRequest) GetPayload ¶
func (o *StorageListHTTPV2BadRequest) GetPayload() *models.ErrResponse
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 (o *StorageListHTTPV2OK) GetPayload() *models.StorageListEndpointRes
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 ¶
func (o *StorageListHTTPV2Params) WithContext(ctx context.Context) *StorageListHTTPV2Params
WithContext adds the context to the storage list Http v2 params
func (*StorageListHTTPV2Params) WithDefaults ¶
func (o *StorageListHTTPV2Params) WithDefaults() *StorageListHTTPV2Params
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 ¶
func (o *StorageListHTTPV2Params) WithID(id *string) *StorageListHTTPV2Params
WithID adds the id to the storage list Http v2 params
func (*StorageListHTTPV2Params) WithLimit ¶
func (o *StorageListHTTPV2Params) WithLimit(limit *uint64) *StorageListHTTPV2Params
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 ¶
func (o *StorageListHTTPV2Params) WithName(name *string) *StorageListHTTPV2Params
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 ¶
func (o *StorageListHTTPV2Params) WithTimeout(timeout time.Duration) *StorageListHTTPV2Params
WithTimeout adds the timeout to the storage list Http v2 params
func (*StorageListHTTPV2Params) WithType ¶
func (o *StorageListHTTPV2Params) WithType(typeVar *string) *StorageListHTTPV2Params
WithType adds the typeVar to the storage list Http v2 params
func (*StorageListHTTPV2Params) WriteToRequest ¶
func (o *StorageListHTTPV2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *StorageRestoreHTTPBadRequest) Code() int
Code gets the status code for the storage restore Http bad request response
func (*StorageRestoreHTTPBadRequest) Error ¶
func (o *StorageRestoreHTTPBadRequest) Error() string
func (*StorageRestoreHTTPBadRequest) GetPayload ¶
func (o *StorageRestoreHTTPBadRequest) GetPayload() *models.ErrResponse
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 ¶
func (o *StorageRestoreHTTPBadRequest) String() 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 (o *StorageRestoreHTTPNoContent) Error() string
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 ¶
func (o *StorageRestoreHTTPParams) WithContext(ctx context.Context) *StorageRestoreHTTPParams
WithContext adds the context to the storage restore Http params
func (*StorageRestoreHTTPParams) WithDefaults ¶
func (o *StorageRestoreHTTPParams) WithDefaults() *StorageRestoreHTTPParams
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 ¶
func (o *StorageRestoreHTTPParams) WithID(id int64) *StorageRestoreHTTPParams
WithID adds the id to the storage restore Http params
func (*StorageRestoreHTTPParams) WithTimeout ¶
func (o *StorageRestoreHTTPParams) WithTimeout(timeout time.Duration) *StorageRestoreHTTPParams
WithTimeout adds the timeout to the storage restore Http params
func (*StorageRestoreHTTPParams) WriteToRequest ¶
func (o *StorageRestoreHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *StorageUpdateCredentialsHTTPBadRequest) Code() int
Code gets the status code for the storage update credentials Http bad request response
func (*StorageUpdateCredentialsHTTPBadRequest) Error ¶
func (o *StorageUpdateCredentialsHTTPBadRequest) Error() string
func (*StorageUpdateCredentialsHTTPBadRequest) GetPayload ¶
func (o *StorageUpdateCredentialsHTTPBadRequest) GetPayload() *models.ErrResponse
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 ¶
func (o *StorageUpdateCredentialsHTTPBadRequest) IsCode(code int) bool
IsCode returns true when this storage update credentials Http bad request response a status code equal to that given
func (*StorageUpdateCredentialsHTTPBadRequest) IsRedirect ¶
func (o *StorageUpdateCredentialsHTTPBadRequest) IsRedirect() bool
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 ¶
func (o *StorageUpdateCredentialsHTTPBadRequest) IsSuccess() bool
IsSuccess returns true when this storage update credentials Http bad request response has a 2xx status code
func (*StorageUpdateCredentialsHTTPBadRequest) String ¶
func (o *StorageUpdateCredentialsHTTPBadRequest) String() 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
type StorageUpdateCredentialsHTTPOK ¶
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 ¶
func (o *StorageUpdateCredentialsHTTPOK) Code() int
Code gets the status code for the storage update credentials Http o k response
func (*StorageUpdateCredentialsHTTPOK) Error ¶
func (o *StorageUpdateCredentialsHTTPOK) Error() string
func (*StorageUpdateCredentialsHTTPOK) GetPayload ¶
func (o *StorageUpdateCredentialsHTTPOK) GetPayload() *models.Storage
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 ¶
func (o *StorageUpdateCredentialsHTTPOK) String() 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 ¶
func (o *StorageUpdateCredentialsHTTPParams) SetBody(body StorageUpdateCredentialsHTTPBody)
SetBody adds the body to the storage update credentials Http params
func (*StorageUpdateCredentialsHTTPParams) SetContext ¶
func (o *StorageUpdateCredentialsHTTPParams) SetContext(ctx context.Context)
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 ¶
func (o *StorageUpdateCredentialsHTTPParams) SetID(id int64)
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 ¶
func (o *StorageUpdateCredentialsHTTPParams) WithBody(body StorageUpdateCredentialsHTTPBody) *StorageUpdateCredentialsHTTPParams
WithBody adds the body to the storage update credentials Http params
func (*StorageUpdateCredentialsHTTPParams) WithContext ¶
func (o *StorageUpdateCredentialsHTTPParams) WithContext(ctx context.Context) *StorageUpdateCredentialsHTTPParams
WithContext adds the context to the storage update credentials Http params
func (*StorageUpdateCredentialsHTTPParams) WithDefaults ¶
func (o *StorageUpdateCredentialsHTTPParams) WithDefaults() *StorageUpdateCredentialsHTTPParams
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 ¶
func (o *StorageUpdateCredentialsHTTPParams) WithHTTPClient(client *http.Client) *StorageUpdateCredentialsHTTPParams
WithHTTPClient adds the HTTPClient to the storage update credentials Http params
func (*StorageUpdateCredentialsHTTPParams) WithID ¶
func (o *StorageUpdateCredentialsHTTPParams) WithID(id int64) *StorageUpdateCredentialsHTTPParams
WithID adds the id to the storage update credentials Http params
func (*StorageUpdateCredentialsHTTPParams) WithTimeout ¶
func (o *StorageUpdateCredentialsHTTPParams) WithTimeout(timeout time.Duration) *StorageUpdateCredentialsHTTPParams
WithTimeout adds the timeout to the storage update credentials Http params
func (*StorageUpdateCredentialsHTTPParams) WriteToRequest ¶
func (o *StorageUpdateCredentialsHTTPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- storage_create_http_parameters.go
- storage_create_http_responses.go
- storage_delete_http_parameters.go
- storage_delete_http_responses.go
- storage_get_http_parameters.go
- storage_get_http_responses.go
- storage_list_http_v2_parameters.go
- storage_list_http_v2_responses.go
- storage_restore_http_parameters.go
- storage_restore_http_responses.go
- storage_update_credentials_http_parameters.go
- storage_update_credentials_http_responses.go
- storages_client.go