databases

package
v1.999.999-b9 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: Apache-2.0, BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

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

WithContext adds the context to the delete database by crn params

func (*DeleteDatabaseByCrnParams) WithCrn

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

WithTimeout adds the timeout to the delete database by crn params

func (*DeleteDatabaseByCrnParams) WriteToRequest

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

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

WithHTTPClient adds the HTTPClient to the delete database by name params

func (*DeleteDatabaseByNameParams) WithName

WithName adds the name to the delete database by name params

func (*DeleteDatabaseByNameParams) WithTimeout

WithTimeout adds the timeout to the delete database by name params

func (*DeleteDatabaseByNameParams) WriteToRequest

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

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

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

WithBody adds the body to the delete multiple databases by crn params

func (*DeleteMultipleDatabasesByCrnParams) WithContext

WithContext adds the context to the delete multiple databases by crn params

func (*DeleteMultipleDatabasesByCrnParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete multiple databases by crn params

func (*DeleteMultipleDatabasesByCrnParams) WithTimeout

WithTimeout adds the timeout to the delete multiple databases by crn params

func (*DeleteMultipleDatabasesByCrnParams) WriteToRequest

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

WithContext adds the context to the get database by crn params

func (*GetDatabaseByCrnParams) WithCrn

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

WithTimeout adds the timeout to the get database by crn params

func (*GetDatabaseByCrnParams) WriteToRequest

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

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

WithName adds the name to the get database by name params

func (*GetDatabaseByNameParams) WithTimeout

WithTimeout adds the timeout to the get database by name params

func (*GetDatabaseByNameParams) WriteToRequest

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

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

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

WithBody adds the body to the register database params

func (*RegisterDatabaseParams) WithContext

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

WithTimeout adds the timeout to the register database params

func (*RegisterDatabaseParams) WriteToRequest

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

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

WithBody adds the body to the test database connection params

func (*TestDatabaseConnectionParams) WithContext

WithContext adds the context to the test database connection params

func (*TestDatabaseConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the test database connection params

func (*TestDatabaseConnectionParams) WithTimeout

WithTimeout adds the timeout to the test database connection params

func (*TestDatabaseConnectionParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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