quota

package
v0.0.0-...-8f56799 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: EPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GetQuotasForbiddenCode int = 403

GetQuotasForbiddenCode is the HTTP code returned for type GetQuotasForbidden

View Source
const GetQuotasInternalServerErrorCode int = 500

GetQuotasInternalServerErrorCode is the HTTP code returned for type GetQuotasInternalServerError

View Source
const GetQuotasMethodNotAllowedCode int = 405

GetQuotasMethodNotAllowedCode is the HTTP code returned for type GetQuotasMethodNotAllowed

View Source
const GetQuotasNotFoundCode int = 404

GetQuotasNotFoundCode is the HTTP code returned for type GetQuotasNotFound

View Source
const GetQuotasOKCode int = 200

GetQuotasOKCode is the HTTP code returned for type GetQuotasOK

View Source
const GetQuotasServiceUnavailableCode int = 503

GetQuotasServiceUnavailableCode is the HTTP code returned for type GetQuotasServiceUnavailable

Variables

This section is empty.

Functions

This section is empty.

Types

type GetQuotas

type GetQuotas struct {
	Context *middleware.Context
	Handler GetQuotasHandler
}
GetQuotas swagger:route GET /quotas quota getQuotas

Refresh quota info

Retrieve all quotas set

func NewGetQuotas

func NewGetQuotas(ctx *middleware.Context, handler GetQuotasHandler) *GetQuotas

NewGetQuotas creates a new http.Handler for the get quotas operation

func (*GetQuotas) ServeHTTP

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

type GetQuotasForbidden

type GetQuotasForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.APIResponse `json:"body,omitempty"`
}

GetQuotasForbidden Forbidden from querying quota info

swagger:response getQuotasForbidden

func NewGetQuotasForbidden

func NewGetQuotasForbidden() *GetQuotasForbidden

NewGetQuotasForbidden creates GetQuotasForbidden with default headers values

func (*GetQuotasForbidden) SetPayload

func (o *GetQuotasForbidden) SetPayload(payload *models.APIResponse)

SetPayload sets the payload to the get quotas forbidden response

func (*GetQuotasForbidden) WithPayload

func (o *GetQuotasForbidden) WithPayload(payload *models.APIResponse) *GetQuotasForbidden

WithPayload adds the payload to the get quotas forbidden response

func (*GetQuotasForbidden) WriteResponse

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

WriteResponse to the client

type GetQuotasHandler

type GetQuotasHandler interface {
	Handle(GetQuotasParams) middleware.Responder
}

GetQuotasHandler interface for that can handle valid get quotas params

type GetQuotasHandlerFunc

type GetQuotasHandlerFunc func(GetQuotasParams) middleware.Responder

GetQuotasHandlerFunc turns a function with the right signature into a get quotas handler

func (GetQuotasHandlerFunc) Handle

Handle executing the request and returning a response

type GetQuotasInternalServerError

type GetQuotasInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.APIResponse `json:"body,omitempty"`
}

GetQuotasInternalServerError TOC controller error

swagger:response getQuotasInternalServerError

func NewGetQuotasInternalServerError

func NewGetQuotasInternalServerError() *GetQuotasInternalServerError

NewGetQuotasInternalServerError creates GetQuotasInternalServerError with default headers values

func (*GetQuotasInternalServerError) SetPayload

func (o *GetQuotasInternalServerError) SetPayload(payload *models.APIResponse)

SetPayload sets the payload to the get quotas internal server error response

func (*GetQuotasInternalServerError) WithPayload

WithPayload adds the payload to the get quotas internal server error response

func (*GetQuotasInternalServerError) WriteResponse

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

WriteResponse to the client

type GetQuotasMethodNotAllowed

type GetQuotasMethodNotAllowed struct {

	/*
	  In: Body
	*/
	Payload *models.APIResponse `json:"body,omitempty"`
}

GetQuotasMethodNotAllowed Bad request

swagger:response getQuotasMethodNotAllowed

func NewGetQuotasMethodNotAllowed

func NewGetQuotasMethodNotAllowed() *GetQuotasMethodNotAllowed

NewGetQuotasMethodNotAllowed creates GetQuotasMethodNotAllowed with default headers values

