Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type CreateOrUpdateBackupCredentialsDefault
- type CreateOrUpdateBackupCredentialsForbidden
- type CreateOrUpdateBackupCredentialsOK
- type CreateOrUpdateBackupCredentialsParams
- func NewCreateOrUpdateBackupCredentialsParams() *CreateOrUpdateBackupCredentialsParams
- func NewCreateOrUpdateBackupCredentialsParamsWithContext(ctx context.Context) *CreateOrUpdateBackupCredentialsParams
- func NewCreateOrUpdateBackupCredentialsParamsWithHTTPClient(client *http.Client) *CreateOrUpdateBackupCredentialsParams
- func NewCreateOrUpdateBackupCredentialsParamsWithTimeout(timeout time.Duration) *CreateOrUpdateBackupCredentialsParams
- func (o *CreateOrUpdateBackupCredentialsParams) SetBody(body *models.BcBody)
- func (o *CreateOrUpdateBackupCredentialsParams) SetContext(ctx context.Context)
- func (o *CreateOrUpdateBackupCredentialsParams) SetDefaults()
- func (o *CreateOrUpdateBackupCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *CreateOrUpdateBackupCredentialsParams) SetSeedName(seedName string)
- func (o *CreateOrUpdateBackupCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *CreateOrUpdateBackupCredentialsParams) WithBody(body *models.BcBody) *CreateOrUpdateBackupCredentialsParams
- func (o *CreateOrUpdateBackupCredentialsParams) WithContext(ctx context.Context) *CreateOrUpdateBackupCredentialsParams
- func (o *CreateOrUpdateBackupCredentialsParams) WithDefaults() *CreateOrUpdateBackupCredentialsParams
- func (o *CreateOrUpdateBackupCredentialsParams) WithHTTPClient(client *http.Client) *CreateOrUpdateBackupCredentialsParams
- func (o *CreateOrUpdateBackupCredentialsParams) WithSeedName(seedName string) *CreateOrUpdateBackupCredentialsParams
- func (o *CreateOrUpdateBackupCredentialsParams) WithTimeout(timeout time.Duration) *CreateOrUpdateBackupCredentialsParams
- func (o *CreateOrUpdateBackupCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateOrUpdateBackupCredentialsReader
- type CreateOrUpdateBackupCredentialsUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for backupcredentials API
func (*Client) CreateOrUpdateBackupCredentials ¶
func (a *Client) CreateOrUpdateBackupCredentials(params *CreateOrUpdateBackupCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateOrUpdateBackupCredentialsOK, error)
CreateOrUpdateBackupCredentials Creates or updates backup credentials for a given seed
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateOrUpdateBackupCredentials(params *CreateOrUpdateBackupCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateOrUpdateBackupCredentialsOK, 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 backupcredentials API client.
type CreateOrUpdateBackupCredentialsDefault ¶
type CreateOrUpdateBackupCredentialsDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
CreateOrUpdateBackupCredentialsDefault describes a response with status code -1, with default header values.
errorResponse
func NewCreateOrUpdateBackupCredentialsDefault ¶
func NewCreateOrUpdateBackupCredentialsDefault(code int) *CreateOrUpdateBackupCredentialsDefault
NewCreateOrUpdateBackupCredentialsDefault creates a CreateOrUpdateBackupCredentialsDefault with default headers values
func (*CreateOrUpdateBackupCredentialsDefault) Code ¶
func (o *CreateOrUpdateBackupCredentialsDefault) Code() int
Code gets the status code for the create or update backup credentials default response
func (*CreateOrUpdateBackupCredentialsDefault) Error ¶
func (o *CreateOrUpdateBackupCredentialsDefault) Error() string
func (*CreateOrUpdateBackupCredentialsDefault) GetPayload ¶
func (o *CreateOrUpdateBackupCredentialsDefault) GetPayload() *models.ErrorResponse
type CreateOrUpdateBackupCredentialsForbidden ¶
type CreateOrUpdateBackupCredentialsForbidden struct { }
CreateOrUpdateBackupCredentialsForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewCreateOrUpdateBackupCredentialsForbidden ¶
func NewCreateOrUpdateBackupCredentialsForbidden() *CreateOrUpdateBackupCredentialsForbidden
NewCreateOrUpdateBackupCredentialsForbidden creates a CreateOrUpdateBackupCredentialsForbidden with default headers values
func (*CreateOrUpdateBackupCredentialsForbidden) Error ¶
func (o *CreateOrUpdateBackupCredentialsForbidden) Error() string
type CreateOrUpdateBackupCredentialsOK ¶
type CreateOrUpdateBackupCredentialsOK struct { }
CreateOrUpdateBackupCredentialsOK describes a response with status code 200, with default header values.
EmptyResponse is a empty response
func NewCreateOrUpdateBackupCredentialsOK ¶
func NewCreateOrUpdateBackupCredentialsOK() *CreateOrUpdateBackupCredentialsOK
NewCreateOrUpdateBackupCredentialsOK creates a CreateOrUpdateBackupCredentialsOK with default headers values
func (*CreateOrUpdateBackupCredentialsOK) Error ¶
func (o *CreateOrUpdateBackupCredentialsOK) Error() string
type CreateOrUpdateBackupCredentialsParams ¶
type CreateOrUpdateBackupCredentialsParams struct { // Body. Body *models.BcBody // SeedName. SeedName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateOrUpdateBackupCredentialsParams contains all the parameters to send to the API endpoint
for the create or update backup credentials operation. Typically these are written to a http.Request.
func NewCreateOrUpdateBackupCredentialsParams ¶
func NewCreateOrUpdateBackupCredentialsParams() *CreateOrUpdateBackupCredentialsParams
NewCreateOrUpdateBackupCredentialsParams creates a new CreateOrUpdateBackupCredentialsParams 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 NewCreateOrUpdateBackupCredentialsParamsWithContext ¶
func NewCreateOrUpdateBackupCredentialsParamsWithContext(ctx context.Context) *CreateOrUpdateBackupCredentialsParams
NewCreateOrUpdateBackupCredentialsParamsWithContext creates a new CreateOrUpdateBackupCredentialsParams object with the ability to set a context for a request.
func NewCreateOrUpdateBackupCredentialsParamsWithHTTPClient ¶
func NewCreateOrUpdateBackupCredentialsParamsWithHTTPClient(client *http.Client) *CreateOrUpdateBackupCredentialsParams
NewCreateOrUpdateBackupCredentialsParamsWithHTTPClient creates a new CreateOrUpdateBackupCredentialsParams object with the ability to set a custom HTTPClient for a request.
func NewCreateOrUpdateBackupCredentialsParamsWithTimeout ¶
func NewCreateOrUpdateBackupCredentialsParamsWithTimeout(timeout time.Duration) *CreateOrUpdateBackupCredentialsParams
NewCreateOrUpdateBackupCredentialsParamsWithTimeout creates a new CreateOrUpdateBackupCredentialsParams object with the ability to set a timeout on a request.
func (*CreateOrUpdateBackupCredentialsParams) SetBody ¶
func (o *CreateOrUpdateBackupCredentialsParams) SetBody(body *models.BcBody)
SetBody adds the body to the create or update backup credentials params
func (*CreateOrUpdateBackupCredentialsParams) SetContext ¶
func (o *CreateOrUpdateBackupCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the create or update backup credentials params
func (*CreateOrUpdateBackupCredentialsParams) SetDefaults ¶
func (o *CreateOrUpdateBackupCredentialsParams) SetDefaults()
SetDefaults hydrates default values in the create or update backup credentials params (not the query body).
All values with no default are reset to their zero value.
func (*CreateOrUpdateBackupCredentialsParams) SetHTTPClient ¶
func (o *CreateOrUpdateBackupCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create or update backup credentials params
func (*CreateOrUpdateBackupCredentialsParams) SetSeedName ¶
func (o *CreateOrUpdateBackupCredentialsParams) SetSeedName(seedName string)
SetSeedName adds the seedName to the create or update backup credentials params
func (*CreateOrUpdateBackupCredentialsParams) SetTimeout ¶
func (o *CreateOrUpdateBackupCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create or update backup credentials params
func (*CreateOrUpdateBackupCredentialsParams) WithBody ¶
func (o *CreateOrUpdateBackupCredentialsParams) WithBody(body *models.BcBody) *CreateOrUpdateBackupCredentialsParams
WithBody adds the body to the create or update backup credentials params
func (*CreateOrUpdateBackupCredentialsParams) WithContext ¶
func (o *CreateOrUpdateBackupCredentialsParams) WithContext(ctx context.Context) *CreateOrUpdateBackupCredentialsParams
WithContext adds the context to the create or update backup credentials params
func (*CreateOrUpdateBackupCredentialsParams) WithDefaults ¶
func (o *CreateOrUpdateBackupCredentialsParams) WithDefaults() *CreateOrUpdateBackupCredentialsParams
WithDefaults hydrates default values in the create or update backup credentials params (not the query body).
All values with no default are reset to their zero value.
func (*CreateOrUpdateBackupCredentialsParams) WithHTTPClient ¶
func (o *CreateOrUpdateBackupCredentialsParams) WithHTTPClient(client *http.Client) *CreateOrUpdateBackupCredentialsParams
WithHTTPClient adds the HTTPClient to the create or update backup credentials params
func (*CreateOrUpdateBackupCredentialsParams) WithSeedName ¶
func (o *CreateOrUpdateBackupCredentialsParams) WithSeedName(seedName string) *CreateOrUpdateBackupCredentialsParams
WithSeedName adds the seedName to the create or update backup credentials params
func (*CreateOrUpdateBackupCredentialsParams) WithTimeout ¶
func (o *CreateOrUpdateBackupCredentialsParams) WithTimeout(timeout time.Duration) *CreateOrUpdateBackupCredentialsParams
WithTimeout adds the timeout to the create or update backup credentials params
func (*CreateOrUpdateBackupCredentialsParams) WriteToRequest ¶
func (o *CreateOrUpdateBackupCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateOrUpdateBackupCredentialsReader ¶
type CreateOrUpdateBackupCredentialsReader struct {
// contains filtered or unexported fields
}
CreateOrUpdateBackupCredentialsReader is a Reader for the CreateOrUpdateBackupCredentials structure.
func (*CreateOrUpdateBackupCredentialsReader) ReadResponse ¶
func (o *CreateOrUpdateBackupCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateOrUpdateBackupCredentialsUnauthorized ¶
type CreateOrUpdateBackupCredentialsUnauthorized struct { }
CreateOrUpdateBackupCredentialsUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewCreateOrUpdateBackupCredentialsUnauthorized ¶
func NewCreateOrUpdateBackupCredentialsUnauthorized() *CreateOrUpdateBackupCredentialsUnauthorized
NewCreateOrUpdateBackupCredentialsUnauthorized creates a CreateOrUpdateBackupCredentialsUnauthorized with default headers values
func (*CreateOrUpdateBackupCredentialsUnauthorized) Error ¶
func (o *CreateOrUpdateBackupCredentialsUnauthorized) Error() string