Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteDatabaseByCrn(params *DeleteDatabaseByCrnParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDatabaseByCrnOK, error)
- func (a *Client) DeleteDatabaseByName(params *DeleteDatabaseByNameParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDatabaseByNameOK, error)
- func (a *Client) DeleteMultipleDatabasesByCrn(params *DeleteMultipleDatabasesByCrnParams, ...) (*DeleteMultipleDatabasesByCrnOK, error)
- func (a *Client) GetDatabaseByCrn(params *GetDatabaseByCrnParams, authInfo runtime.ClientAuthInfoWriter) (*GetDatabaseByCrnOK, error)
- func (a *Client) GetDatabaseByName(params *GetDatabaseByNameParams, authInfo runtime.ClientAuthInfoWriter) (*GetDatabaseByNameOK, error)
- func (a *Client) ListDatabases(params *ListDatabasesParams, authInfo runtime.ClientAuthInfoWriter) (*ListDatabasesOK, error)
- func (a *Client) RegisterDatabase(params *RegisterDatabaseParams, authInfo runtime.ClientAuthInfoWriter) (*RegisterDatabaseOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) TestDatabaseConnection(params *TestDatabaseConnectionParams, authInfo runtime.ClientAuthInfoWriter) (*TestDatabaseConnectionOK, error)
- type DeleteDatabaseByCrnOK
- type DeleteDatabaseByCrnParams
- func NewDeleteDatabaseByCrnParams() *DeleteDatabaseByCrnParams
- func NewDeleteDatabaseByCrnParamsWithContext(ctx context.Context) *DeleteDatabaseByCrnParams
- func NewDeleteDatabaseByCrnParamsWithHTTPClient(client *http.Client) *DeleteDatabaseByCrnParams
- func NewDeleteDatabaseByCrnParamsWithTimeout(timeout time.Duration) *DeleteDatabaseByCrnParams
- func (o *DeleteDatabaseByCrnParams) SetContext(ctx context.Context)
- func (o *DeleteDatabaseByCrnParams) SetCrn(crn string)
- func (o *DeleteDatabaseByCrnParams) SetHTTPClient(client *http.Client)
- func (o *DeleteDatabaseByCrnParams) SetTimeout(timeout time.Duration)
- func (o *DeleteDatabaseByCrnParams) WithContext(ctx context.Context) *DeleteDatabaseByCrnParams
- func (o *DeleteDatabaseByCrnParams) WithCrn(crn string) *DeleteDatabaseByCrnParams
- func (o *DeleteDatabaseByCrnParams) WithHTTPClient(client *http.Client) *DeleteDatabaseByCrnParams
- func (o *DeleteDatabaseByCrnParams) WithTimeout(timeout time.Duration) *DeleteDatabaseByCrnParams
- func (o *DeleteDatabaseByCrnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteDatabaseByCrnReader
- type DeleteDatabaseByNameOK
- type DeleteDatabaseByNameParams
- func NewDeleteDatabaseByNameParams() *DeleteDatabaseByNameParams
- func NewDeleteDatabaseByNameParamsWithContext(ctx context.Context) *DeleteDatabaseByNameParams
- func NewDeleteDatabaseByNameParamsWithHTTPClient(client *http.Client) *DeleteDatabaseByNameParams
- func NewDeleteDatabaseByNameParamsWithTimeout(timeout time.Duration) *DeleteDatabaseByNameParams
- func (o *DeleteDatabaseByNameParams) SetContext(ctx context.Context)
- func (o *DeleteDatabaseByNameParams) SetEnvironmentCrn(environmentCrn string)
- func (o *DeleteDatabaseByNameParams) SetHTTPClient(client *http.Client)
- func (o *DeleteDatabaseByNameParams) SetName(name string)
- func (o *DeleteDatabaseByNameParams) SetTimeout(timeout time.Duration)
- func (o *DeleteDatabaseByNameParams) WithContext(ctx context.Context) *DeleteDatabaseByNameParams
- func (o *DeleteDatabaseByNameParams) WithEnvironmentCrn(environmentCrn string) *DeleteDatabaseByNameParams
- func (o *DeleteDatabaseByNameParams) WithHTTPClient(client *http.Client) *DeleteDatabaseByNameParams
- func (o *DeleteDatabaseByNameParams) WithName(name string) *DeleteDatabaseByNameParams
- func (o *DeleteDatabaseByNameParams) WithTimeout(timeout time.Duration) *DeleteDatabaseByNameParams
- func (o *DeleteDatabaseByNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteDatabaseByNameReader
- type DeleteMultipleDatabasesByCrnOK
- type DeleteMultipleDatabasesByCrnParams
- func NewDeleteMultipleDatabasesByCrnParams() *DeleteMultipleDatabasesByCrnParams
- func NewDeleteMultipleDatabasesByCrnParamsWithContext(ctx context.Context) *DeleteMultipleDatabasesByCrnParams
- func NewDeleteMultipleDatabasesByCrnParamsWithHTTPClient(client *http.Client) *DeleteMultipleDatabasesByCrnParams
- func NewDeleteMultipleDatabasesByCrnParamsWithTimeout(timeout time.Duration) *DeleteMultipleDatabasesByCrnParams
- func (o *DeleteMultipleDatabasesByCrnParams) SetBody(body []string)
- func (o *DeleteMultipleDatabasesByCrnParams) SetContext(ctx context.Context)
- func (o *DeleteMultipleDatabasesByCrnParams) SetHTTPClient(client *http.Client)
- func (o *DeleteMultipleDatabasesByCrnParams) SetTimeout(timeout time.Duration)
- func (o *DeleteMultipleDatabasesByCrnParams) WithBody(body []string) *DeleteMultipleDatabasesByCrnParams
- func (o *DeleteMultipleDatabasesByCrnParams) WithContext(ctx context.Context) *DeleteMultipleDatabasesByCrnParams
- func (o *DeleteMultipleDatabasesByCrnParams) WithHTTPClient(client *http.Client) *DeleteMultipleDatabasesByCrnParams
- func (o *DeleteMultipleDatabasesByCrnParams) WithTimeout(timeout time.Duration) *DeleteMultipleDatabasesByCrnParams
- func (o *DeleteMultipleDatabasesByCrnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteMultipleDatabasesByCrnReader
- type GetDatabaseByCrnOK
- type GetDatabaseByCrnParams
- func NewGetDatabaseByCrnParams() *GetDatabaseByCrnParams
- func NewGetDatabaseByCrnParamsWithContext(ctx context.Context) *GetDatabaseByCrnParams
- func NewGetDatabaseByCrnParamsWithHTTPClient(client *http.Client) *GetDatabaseByCrnParams
- func NewGetDatabaseByCrnParamsWithTimeout(timeout time.Duration) *GetDatabaseByCrnParams
- func (o *GetDatabaseByCrnParams) SetContext(ctx context.Context)
- func (o *GetDatabaseByCrnParams) SetCrn(crn string)
- func (o *GetDatabaseByCrnParams) SetHTTPClient(client *http.Client)
- func (o *GetDatabaseByCrnParams) SetTimeout(timeout time.Duration)
- func (o *GetDatabaseByCrnParams) WithContext(ctx context.Context) *GetDatabaseByCrnParams
- func (o *GetDatabaseByCrnParams) WithCrn(crn string) *GetDatabaseByCrnParams
- func (o *GetDatabaseByCrnParams) WithHTTPClient(client *http.Client) *GetDatabaseByCrnParams
- func (o *GetDatabaseByCrnParams) WithTimeout(timeout time.Duration) *GetDatabaseByCrnParams
- func (o *GetDatabaseByCrnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDatabaseByCrnReader
- type GetDatabaseByNameOK
- type GetDatabaseByNameParams
- func NewGetDatabaseByNameParams() *GetDatabaseByNameParams
- func NewGetDatabaseByNameParamsWithContext(ctx context.Context) *GetDatabaseByNameParams
- func NewGetDatabaseByNameParamsWithHTTPClient(client *http.Client) *GetDatabaseByNameParams
- func NewGetDatabaseByNameParamsWithTimeout(timeout time.Duration) *GetDatabaseByNameParams
- func (o *GetDatabaseByNameParams) SetContext(ctx context.Context)
- func (o *GetDatabaseByNameParams) SetEnvironmentCrn(environmentCrn string)
- func (o *GetDatabaseByNameParams) SetHTTPClient(client *http.Client)
- func (o *GetDatabaseByNameParams) SetName(name string)
- func (o *GetDatabaseByNameParams) SetTimeout(timeout time.Duration)
- func (o *GetDatabaseByNameParams) WithContext(ctx context.Context) *GetDatabaseByNameParams
- func (o *GetDatabaseByNameParams) WithEnvironmentCrn(environmentCrn string) *GetDatabaseByNameParams
- func (o *GetDatabaseByNameParams) WithHTTPClient(client *http.Client) *GetDatabaseByNameParams
- func (o *GetDatabaseByNameParams) WithName(name string) *GetDatabaseByNameParams
- func (o *GetDatabaseByNameParams) WithTimeout(timeout time.Duration) *GetDatabaseByNameParams
- func (o *GetDatabaseByNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDatabaseByNameReader
- type ListDatabasesOK
- type ListDatabasesParams
- func (o *ListDatabasesParams) SetContext(ctx context.Context)
- func (o *ListDatabasesParams) SetEnvironmentCrn(environmentCrn string)
- func (o *ListDatabasesParams) SetHTTPClient(client *http.Client)
- func (o *ListDatabasesParams) SetTimeout(timeout time.Duration)
- func (o *ListDatabasesParams) WithContext(ctx context.Context) *ListDatabasesParams
- func (o *ListDatabasesParams) WithEnvironmentCrn(environmentCrn string) *ListDatabasesParams
- func (o *ListDatabasesParams) WithHTTPClient(client *http.Client) *ListDatabasesParams
- func (o *ListDatabasesParams) WithTimeout(timeout time.Duration) *ListDatabasesParams
- func (o *ListDatabasesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListDatabasesReader
- type RegisterDatabaseOK
- type RegisterDatabaseParams
- func NewRegisterDatabaseParams() *RegisterDatabaseParams
- func NewRegisterDatabaseParamsWithContext(ctx context.Context) *RegisterDatabaseParams
- func NewRegisterDatabaseParamsWithHTTPClient(client *http.Client) *RegisterDatabaseParams
- func NewRegisterDatabaseParamsWithTimeout(timeout time.Duration) *RegisterDatabaseParams
- func (o *RegisterDatabaseParams) SetBody(body *model.DatabaseV4Request)
- func (o *RegisterDatabaseParams) SetContext(ctx context.Context)
- func (o *RegisterDatabaseParams) SetHTTPClient(client *http.Client)
- func (o *RegisterDatabaseParams) SetTimeout(timeout time.Duration)
- func (o *RegisterDatabaseParams) WithBody(body *model.DatabaseV4Request) *RegisterDatabaseParams
- func (o *RegisterDatabaseParams) WithContext(ctx context.Context) *RegisterDatabaseParams
- func (o *RegisterDatabaseParams) WithHTTPClient(client *http.Client) *RegisterDatabaseParams
- func (o *RegisterDatabaseParams) WithTimeout(timeout time.Duration) *RegisterDatabaseParams
- func (o *RegisterDatabaseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RegisterDatabaseReader
- type TestDatabaseConnectionOK
- type TestDatabaseConnectionParams
- func NewTestDatabaseConnectionParams() *TestDatabaseConnectionParams
- func NewTestDatabaseConnectionParamsWithContext(ctx context.Context) *TestDatabaseConnectionParams
- func NewTestDatabaseConnectionParamsWithHTTPClient(client *http.Client) *TestDatabaseConnectionParams
- func NewTestDatabaseConnectionParamsWithTimeout(timeout time.Duration) *TestDatabaseConnectionParams
- func (o *TestDatabaseConnectionParams) SetBody(body *model.DatabaseTestV4Request)
- func (o *TestDatabaseConnectionParams) SetContext(ctx context.Context)
- func (o *TestDatabaseConnectionParams) SetHTTPClient(client *http.Client)
- func (o *TestDatabaseConnectionParams) SetTimeout(timeout time.Duration)
- func (o *TestDatabaseConnectionParams) WithBody(body *model.DatabaseTestV4Request) *TestDatabaseConnectionParams
- func (o *TestDatabaseConnectionParams) WithContext(ctx context.Context) *TestDatabaseConnectionParams
- func (o *TestDatabaseConnectionParams) WithHTTPClient(client *http.Client) *TestDatabaseConnectionParams
- func (o *TestDatabaseConnectionParams) WithTimeout(timeout time.Duration) *TestDatabaseConnectionParams
- func (o *TestDatabaseConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TestDatabaseConnectionReader
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 databases API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new databases API client.
func (*Client) DeleteDatabaseByCrn ¶
func (a *Client) DeleteDatabaseByCrn(params *DeleteDatabaseByCrnParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDatabaseByCrnOK, error)
DeleteDatabaseByCrn deletes a database config by c r n
Deletes a database by its CRN. If the database was registered with this service, then this operation merely deregisters it. Otherwise, this operation deletes the database from the database server, along with its corresponding user.
func (*Client) DeleteDatabaseByName ¶
func (a *Client) DeleteDatabaseByName(params *DeleteDatabaseByNameParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDatabaseByNameOK, error)
DeleteDatabaseByName deletes a database config by name
Deletes a database by its name. If the database was registered with this service, then this operation merely deregisters it. Otherwise, this operation deletes the database from the database server, along with its corresponding user.
func (*Client) DeleteMultipleDatabasesByCrn ¶
func (a *Client) DeleteMultipleDatabasesByCrn(params *DeleteMultipleDatabasesByCrnParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteMultipleDatabasesByCrnOK, error)
DeleteMultipleDatabasesByCrn deletes multiple database configs by c r n
Deletes multiple databases, each by CRN. See the notes on the single delete operation for details.
func (*Client) GetDatabaseByCrn ¶
func (a *Client) GetDatabaseByCrn(params *GetDatabaseByCrnParams, authInfo runtime.ClientAuthInfoWriter) (*GetDatabaseByCrnOK, error)
GetDatabaseByCrn gets a database config by c r n
Gets information on a database by its CRN.
func (*Client) GetDatabaseByName ¶
func (a *Client) GetDatabaseByName(params *GetDatabaseByNameParams, authInfo runtime.ClientAuthInfoWriter) (*GetDatabaseByNameOK, error)
GetDatabaseByName gets a database config by name
Gets information on a database by its name.
func (*Client) ListDatabases ¶
func (a *Client) ListDatabases(params *ListDatabasesParams, authInfo runtime.ClientAuthInfoWriter) (*ListDatabasesOK, error)
ListDatabases lists database configs
Lists all databases that are known, either because they were registered or because this service created them.
func (*Client) RegisterDatabase ¶
func (a *Client) RegisterDatabase(params *RegisterDatabaseParams, authInfo runtime.ClientAuthInfoWriter) (*RegisterDatabaseOK, error)
RegisterDatabase registers a database config of existing database
Registers an existing database, residing on some database server.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) TestDatabaseConnection ¶
func (a *Client) TestDatabaseConnection(params *TestDatabaseConnectionParams, authInfo runtime.ClientAuthInfoWriter) (*TestDatabaseConnectionOK, error)
TestDatabaseConnection tests database connectivity
Tests connectivity to a database. Use this to verify access to the database from this service, and also to verify authentication credentials.
type DeleteDatabaseByCrnOK ¶
type DeleteDatabaseByCrnOK struct {
Payload *model.DatabaseV4Response
}
DeleteDatabaseByCrnOK handles this case with default header values.
successful operation
func NewDeleteDatabaseByCrnOK ¶
func NewDeleteDatabaseByCrnOK() *DeleteDatabaseByCrnOK
NewDeleteDatabaseByCrnOK creates a DeleteDatabaseByCrnOK with default headers values
func (*DeleteDatabaseByCrnOK) Error ¶
func (o *DeleteDatabaseByCrnOK) Error() string
type DeleteDatabaseByCrnParams ¶
type DeleteDatabaseByCrnParams struct { /*Crn CRN of the database */ Crn string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteDatabaseByCrnParams contains all the parameters to send to the API endpoint for the delete database by crn operation typically these are written to a http.Request
func NewDeleteDatabaseByCrnParams ¶
func NewDeleteDatabaseByCrnParams() *DeleteDatabaseByCrnParams
NewDeleteDatabaseByCrnParams creates a new DeleteDatabaseByCrnParams object with the default values initialized.
func NewDeleteDatabaseByCrnParamsWithContext ¶
func NewDeleteDatabaseByCrnParamsWithContext(ctx context.Context) *DeleteDatabaseByCrnParams
NewDeleteDatabaseByCrnParamsWithContext creates a new DeleteDatabaseByCrnParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteDatabaseByCrnParamsWithHTTPClient ¶
func NewDeleteDatabaseByCrnParamsWithHTTPClient(client *http.Client) *DeleteDatabaseByCrnParams
NewDeleteDatabaseByCrnParamsWithHTTPClient creates a new DeleteDatabaseByCrnParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteDatabaseByCrnParamsWithTimeout ¶
func NewDeleteDatabaseByCrnParamsWithTimeout(timeout time.Duration) *DeleteDatabaseByCrnParams
NewDeleteDatabaseByCrnParamsWithTimeout creates a new DeleteDatabaseByCrnParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteDatabaseByCrnParams) SetContext ¶
func (o *DeleteDatabaseByCrnParams) SetContext(ctx context.Context)
SetContext adds the context to the delete database by crn params
func (*DeleteDatabaseByCrnParams) SetCrn ¶
func (o *DeleteDatabaseByCrnParams) SetCrn(crn string)
SetCrn adds the crn to the delete database by crn params
func (*DeleteDatabaseByCrnParams) SetHTTPClient ¶
func (o *DeleteDatabaseByCrnParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete database by crn params
func (*DeleteDatabaseByCrnParams) SetTimeout ¶
func (o *DeleteDatabaseByCrnParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete database by crn params
func (*DeleteDatabaseByCrnParams) WithContext ¶
func (o *DeleteDatabaseByCrnParams) WithContext(ctx context.Context) *DeleteDatabaseByCrnParams
WithContext adds the context to the delete database by crn params
func (*DeleteDatabaseByCrnParams) WithCrn ¶
func (o *DeleteDatabaseByCrnParams) WithCrn(crn string) *DeleteDatabaseByCrnParams
WithCrn adds the crn to the delete database by crn params
func (*DeleteDatabaseByCrnParams) WithHTTPClient ¶
func (o *DeleteDatabaseByCrnParams) WithHTTPClient(client *http.Client) *DeleteDatabaseByCrnParams
WithHTTPClient adds the HTTPClient to the delete database by crn params
func (*DeleteDatabaseByCrnParams) WithTimeout ¶
func (o *DeleteDatabaseByCrnParams) WithTimeout(timeout time.Duration) *DeleteDatabaseByCrnParams
WithTimeout adds the timeout to the delete database by crn params
func (*DeleteDatabaseByCrnParams) WriteToRequest ¶
func (o *DeleteDatabaseByCrnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteDatabaseByCrnReader ¶
type DeleteDatabaseByCrnReader struct {
// contains filtered or unexported fields
}
DeleteDatabaseByCrnReader is a Reader for the DeleteDatabaseByCrn structure.
func (*DeleteDatabaseByCrnReader) ReadResponse ¶
func (o *DeleteDatabaseByCrnReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteDatabaseByNameOK ¶
type DeleteDatabaseByNameOK struct {
Payload *model.DatabaseV4Response
}
DeleteDatabaseByNameOK handles this case with default header values.
successful operation
func NewDeleteDatabaseByNameOK ¶
func NewDeleteDatabaseByNameOK() *DeleteDatabaseByNameOK
NewDeleteDatabaseByNameOK creates a DeleteDatabaseByNameOK with default headers values
func (*DeleteDatabaseByNameOK) Error ¶
func (o *DeleteDatabaseByNameOK) Error() string
type DeleteDatabaseByNameParams ¶
type DeleteDatabaseByNameParams struct { /*EnvironmentCrn CRN of the environment of the database(s) */ EnvironmentCrn string /*Name Name of the database */ Name string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteDatabaseByNameParams contains all the parameters to send to the API endpoint for the delete database by name operation typically these are written to a http.Request
func NewDeleteDatabaseByNameParams ¶
func NewDeleteDatabaseByNameParams() *DeleteDatabaseByNameParams
NewDeleteDatabaseByNameParams creates a new DeleteDatabaseByNameParams object with the default values initialized.
func NewDeleteDatabaseByNameParamsWithContext ¶
func NewDeleteDatabaseByNameParamsWithContext(ctx context.Context) *DeleteDatabaseByNameParams
NewDeleteDatabaseByNameParamsWithContext creates a new DeleteDatabaseByNameParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteDatabaseByNameParamsWithHTTPClient ¶
func NewDeleteDatabaseByNameParamsWithHTTPClient(client *http.Client) *DeleteDatabaseByNameParams
NewDeleteDatabaseByNameParamsWithHTTPClient creates a new DeleteDatabaseByNameParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteDatabaseByNameParamsWithTimeout ¶
func NewDeleteDatabaseByNameParamsWithTimeout(timeout time.Duration) *DeleteDatabaseByNameParams
NewDeleteDatabaseByNameParamsWithTimeout creates a new DeleteDatabaseByNameParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteDatabaseByNameParams) SetContext ¶
func (o *DeleteDatabaseByNameParams) SetContext(ctx context.Context)
SetContext adds the context to the delete database by name params
func (*DeleteDatabaseByNameParams) SetEnvironmentCrn ¶
func (o *DeleteDatabaseByNameParams) SetEnvironmentCrn(environmentCrn string)
SetEnvironmentCrn adds the environmentCrn to the delete database by name params
func (*DeleteDatabaseByNameParams) SetHTTPClient ¶
func (o *DeleteDatabaseByNameParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete database by name params
func (*DeleteDatabaseByNameParams) SetName ¶
func (o *DeleteDatabaseByNameParams) SetName(name string)
SetName adds the name to the delete database by name params
func (*DeleteDatabaseByNameParams) SetTimeout ¶
func (o *DeleteDatabaseByNameParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete database by name params
func (*DeleteDatabaseByNameParams) WithContext ¶
func (o *DeleteDatabaseByNameParams) WithContext(ctx context.Context) *DeleteDatabaseByNameParams
WithContext adds the context to the delete database by name params
func (*DeleteDatabaseByNameParams) WithEnvironmentCrn ¶
func (o *DeleteDatabaseByNameParams) WithEnvironmentCrn(environmentCrn string) *DeleteDatabaseByNameParams
WithEnvironmentCrn adds the environmentCrn to the delete database by name params
func (*DeleteDatabaseByNameParams) WithHTTPClient ¶
func (o *DeleteDatabaseByNameParams) WithHTTPClient(client *http.Client) *DeleteDatabaseByNameParams
WithHTTPClient adds the HTTPClient to the delete database by name params
func (*DeleteDatabaseByNameParams) WithName ¶
func (o *DeleteDatabaseByNameParams) WithName(name string) *DeleteDatabaseByNameParams
WithName adds the name to the delete database by name params
func (*DeleteDatabaseByNameParams) WithTimeout ¶
func (o *DeleteDatabaseByNameParams) WithTimeout(timeout time.Duration) *DeleteDatabaseByNameParams
WithTimeout adds the timeout to the delete database by name params
func (*DeleteDatabaseByNameParams) WriteToRequest ¶
func (o *DeleteDatabaseByNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteDatabaseByNameReader ¶
type DeleteDatabaseByNameReader struct {
// contains filtered or unexported fields
}
DeleteDatabaseByNameReader is a Reader for the DeleteDatabaseByName structure.
func (*DeleteDatabaseByNameReader) ReadResponse ¶
func (o *DeleteDatabaseByNameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteMultipleDatabasesByCrnOK ¶
type DeleteMultipleDatabasesByCrnOK struct {
Payload *model.DatabaseV4Responses
}
DeleteMultipleDatabasesByCrnOK handles this case with default header values.
successful operation
func NewDeleteMultipleDatabasesByCrnOK ¶
func NewDeleteMultipleDatabasesByCrnOK() *DeleteMultipleDatabasesByCrnOK
NewDeleteMultipleDatabasesByCrnOK creates a DeleteMultipleDatabasesByCrnOK with default headers values
func (*DeleteMultipleDatabasesByCrnOK) Error ¶
func (o *DeleteMultipleDatabasesByCrnOK) Error() string
type DeleteMultipleDatabasesByCrnParams ¶
type DeleteMultipleDatabasesByCrnParams struct { /*Body CRNs of the databases */ Body []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteMultipleDatabasesByCrnParams contains all the parameters to send to the API endpoint for the delete multiple databases by crn operation typically these are written to a http.Request
func NewDeleteMultipleDatabasesByCrnParams ¶
func NewDeleteMultipleDatabasesByCrnParams() *DeleteMultipleDatabasesByCrnParams
NewDeleteMultipleDatabasesByCrnParams creates a new DeleteMultipleDatabasesByCrnParams object with the default values initialized.
func NewDeleteMultipleDatabasesByCrnParamsWithContext ¶
func NewDeleteMultipleDatabasesByCrnParamsWithContext(ctx context.Context) *DeleteMultipleDatabasesByCrnParams
NewDeleteMultipleDatabasesByCrnParamsWithContext creates a new DeleteMultipleDatabasesByCrnParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteMultipleDatabasesByCrnParamsWithHTTPClient ¶
func NewDeleteMultipleDatabasesByCrnParamsWithHTTPClient(client *http.Client) *DeleteMultipleDatabasesByCrnParams
NewDeleteMultipleDatabasesByCrnParamsWithHTTPClient creates a new DeleteMultipleDatabasesByCrnParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteMultipleDatabasesByCrnParamsWithTimeout ¶
func NewDeleteMultipleDatabasesByCrnParamsWithTimeout(timeout time.Duration) *DeleteMultipleDatabasesByCrnParams
NewDeleteMultipleDatabasesByCrnParamsWithTimeout creates a new DeleteMultipleDatabasesByCrnParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteMultipleDatabasesByCrnParams) SetBody ¶
func (o *DeleteMultipleDatabasesByCrnParams) SetBody(body []string)
SetBody adds the body to the delete multiple databases by crn params
func (*DeleteMultipleDatabasesByCrnParams) SetContext ¶
func (o *DeleteMultipleDatabasesByCrnParams) SetContext(ctx context.Context)
SetContext adds the context to the delete multiple databases by crn params
func (*DeleteMultipleDatabasesByCrnParams) SetHTTPClient ¶
func (o *DeleteMultipleDatabasesByCrnParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete multiple databases by crn params
func (*DeleteMultipleDatabasesByCrnParams) SetTimeout ¶
func (o *DeleteMultipleDatabasesByCrnParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete multiple databases by crn params
func (*DeleteMultipleDatabasesByCrnParams) WithBody ¶
func (o *DeleteMultipleDatabasesByCrnParams) WithBody(body []string) *DeleteMultipleDatabasesByCrnParams
WithBody adds the body to the delete multiple databases by crn params
func (*DeleteMultipleDatabasesByCrnParams) WithContext ¶
func (o *DeleteMultipleDatabasesByCrnParams) WithContext(ctx context.Context) *DeleteMultipleDatabasesByCrnParams
WithContext adds the context to the delete multiple databases by crn params
func (*DeleteMultipleDatabasesByCrnParams) WithHTTPClient ¶
func (o *DeleteMultipleDatabasesByCrnParams) WithHTTPClient(client *http.Client) *DeleteMultipleDatabasesByCrnParams
WithHTTPClient adds the HTTPClient to the delete multiple databases by crn params
func (*DeleteMultipleDatabasesByCrnParams) WithTimeout ¶
func (o *DeleteMultipleDatabasesByCrnParams) WithTimeout(timeout time.Duration) *DeleteMultipleDatabasesByCrnParams
WithTimeout adds the timeout to the delete multiple databases by crn params
func (*DeleteMultipleDatabasesByCrnParams) WriteToRequest ¶
func (o *DeleteMultipleDatabasesByCrnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteMultipleDatabasesByCrnReader ¶
type DeleteMultipleDatabasesByCrnReader struct {
// contains filtered or unexported fields
}
DeleteMultipleDatabasesByCrnReader is a Reader for the DeleteMultipleDatabasesByCrn structure.
func (*DeleteMultipleDatabasesByCrnReader) ReadResponse ¶
func (o *DeleteMultipleDatabasesByCrnReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetDatabaseByCrnOK ¶
type GetDatabaseByCrnOK struct {
Payload *model.DatabaseV4Response
}
GetDatabaseByCrnOK handles this case with default header values.
successful operation
func NewGetDatabaseByCrnOK ¶
func NewGetDatabaseByCrnOK() *GetDatabaseByCrnOK
NewGetDatabaseByCrnOK creates a GetDatabaseByCrnOK with default headers values
func (*GetDatabaseByCrnOK) Error ¶
func (o *GetDatabaseByCrnOK) Error() string
type GetDatabaseByCrnParams ¶
type GetDatabaseByCrnParams struct { /*Crn CRN of the database */ Crn string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDatabaseByCrnParams contains all the parameters to send to the API endpoint for the get database by crn operation typically these are written to a http.Request
func NewGetDatabaseByCrnParams ¶
func NewGetDatabaseByCrnParams() *GetDatabaseByCrnParams
NewGetDatabaseByCrnParams creates a new GetDatabaseByCrnParams object with the default values initialized.
func NewGetDatabaseByCrnParamsWithContext ¶
func NewGetDatabaseByCrnParamsWithContext(ctx context.Context) *GetDatabaseByCrnParams
NewGetDatabaseByCrnParamsWithContext creates a new GetDatabaseByCrnParams object with the default values initialized, and the ability to set a context for a request
func NewGetDatabaseByCrnParamsWithHTTPClient ¶
func NewGetDatabaseByCrnParamsWithHTTPClient(client *http.Client) *GetDatabaseByCrnParams
NewGetDatabaseByCrnParamsWithHTTPClient creates a new GetDatabaseByCrnParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetDatabaseByCrnParamsWithTimeout ¶
func NewGetDatabaseByCrnParamsWithTimeout(timeout time.Duration) *GetDatabaseByCrnParams
NewGetDatabaseByCrnParamsWithTimeout creates a new GetDatabaseByCrnParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetDatabaseByCrnParams) SetContext ¶
func (o *GetDatabaseByCrnParams) SetContext(ctx context.Context)
SetContext adds the context to the get database by crn params
func (*GetDatabaseByCrnParams) SetCrn ¶
func (o *GetDatabaseByCrnParams) SetCrn(crn string)
SetCrn adds the crn to the get database by crn params
func (*GetDatabaseByCrnParams) SetHTTPClient ¶
func (o *GetDatabaseByCrnParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get database by crn params
func (*GetDatabaseByCrnParams) SetTimeout ¶
func (o *GetDatabaseByCrnParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get database by crn params
func (*GetDatabaseByCrnParams) WithContext ¶
func (o *GetDatabaseByCrnParams) WithContext(ctx context.Context) *GetDatabaseByCrnParams
WithContext adds the context to the get database by crn params
func (*GetDatabaseByCrnParams) WithCrn ¶
func (o *GetDatabaseByCrnParams) WithCrn(crn string) *GetDatabaseByCrnParams
WithCrn adds the crn to the get database by crn params
func (*GetDatabaseByCrnParams) WithHTTPClient ¶
func (o *GetDatabaseByCrnParams) WithHTTPClient(client *http.Client) *GetDatabaseByCrnParams
WithHTTPClient adds the HTTPClient to the get database by crn params
func (*GetDatabaseByCrnParams) WithTimeout ¶
func (o *GetDatabaseByCrnParams) WithTimeout(timeout time.Duration) *GetDatabaseByCrnParams
WithTimeout adds the timeout to the get database by crn params
func (*GetDatabaseByCrnParams) WriteToRequest ¶
func (o *GetDatabaseByCrnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDatabaseByCrnReader ¶
type GetDatabaseByCrnReader struct {
// contains filtered or unexported fields
}
GetDatabaseByCrnReader is a Reader for the GetDatabaseByCrn structure.
func (*GetDatabaseByCrnReader) ReadResponse ¶
func (o *GetDatabaseByCrnReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetDatabaseByNameOK ¶
type GetDatabaseByNameOK struct {
Payload *model.DatabaseV4Response
}
GetDatabaseByNameOK handles this case with default header values.
successful operation
func NewGetDatabaseByNameOK ¶
func NewGetDatabaseByNameOK() *GetDatabaseByNameOK
NewGetDatabaseByNameOK creates a GetDatabaseByNameOK with default headers values
func (*GetDatabaseByNameOK) Error ¶
func (o *GetDatabaseByNameOK) Error() string
type GetDatabaseByNameParams ¶
type GetDatabaseByNameParams struct { /*EnvironmentCrn CRN of the environment of the database(s) */ EnvironmentCrn string /*Name Name of the database */ Name string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDatabaseByNameParams contains all the parameters to send to the API endpoint for the get database by name operation typically these are written to a http.Request
func NewGetDatabaseByNameParams ¶
func NewGetDatabaseByNameParams() *GetDatabaseByNameParams
NewGetDatabaseByNameParams creates a new GetDatabaseByNameParams object with the default values initialized.
func NewGetDatabaseByNameParamsWithContext ¶
func NewGetDatabaseByNameParamsWithContext(ctx context.Context) *GetDatabaseByNameParams
NewGetDatabaseByNameParamsWithContext creates a new GetDatabaseByNameParams object with the default values initialized, and the ability to set a context for a request
func NewGetDatabaseByNameParamsWithHTTPClient ¶
func NewGetDatabaseByNameParamsWithHTTPClient(client *http.Client) *GetDatabaseByNameParams
NewGetDatabaseByNameParamsWithHTTPClient creates a new GetDatabaseByNameParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetDatabaseByNameParamsWithTimeout ¶
func NewGetDatabaseByNameParamsWithTimeout(timeout time.Duration) *GetDatabaseByNameParams
NewGetDatabaseByNameParamsWithTimeout creates a new GetDatabaseByNameParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetDatabaseByNameParams) SetContext ¶
func (o *GetDatabaseByNameParams) SetContext(ctx context.Context)
SetContext adds the context to the get database by name params
func (*GetDatabaseByNameParams) SetEnvironmentCrn ¶
func (o *GetDatabaseByNameParams) SetEnvironmentCrn(environmentCrn string)
SetEnvironmentCrn adds the environmentCrn to the get database by name params
func (*GetDatabaseByNameParams) SetHTTPClient ¶
func (o *GetDatabaseByNameParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get database by name params
func (*GetDatabaseByNameParams) SetName ¶
func (o *GetDatabaseByNameParams) SetName(name string)
SetName adds the name to the get database by name params
func (*GetDatabaseByNameParams) SetTimeout ¶
func (o *GetDatabaseByNameParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get database by name params
func (*GetDatabaseByNameParams) WithContext ¶
func (o *GetDatabaseByNameParams) WithContext(ctx context.Context) *GetDatabaseByNameParams
WithContext adds the context to the get database by name params
func (*GetDatabaseByNameParams) WithEnvironmentCrn ¶
func (o *GetDatabaseByNameParams) WithEnvironmentCrn(environmentCrn string) *GetDatabaseByNameParams
WithEnvironmentCrn adds the environmentCrn to the get database by name params
func (*GetDatabaseByNameParams) WithHTTPClient ¶
func (o *GetDatabaseByNameParams) WithHTTPClient(client *http.Client) *GetDatabaseByNameParams
WithHTTPClient adds the HTTPClient to the get database by name params
func (*GetDatabaseByNameParams) WithName ¶
func (o *GetDatabaseByNameParams) WithName(name string) *GetDatabaseByNameParams
WithName adds the name to the get database by name params
func (*GetDatabaseByNameParams) WithTimeout ¶
func (o *GetDatabaseByNameParams) WithTimeout(timeout time.Duration) *GetDatabaseByNameParams
WithTimeout adds the timeout to the get database by name params
func (*GetDatabaseByNameParams) WriteToRequest ¶
func (o *GetDatabaseByNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDatabaseByNameReader ¶
type GetDatabaseByNameReader struct {
// contains filtered or unexported fields
}
GetDatabaseByNameReader is a Reader for the GetDatabaseByName structure.
func (*GetDatabaseByNameReader) ReadResponse ¶
func (o *GetDatabaseByNameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListDatabasesOK ¶
type ListDatabasesOK struct {
Payload *model.DatabaseV4Responses
}
ListDatabasesOK handles this case with default header values.
successful operation
func NewListDatabasesOK ¶
func NewListDatabasesOK() *ListDatabasesOK
NewListDatabasesOK creates a ListDatabasesOK with default headers values
func (*ListDatabasesOK) Error ¶
func (o *ListDatabasesOK) Error() string
type ListDatabasesParams ¶
type ListDatabasesParams struct { /*EnvironmentCrn CRN of the environment of the database(s) */ EnvironmentCrn string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListDatabasesParams contains all the parameters to send to the API endpoint for the list databases operation typically these are written to a http.Request
func NewListDatabasesParams ¶
func NewListDatabasesParams() *ListDatabasesParams
NewListDatabasesParams creates a new ListDatabasesParams object with the default values initialized.
func NewListDatabasesParamsWithContext ¶
func NewListDatabasesParamsWithContext(ctx context.Context) *ListDatabasesParams
NewListDatabasesParamsWithContext creates a new ListDatabasesParams object with the default values initialized, and the ability to set a context for a request
func NewListDatabasesParamsWithHTTPClient ¶
func NewListDatabasesParamsWithHTTPClient(client *http.Client) *ListDatabasesParams
NewListDatabasesParamsWithHTTPClient creates a new ListDatabasesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListDatabasesParamsWithTimeout ¶
func NewListDatabasesParamsWithTimeout(timeout time.Duration) *ListDatabasesParams
NewListDatabasesParamsWithTimeout creates a new ListDatabasesParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListDatabasesParams) SetContext ¶
func (o *ListDatabasesParams) SetContext(ctx context.Context)
SetContext adds the context to the list databases params
func (*ListDatabasesParams) SetEnvironmentCrn ¶
func (o *ListDatabasesParams) SetEnvironmentCrn(environmentCrn string)
SetEnvironmentCrn adds the environmentCrn to the list databases params
func (*ListDatabasesParams) SetHTTPClient ¶
func (o *ListDatabasesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list databases params
func (*ListDatabasesParams) SetTimeout ¶
func (o *ListDatabasesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list databases params
func (*ListDatabasesParams) WithContext ¶
func (o *ListDatabasesParams) WithContext(ctx context.Context) *ListDatabasesParams
WithContext adds the context to the list databases params
func (*ListDatabasesParams) WithEnvironmentCrn ¶
func (o *ListDatabasesParams) WithEnvironmentCrn(environmentCrn string) *ListDatabasesParams
WithEnvironmentCrn adds the environmentCrn to the list databases params
func (*ListDatabasesParams) WithHTTPClient ¶
func (o *ListDatabasesParams) WithHTTPClient(client *http.Client) *ListDatabasesParams
WithHTTPClient adds the HTTPClient to the list databases params
func (*ListDatabasesParams) WithTimeout ¶
func (o *ListDatabasesParams) WithTimeout(timeout time.Duration) *ListDatabasesParams
WithTimeout adds the timeout to the list databases params
func (*ListDatabasesParams) WriteToRequest ¶
func (o *ListDatabasesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListDatabasesReader ¶
type ListDatabasesReader struct {
// contains filtered or unexported fields
}
ListDatabasesReader is a Reader for the ListDatabases structure.
func (*ListDatabasesReader) ReadResponse ¶
func (o *ListDatabasesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RegisterDatabaseOK ¶
type RegisterDatabaseOK struct {
Payload *model.DatabaseV4Response
}
RegisterDatabaseOK handles this case with default header values.
successful operation
func NewRegisterDatabaseOK ¶
func NewRegisterDatabaseOK() *RegisterDatabaseOK
NewRegisterDatabaseOK creates a RegisterDatabaseOK with default headers values
func (*RegisterDatabaseOK) Error ¶
func (o *RegisterDatabaseOK) Error() string
type RegisterDatabaseParams ¶
type RegisterDatabaseParams struct { /*Body Request containing information about a database to be registered */ Body *model.DatabaseV4Request Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RegisterDatabaseParams contains all the parameters to send to the API endpoint for the register database operation typically these are written to a http.Request
func NewRegisterDatabaseParams ¶
func NewRegisterDatabaseParams() *RegisterDatabaseParams
NewRegisterDatabaseParams creates a new RegisterDatabaseParams object with the default values initialized.
func NewRegisterDatabaseParamsWithContext ¶
func NewRegisterDatabaseParamsWithContext(ctx context.Context) *RegisterDatabaseParams
NewRegisterDatabaseParamsWithContext creates a new RegisterDatabaseParams object with the default values initialized, and the ability to set a context for a request
func NewRegisterDatabaseParamsWithHTTPClient ¶
func NewRegisterDatabaseParamsWithHTTPClient(client *http.Client) *RegisterDatabaseParams
NewRegisterDatabaseParamsWithHTTPClient creates a new RegisterDatabaseParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRegisterDatabaseParamsWithTimeout ¶
func NewRegisterDatabaseParamsWithTimeout(timeout time.Duration) *RegisterDatabaseParams
NewRegisterDatabaseParamsWithTimeout creates a new RegisterDatabaseParams object with the default values initialized, and the ability to set a timeout on a request
func (*RegisterDatabaseParams) SetBody ¶
func (o *RegisterDatabaseParams) SetBody(body *model.DatabaseV4Request)
SetBody adds the body to the register database params
func (*RegisterDatabaseParams) SetContext ¶
func (o *RegisterDatabaseParams) SetContext(ctx context.Context)
SetContext adds the context to the register database params
func (*RegisterDatabaseParams) SetHTTPClient ¶
func (o *RegisterDatabaseParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the register database params
func (*RegisterDatabaseParams) SetTimeout ¶
func (o *RegisterDatabaseParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the register database params
func (*RegisterDatabaseParams) WithBody ¶
func (o *RegisterDatabaseParams) WithBody(body *model.DatabaseV4Request) *RegisterDatabaseParams
WithBody adds the body to the register database params
func (*RegisterDatabaseParams) WithContext ¶
func (o *RegisterDatabaseParams) WithContext(ctx context.Context) *RegisterDatabaseParams
WithContext adds the context to the register database params
func (*RegisterDatabaseParams) WithHTTPClient ¶
func (o *RegisterDatabaseParams) WithHTTPClient(client *http.Client) *RegisterDatabaseParams
WithHTTPClient adds the HTTPClient to the register database params
func (*RegisterDatabaseParams) WithTimeout ¶
func (o *RegisterDatabaseParams) WithTimeout(timeout time.Duration) *RegisterDatabaseParams
WithTimeout adds the timeout to the register database params
func (*RegisterDatabaseParams) WriteToRequest ¶
func (o *RegisterDatabaseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RegisterDatabaseReader ¶
type RegisterDatabaseReader struct {
// contains filtered or unexported fields
}
RegisterDatabaseReader is a Reader for the RegisterDatabase structure.
func (*RegisterDatabaseReader) ReadResponse ¶
func (o *RegisterDatabaseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TestDatabaseConnectionOK ¶
type TestDatabaseConnectionOK struct {
Payload *model.DatabaseTestV4Response
}
TestDatabaseConnectionOK handles this case with default header values.
successful operation
func NewTestDatabaseConnectionOK ¶
func NewTestDatabaseConnectionOK() *TestDatabaseConnectionOK
NewTestDatabaseConnectionOK creates a TestDatabaseConnectionOK with default headers values
func (*TestDatabaseConnectionOK) Error ¶
func (o *TestDatabaseConnectionOK) Error() string
type TestDatabaseConnectionParams ¶
type TestDatabaseConnectionParams struct { /*Body Request for testing connectivity to a database */ Body *model.DatabaseTestV4Request Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TestDatabaseConnectionParams contains all the parameters to send to the API endpoint for the test database connection operation typically these are written to a http.Request
func NewTestDatabaseConnectionParams ¶
func NewTestDatabaseConnectionParams() *TestDatabaseConnectionParams
NewTestDatabaseConnectionParams creates a new TestDatabaseConnectionParams object with the default values initialized.
func NewTestDatabaseConnectionParamsWithContext ¶
func NewTestDatabaseConnectionParamsWithContext(ctx context.Context) *TestDatabaseConnectionParams
NewTestDatabaseConnectionParamsWithContext creates a new TestDatabaseConnectionParams object with the default values initialized, and the ability to set a context for a request
func NewTestDatabaseConnectionParamsWithHTTPClient ¶
func NewTestDatabaseConnectionParamsWithHTTPClient(client *http.Client) *TestDatabaseConnectionParams
NewTestDatabaseConnectionParamsWithHTTPClient creates a new TestDatabaseConnectionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewTestDatabaseConnectionParamsWithTimeout ¶
func NewTestDatabaseConnectionParamsWithTimeout(timeout time.Duration) *TestDatabaseConnectionParams
NewTestDatabaseConnectionParamsWithTimeout creates a new TestDatabaseConnectionParams object with the default values initialized, and the ability to set a timeout on a request
func (*TestDatabaseConnectionParams) SetBody ¶
func (o *TestDatabaseConnectionParams) SetBody(body *model.DatabaseTestV4Request)
SetBody adds the body to the test database connection params
func (*TestDatabaseConnectionParams) SetContext ¶
func (o *TestDatabaseConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the test database connection params
func (*TestDatabaseConnectionParams) SetHTTPClient ¶
func (o *TestDatabaseConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the test database connection params
func (*TestDatabaseConnectionParams) SetTimeout ¶
func (o *TestDatabaseConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the test database connection params
func (*TestDatabaseConnectionParams) WithBody ¶
func (o *TestDatabaseConnectionParams) WithBody(body *model.DatabaseTestV4Request) *TestDatabaseConnectionParams
WithBody adds the body to the test database connection params
func (*TestDatabaseConnectionParams) WithContext ¶
func (o *TestDatabaseConnectionParams) WithContext(ctx context.Context) *TestDatabaseConnectionParams
WithContext adds the context to the test database connection params
func (*TestDatabaseConnectionParams) WithHTTPClient ¶
func (o *TestDatabaseConnectionParams) WithHTTPClient(client *http.Client) *TestDatabaseConnectionParams
WithHTTPClient adds the HTTPClient to the test database connection params
func (*TestDatabaseConnectionParams) WithTimeout ¶
func (o *TestDatabaseConnectionParams) WithTimeout(timeout time.Duration) *TestDatabaseConnectionParams
WithTimeout adds the timeout to the test database connection params
func (*TestDatabaseConnectionParams) WriteToRequest ¶
func (o *TestDatabaseConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TestDatabaseConnectionReader ¶
type TestDatabaseConnectionReader struct {
// contains filtered or unexported fields
}
TestDatabaseConnectionReader is a Reader for the TestDatabaseConnection structure.
func (*TestDatabaseConnectionReader) ReadResponse ¶
func (o *TestDatabaseConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- databases_client.go
- delete_database_by_crn_parameters.go
- delete_database_by_crn_responses.go
- delete_database_by_name_parameters.go
- delete_database_by_name_responses.go
- delete_multiple_databases_by_crn_parameters.go
- delete_multiple_databases_by_crn_responses.go
- get_database_by_crn_parameters.go
- get_database_by_crn_responses.go
- get_database_by_name_parameters.go
- get_database_by_name_responses.go
- list_databases_parameters.go
- list_databases_responses.go
- register_database_parameters.go
- register_database_responses.go
- test_database_connection_parameters.go
- test_database_connection_responses.go