database

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CreateDatabaseSnapshotOKCode int = 200

CreateDatabaseSnapshotOKCode is the HTTP code returned for type CreateDatabaseSnapshotOK

View Source
const CreateDatabaseSnapshotTooManyRequestsCode int = 429

CreateDatabaseSnapshotTooManyRequestsCode is the HTTP code returned for type CreateDatabaseSnapshotTooManyRequests

View Source
const CreateDatabaseSnapshotUnauthorizedCode int = 401

CreateDatabaseSnapshotUnauthorizedCode is the HTTP code returned for type CreateDatabaseSnapshotUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDatabaseSnapshot

type CreateDatabaseSnapshot struct {
	Context *middleware.Context
	Handler CreateDatabaseSnapshotHandler
}

CreateDatabaseSnapshot swagger:route POST /database/snapshot Database createDatabaseSnapshot

Create a new database snapshot

Create a new database snapshot. Requires admin access.

func NewCreateDatabaseSnapshot

func NewCreateDatabaseSnapshot(ctx *middleware.Context, handler CreateDatabaseSnapshotHandler) *CreateDatabaseSnapshot

NewCreateDatabaseSnapshot creates a new http.Handler for the create database snapshot operation

func (*CreateDatabaseSnapshot) ServeHTTP

func (o *CreateDatabaseSnapshot) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateDatabaseSnapshotHandler

type CreateDatabaseSnapshotHandler interface {
	Handle(CreateDatabaseSnapshotParams, interface{}) middleware.Responder
}

CreateDatabaseSnapshotHandler interface for that can handle valid create database snapshot params

type CreateDatabaseSnapshotHandlerFunc

type CreateDatabaseSnapshotHandlerFunc func(CreateDatabaseSnapshotParams, interface{}) middleware.Responder

CreateDatabaseSnapshotHandlerFunc turns a function with the right signature into a create database snapshot handler

func (CreateDatabaseSnapshotHandlerFunc) Handle

Handle executing the request and returning a response

type CreateDatabaseSnapshotOK

type CreateDatabaseSnapshotOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

CreateDatabaseSnapshotOK Base empty response

swagger:response createDatabaseSnapshotOK

func NewCreateDatabaseSnapshotOK

func NewCreateDatabaseSnapshotOK() *CreateDatabaseSnapshotOK

NewCreateDatabaseSnapshotOK creates CreateDatabaseSnapshotOK with default headers values

func (*CreateDatabaseSnapshotOK) SetPayload

func (o *CreateDatabaseSnapshotOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the create database snapshot o k response

func (*CreateDatabaseSnapshotOK) WithPayload

WithPayload adds the payload to the create database snapshot o k response

func (*CreateDatabaseSnapshotOK) WriteResponse

func (o *CreateDatabaseSnapshotOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateDatabaseSnapshotParams

type CreateDatabaseSnapshotParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

CreateDatabaseSnapshotParams contains all the bound params for the create database snapshot operation typically these are obtained from a http.Request

swagger:parameters createDatabaseSnapshot

func NewCreateDatabaseSnapshotParams

func NewCreateDatabaseSnapshotParams() CreateDatabaseSnapshotParams

NewCreateDatabaseSnapshotParams creates a new CreateDatabaseSnapshotParams object no default values defined in spec.

func (*CreateDatabaseSnapshotParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateDatabaseSnapshotParams() beforehand.

type CreateDatabaseSnapshotTooManyRequests

type CreateDatabaseSnapshotTooManyRequests struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response createDatabaseSnapshotTooManyRequests

func NewCreateDatabaseSnapshotTooManyRequests

func NewCreateDatabaseSnapshotTooManyRequests() *CreateDatabaseSnapshotTooManyRequests

NewCreateDatabaseSnapshotTooManyRequests creates CreateDatabaseSnapshotTooManyRequests with default headers values

func (*CreateDatabaseSnapshotTooManyRequests) SetPayload

SetPayload sets the payload to the create database snapshot too many requests response

func (*CreateDatabaseSnapshotTooManyRequests) WithPayload

WithPayload adds the payload to the create database snapshot too many requests response

func (*CreateDatabaseSnapshotTooManyRequests) WriteResponse

WriteResponse to the client

type CreateDatabaseSnapshotURL

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

CreateDatabaseSnapshotURL generates an URL for the create database snapshot operation

func (*CreateDatabaseSnapshotURL) Build

func (o *CreateDatabaseSnapshotURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateDatabaseSnapshotURL) BuildFull

func (o *CreateDatabaseSnapshotURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateDatabaseSnapshotURL) Must

func (o *CreateDatabaseSnapshotURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateDatabaseSnapshotURL) SetBasePath

func (o *CreateDatabaseSnapshotURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateDatabaseSnapshotURL) String

func (o *CreateDatabaseSnapshotURL) String() string

String returns the string representation of the path with query string

func (*CreateDatabaseSnapshotURL) StringFull

func (o *CreateDatabaseSnapshotURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateDatabaseSnapshotURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CreateDatabaseSnapshotUnauthorized

type CreateDatabaseSnapshotUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response createDatabaseSnapshotUnauthorized

func NewCreateDatabaseSnapshotUnauthorized

func NewCreateDatabaseSnapshotUnauthorized() *CreateDatabaseSnapshotUnauthorized

NewCreateDatabaseSnapshotUnauthorized creates CreateDatabaseSnapshotUnauthorized with default headers values

func (*CreateDatabaseSnapshotUnauthorized) SetPayload

SetPayload sets the payload to the create database snapshot unauthorized response

func (*CreateDatabaseSnapshotUnauthorized) WithPayload

WithPayload adds the payload to the create database snapshot unauthorized response

func (*CreateDatabaseSnapshotUnauthorized) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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