func (*GetQuotasMethodNotAllowed) SetPayload

func (o *GetQuotasMethodNotAllowed) SetPayload(payload *models.APIResponse)

SetPayload sets the payload to the get quotas method not allowed response

func (*GetQuotasMethodNotAllowed) WithPayload

WithPayload adds the payload to the get quotas method not allowed response

func (*GetQuotasMethodNotAllowed) WriteResponse

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

WriteResponse to the client

type GetQuotasNotFound

type GetQuotasNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.APIResponse `json:"body,omitempty"`
}

GetQuotasNotFound Quota not found

swagger:response getQuotasNotFound

func NewGetQuotasNotFound

func NewGetQuotasNotFound() *GetQuotasNotFound

NewGetQuotasNotFound creates GetQuotasNotFound with default headers values

func (*GetQuotasNotFound) SetPayload

func (o *GetQuotasNotFound) SetPayload(payload *models.APIResponse)

SetPayload sets the payload to the get quotas not found response

func (*GetQuotasNotFound) WithPayload

func (o *GetQuotasNotFound) WithPayload(payload *models.APIResponse) *GetQuotasNotFound

WithPayload adds the payload to the get quotas not found response

func (*GetQuotasNotFound) WriteResponse

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

WriteResponse to the client

type GetQuotasOK

type GetQuotasOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Quota `json:"body,omitempty"`
}

GetQuotasOK Quotas retrieved

swagger:response getQuotasOK

func NewGetQuotasOK

func NewGetQuotasOK() *GetQuotasOK

NewGetQuotasOK creates GetQuotasOK with default headers values

func (*GetQuotasOK) SetPayload

func (o *GetQuotasOK) SetPayload(payload []*models.Quota)

SetPayload sets the payload to the get quotas o k response

func (*GetQuotasOK) WithPayload

func (o *GetQuotasOK) WithPayload(payload []*models.Quota) *GetQuotasOK

WithPayload adds the payload to the get quotas o k response

func (*GetQuotasOK) WriteResponse

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

WriteResponse to the client

type GetQuotasParams

type GetQuotasParams struct {

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

GetQuotasParams contains all the bound params for the get quotas operation typically these are obtained from a http.Request

swagger:parameters getQuotas

func NewGetQuotasParams

func NewGetQuotasParams() GetQuotasParams

NewGetQuotasParams creates a new GetQuotasParams object

There are no default values defined in the spec.

func (*GetQuotasParams) BindRequest

func (o *GetQuotasParams) 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 NewGetQuotasParams() beforehand.

type GetQuotasServiceUnavailable

type GetQuotasServiceUnavailable struct {

	/*
	  In: Body
	*/
	Payload *models.APIResponse `json:"body,omitempty"`
}

GetQuotasServiceUnavailable Service unavailable

swagger:response getQuotasServiceUnavailable

func NewGetQuotasServiceUnavailable

func NewGetQuotasServiceUnavailable() *GetQuotasServiceUnavailable

NewGetQuotasServiceUnavailable creates GetQuotasServiceUnavailable with default headers values

func (*GetQuotasServiceUnavailable) SetPayload

func (o *GetQuotasServiceUnavailable) SetPayload(payload *models.APIResponse)

SetPayload sets the payload to the get quotas service unavailable response

func (*GetQuotasServiceUnavailable) WithPayload

WithPayload adds the payload to the get quotas service unavailable response

func (*GetQuotasServiceUnavailable) WriteResponse

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

WriteResponse to the client

type GetQuotasURL

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

GetQuotasURL generates an URL for the get quotas operation

func (*GetQuotasURL) Build

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

Build a url path and query string

func (*GetQuotasURL) BuildFull

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

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

func (*GetQuotasURL) Must

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

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

func (*GetQuotasURL) SetBasePath

func (o *GetQuotasURL) 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 (*GetQuotasURL) String

func (o *GetQuotasURL) String() string

String returns the string representation of the path with query string

func (*GetQuotasURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetQuotasURL) WithBasePath

func (o *GetQuotasURL) WithBasePath(bp string) *GetQuotasURL

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

Jump to

Keyboard shortcuts

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