Documentation ¶
Index ¶
- Constants
- type CreateDatabaseSnapshot
- type CreateDatabaseSnapshotHandler
- type CreateDatabaseSnapshotHandlerFunc
- type CreateDatabaseSnapshotOK
- type CreateDatabaseSnapshotParams
- type CreateDatabaseSnapshotTooManyRequests
- func (o *CreateDatabaseSnapshotTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *CreateDatabaseSnapshotTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateDatabaseSnapshotTooManyRequests
- func (o *CreateDatabaseSnapshotTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateDatabaseSnapshotURL
- func (o *CreateDatabaseSnapshotURL) Build() (*url.URL, error)
- func (o *CreateDatabaseSnapshotURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateDatabaseSnapshotURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateDatabaseSnapshotURL) SetBasePath(bp string)
- func (o *CreateDatabaseSnapshotURL) String() string
- func (o *CreateDatabaseSnapshotURL) StringFull(scheme, host string) string
- func (o *CreateDatabaseSnapshotURL) WithBasePath(bp string) *CreateDatabaseSnapshotURL
- type CreateDatabaseSnapshotUnauthorized
- func (o *CreateDatabaseSnapshotUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
- func (o *CreateDatabaseSnapshotUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateDatabaseSnapshotUnauthorized
- func (o *CreateDatabaseSnapshotUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const CreateDatabaseSnapshotOKCode int = 200
CreateDatabaseSnapshotOKCode is the HTTP code returned for type CreateDatabaseSnapshotOK
const CreateDatabaseSnapshotTooManyRequestsCode int = 429
CreateDatabaseSnapshotTooManyRequestsCode is the HTTP code returned for type CreateDatabaseSnapshotTooManyRequests
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 ¶
func (fn CreateDatabaseSnapshotHandlerFunc) Handle(params CreateDatabaseSnapshotParams, principal interface{}) middleware.Responder
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 ¶
func (o *CreateDatabaseSnapshotOK) WithPayload(payload *rest_model.Empty) *CreateDatabaseSnapshotOK
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 ¶
func (o *CreateDatabaseSnapshotParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
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 ¶
func (o *CreateDatabaseSnapshotTooManyRequests) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create database snapshot too many requests response
func (*CreateDatabaseSnapshotTooManyRequests) WithPayload ¶
func (o *CreateDatabaseSnapshotTooManyRequests) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateDatabaseSnapshotTooManyRequests
WithPayload adds the payload to the create database snapshot too many requests response
func (*CreateDatabaseSnapshotTooManyRequests) WriteResponse ¶
func (o *CreateDatabaseSnapshotTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
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 ¶
func (o *CreateDatabaseSnapshotURL) WithBasePath(bp string) *CreateDatabaseSnapshotURL
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 { rest_model.APIErrorEnvelope `json:"body,omitempty"` }Payload *
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 ¶
func (o *CreateDatabaseSnapshotUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope)
SetPayload sets the payload to the create database snapshot unauthorized response
func (*CreateDatabaseSnapshotUnauthorized) WithPayload ¶
func (o *CreateDatabaseSnapshotUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *CreateDatabaseSnapshotUnauthorized
WithPayload adds the payload to the create database snapshot unauthorized response
func (*CreateDatabaseSnapshotUnauthorized) WriteResponse ¶
func (o *CreateDatabaseSnapshotUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client