database

package
v0.15.21 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 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 database API

func (*Client) CreateDatabaseSnapshot

func (a *Client) CreateDatabaseSnapshot(params *CreateDatabaseSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*CreateDatabaseSnapshotOK, error)

CreateDatabaseSnapshot creates a new database snapshot

Create a new database snapshot. Requires admin access.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CreateDatabaseSnapshot(params *CreateDatabaseSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*CreateDatabaseSnapshotOK, 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 database API client.

type CreateDatabaseSnapshotOK

type CreateDatabaseSnapshotOK struct {
	Payload *rest_model.Empty
}

CreateDatabaseSnapshotOK handles this case with default header values.

Base empty response

func NewCreateDatabaseSnapshotOK

func NewCreateDatabaseSnapshotOK() *CreateDatabaseSnapshotOK

NewCreateDatabaseSnapshotOK creates a CreateDatabaseSnapshotOK with default headers values

func (*CreateDatabaseSnapshotOK) Error

func (o *CreateDatabaseSnapshotOK) Error() string

func (*CreateDatabaseSnapshotOK) GetPayload

func (o *CreateDatabaseSnapshotOK) GetPayload() *rest_model.Empty

type CreateDatabaseSnapshotParams

type CreateDatabaseSnapshotParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateDatabaseSnapshotParams contains all the parameters to send to the API endpoint for the create database snapshot operation typically these are written to a http.Request

func NewCreateDatabaseSnapshotParams

func NewCreateDatabaseSnapshotParams() *CreateDatabaseSnapshotParams

NewCreateDatabaseSnapshotParams creates a new CreateDatabaseSnapshotParams object with the default values initialized.

func NewCreateDatabaseSnapshotParamsWithContext

func NewCreateDatabaseSnapshotParamsWithContext(ctx context.Context) *CreateDatabaseSnapshotParams

NewCreateDatabaseSnapshotParamsWithContext creates a new CreateDatabaseSnapshotParams object with the default values initialized, and the ability to set a context for a request

func NewCreateDatabaseSnapshotParamsWithHTTPClient

func NewCreateDatabaseSnapshotParamsWithHTTPClient(client *http.Client) *CreateDatabaseSnapshotParams

NewCreateDatabaseSnapshotParamsWithHTTPClient creates a new CreateDatabaseSnapshotParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateDatabaseSnapshotParamsWithTimeout

func NewCreateDatabaseSnapshotParamsWithTimeout(timeout time.Duration) *CreateDatabaseSnapshotParams

NewCreateDatabaseSnapshotParamsWithTimeout creates a new CreateDatabaseSnapshotParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateDatabaseSnapshotParams) SetContext

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

SetContext adds the context to the create database snapshot params

func (*CreateDatabaseSnapshotParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create database snapshot params

func (*CreateDatabaseSnapshotParams) SetTimeout

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

SetTimeout adds the timeout to the create database snapshot params

func (*CreateDatabaseSnapshotParams) WithContext

WithContext adds the context to the create database snapshot params

func (*CreateDatabaseSnapshotParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create database snapshot params

func (*CreateDatabaseSnapshotParams) WithTimeout

WithTimeout adds the timeout to the create database snapshot params

func (*CreateDatabaseSnapshotParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateDatabaseSnapshotReader

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

CreateDatabaseSnapshotReader is a Reader for the CreateDatabaseSnapshot structure.

func (*CreateDatabaseSnapshotReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateDatabaseSnapshotTooManyRequests

type CreateDatabaseSnapshotTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}

CreateDatabaseSnapshotTooManyRequests handles this case with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewCreateDatabaseSnapshotTooManyRequests

func NewCreateDatabaseSnapshotTooManyRequests() *CreateDatabaseSnapshotTooManyRequests

NewCreateDatabaseSnapshotTooManyRequests creates a CreateDatabaseSnapshotTooManyRequests with default headers values

func (*CreateDatabaseSnapshotTooManyRequests) Error

func (*CreateDatabaseSnapshotTooManyRequests) GetPayload

type CreateDatabaseSnapshotUnauthorized

type CreateDatabaseSnapshotUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

CreateDatabaseSnapshotUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewCreateDatabaseSnapshotUnauthorized

func NewCreateDatabaseSnapshotUnauthorized() *CreateDatabaseSnapshotUnauthorized

NewCreateDatabaseSnapshotUnauthorized creates a CreateDatabaseSnapshotUnauthorized with default headers values

func (*CreateDatabaseSnapshotUnauthorized) Error

func (*CreateDatabaseSnapshotUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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