Documentation
¶
Index ¶
- Constants
- type GetSystemUsage
- type GetSystemUsageHandler
- type GetSystemUsageHandlerFunc
- type GetSystemUsageInternalServerError
- func (o *GetSystemUsageInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *GetSystemUsageInternalServerError) WithPayload(payload *models.ErrorResponse) *GetSystemUsageInternalServerError
- func (o *GetSystemUsageInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSystemUsageOK
- type GetSystemUsageParams
- type GetSystemUsageURL
- func (o *GetSystemUsageURL) Build() (*url.URL, error)
- func (o *GetSystemUsageURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSystemUsageURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSystemUsageURL) SetBasePath(bp string)
- func (o *GetSystemUsageURL) String() string
- func (o *GetSystemUsageURL) StringFull(scheme, host string) string
- func (o *GetSystemUsageURL) WithBasePath(bp string) *GetSystemUsageURL
- type GetUsage
- type GetUsageHandler
- type GetUsageHandlerFunc
- type GetUsageInternalServerError
- type GetUsageOK
- type GetUsageParams
- type GetUsageSummary
- type GetUsageSummaryHandler
- type GetUsageSummaryHandlerFunc
- type GetUsageSummaryInternalServerError
- func (o *GetUsageSummaryInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *GetUsageSummaryInternalServerError) WithPayload(payload *models.ErrorResponse) *GetUsageSummaryInternalServerError
- func (o *GetUsageSummaryInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUsageSummaryOK
- type GetUsageSummaryParams
- type GetUsageSummaryURL
- func (o *GetUsageSummaryURL) Build() (*url.URL, error)
- func (o *GetUsageSummaryURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUsageSummaryURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUsageSummaryURL) SetBasePath(bp string)
- func (o *GetUsageSummaryURL) String() string
- func (o *GetUsageSummaryURL) StringFull(scheme, host string) string
- func (o *GetUsageSummaryURL) WithBasePath(bp string) *GetUsageSummaryURL
- type GetUsageURL
- func (o *GetUsageURL) Build() (*url.URL, error)
- func (o *GetUsageURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUsageURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUsageURL) SetBasePath(bp string)
- func (o *GetUsageURL) String() string
- func (o *GetUsageURL) StringFull(scheme, host string) string
- func (o *GetUsageURL) WithBasePath(bp string) *GetUsageURL
Constants ¶
const GetSystemUsageInternalServerErrorCode int = 500
GetSystemUsageInternalServerErrorCode is the HTTP code returned for type GetSystemUsageInternalServerError
const GetSystemUsageOKCode int = 200
GetSystemUsageOKCode is the HTTP code returned for type GetSystemUsageOK
const GetUsageInternalServerErrorCode int = 500
GetUsageInternalServerErrorCode is the HTTP code returned for type GetUsageInternalServerError
const GetUsageOKCode int = 200
GetUsageOKCode is the HTTP code returned for type GetUsageOK
const GetUsageSummaryInternalServerErrorCode int = 500
GetUsageSummaryInternalServerErrorCode is the HTTP code returned for type GetUsageSummaryInternalServerError
const GetUsageSummaryOKCode int = 200
GetUsageSummaryOKCode is the HTTP code returned for type GetUsageSummaryOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetSystemUsage ¶
type GetSystemUsage struct { Context *middleware.Context Handler GetSystemUsageHandler }
GetSystemUsage swagger:route GET /usage usageManagement getSystemUsage
Detailed report covering all accounts within the specified time window
func NewGetSystemUsage ¶
func NewGetSystemUsage(ctx *middleware.Context, handler GetSystemUsageHandler) *GetSystemUsage
NewGetSystemUsage creates a new http.Handler for the get system usage operation
func (*GetSystemUsage) ServeHTTP ¶
func (o *GetSystemUsage) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSystemUsageHandler ¶
type GetSystemUsageHandler interface {
Handle(GetSystemUsageParams, interface{}) middleware.Responder
}
GetSystemUsageHandler interface for that can handle valid get system usage params
type GetSystemUsageHandlerFunc ¶
type GetSystemUsageHandlerFunc func(GetSystemUsageParams, interface{}) middleware.Responder
GetSystemUsageHandlerFunc turns a function with the right signature into a get system usage handler
func (GetSystemUsageHandlerFunc) Handle ¶
func (fn GetSystemUsageHandlerFunc) Handle(params GetSystemUsageParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetSystemUsageInternalServerError ¶
type GetSystemUsageInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetSystemUsageInternalServerError Something unexpected happend, error raised
swagger:response getSystemUsageInternalServerError
func NewGetSystemUsageInternalServerError ¶
func NewGetSystemUsageInternalServerError() *GetSystemUsageInternalServerError
NewGetSystemUsageInternalServerError creates GetSystemUsageInternalServerError with default headers values
func (*GetSystemUsageInternalServerError) SetPayload ¶
func (o *GetSystemUsageInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get system usage internal server error response
func (*GetSystemUsageInternalServerError) WithPayload ¶
func (o *GetSystemUsageInternalServerError) WithPayload(payload *models.ErrorResponse) *GetSystemUsageInternalServerError
WithPayload adds the payload to the get system usage internal server error response
func (*GetSystemUsageInternalServerError) WriteResponse ¶
func (o *GetSystemUsageInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSystemUsageOK ¶
GetSystemUsageOK Description of a successfully operation
swagger:response getSystemUsageOK
func NewGetSystemUsageOK ¶
func NewGetSystemUsageOK() *GetSystemUsageOK
NewGetSystemUsageOK creates GetSystemUsageOK with default headers values
func (*GetSystemUsageOK) SetPayload ¶
func (o *GetSystemUsageOK) SetPayload(payload []*models.CReport)
SetPayload sets the payload to the get system usage o k response
func (*GetSystemUsageOK) WithPayload ¶
func (o *GetSystemUsageOK) WithPayload(payload []*models.CReport) *GetSystemUsageOK
WithPayload adds the payload to the get system usage o k response
func (*GetSystemUsageOK) WriteResponse ¶
func (o *GetSystemUsageOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSystemUsageParams ¶
type GetSystemUsageParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Datetime from which to get the usage report In: query */ From *strfmt.DateTime /*List of ids to be queried In: query */ Idlist *string /*Metric(s) to get the usage report In: query */ Metric *string /*Datetime until which to get the usage report In: query */ To *strfmt.DateTime }
GetSystemUsageParams contains all the bound params for the get system usage operation typically these are obtained from a http.Request
swagger:parameters getSystemUsage
func NewGetSystemUsageParams ¶
func NewGetSystemUsageParams() GetSystemUsageParams
NewGetSystemUsageParams creates a new GetSystemUsageParams object no default values defined in spec.
func (*GetSystemUsageParams) BindRequest ¶
func (o *GetSystemUsageParams) 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 NewGetSystemUsageParams() beforehand.
type GetSystemUsageURL ¶
type GetSystemUsageURL struct { From *strfmt.DateTime Idlist *string Metric *string To *strfmt.DateTime // contains filtered or unexported fields }
GetSystemUsageURL generates an URL for the get system usage operation
func (*GetSystemUsageURL) Build ¶
func (o *GetSystemUsageURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSystemUsageURL) BuildFull ¶
func (o *GetSystemUsageURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSystemUsageURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSystemUsageURL) SetBasePath ¶
func (o *GetSystemUsageURL) 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 (*GetSystemUsageURL) String ¶
func (o *GetSystemUsageURL) String() string
String returns the string representation of the path with query string
func (*GetSystemUsageURL) StringFull ¶
func (o *GetSystemUsageURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSystemUsageURL) WithBasePath ¶
func (o *GetSystemUsageURL) WithBasePath(bp string) *GetSystemUsageURL
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 GetUsage ¶
type GetUsage struct { Context *middleware.Context Handler GetUsageHandler }
GetUsage swagger:route GET /usage/{id} usageManagement getUsage
Detailed report covering of the account associated with the id within the specified time window
func NewGetUsage ¶
func NewGetUsage(ctx *middleware.Context, handler GetUsageHandler) *GetUsage
NewGetUsage creates a new http.Handler for the get usage operation
type GetUsageHandler ¶
type GetUsageHandler interface {
Handle(GetUsageParams, interface{}) middleware.Responder
}
GetUsageHandler interface for that can handle valid get usage params
type GetUsageHandlerFunc ¶
type GetUsageHandlerFunc func(GetUsageParams, interface{}) middleware.Responder
GetUsageHandlerFunc turns a function with the right signature into a get usage handler
func (GetUsageHandlerFunc) Handle ¶
func (fn GetUsageHandlerFunc) Handle(params GetUsageParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetUsageInternalServerError ¶
type GetUsageInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetUsageInternalServerError Something unexpected happend, error raised
swagger:response getUsageInternalServerError
func NewGetUsageInternalServerError ¶
func NewGetUsageInternalServerError() *GetUsageInternalServerError
NewGetUsageInternalServerError creates GetUsageInternalServerError with default headers values
func (*GetUsageInternalServerError) SetPayload ¶
func (o *GetUsageInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get usage internal server error response
func (*GetUsageInternalServerError) WithPayload ¶
func (o *GetUsageInternalServerError) WithPayload(payload *models.ErrorResponse) *GetUsageInternalServerError
WithPayload adds the payload to the get usage internal server error response
func (*GetUsageInternalServerError) WriteResponse ¶
func (o *GetUsageInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsageOK ¶
GetUsageOK Description of a successfully operation
swagger:response getUsageOK
func NewGetUsageOK ¶
func NewGetUsageOK() *GetUsageOK
NewGetUsageOK creates GetUsageOK with default headers values
func (*GetUsageOK) SetPayload ¶
func (o *GetUsageOK) SetPayload(payload []*models.CReport)
SetPayload sets the payload to the get usage o k response
func (*GetUsageOK) WithPayload ¶
func (o *GetUsageOK) WithPayload(payload []*models.CReport) *GetUsageOK
WithPayload adds the payload to the get usage o k response
func (*GetUsageOK) WriteResponse ¶
func (o *GetUsageOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsageParams ¶
type GetUsageParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Datetime from which to get the usage report In: query */ From *strfmt.DateTime /*Id of the account to be checked Required: true In: path */ ID string /*Metric(s) to get the usage report In: query */ Metric *string /*Datetime until which to get the usage report In: query */ To *strfmt.DateTime }
GetUsageParams contains all the bound params for the get usage operation typically these are obtained from a http.Request
swagger:parameters getUsage
func NewGetUsageParams ¶
func NewGetUsageParams() GetUsageParams
NewGetUsageParams creates a new GetUsageParams object no default values defined in spec.
func (*GetUsageParams) BindRequest ¶
func (o *GetUsageParams) 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 NewGetUsageParams() beforehand.
type GetUsageSummary ¶
type GetUsageSummary struct { Context *middleware.Context Handler GetUsageSummaryHandler }
GetUsageSummary swagger:route GET /usage/summary/{id} usageManagement getUsageSummary
Summary report meant for the UI for the resources linked to the ResellerID provided within the specified time window
func NewGetUsageSummary ¶
func NewGetUsageSummary(ctx *middleware.Context, handler GetUsageSummaryHandler) *GetUsageSummary
NewGetUsageSummary creates a new http.Handler for the get usage summary operation
func (*GetUsageSummary) ServeHTTP ¶
func (o *GetUsageSummary) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetUsageSummaryHandler ¶
type GetUsageSummaryHandler interface {
Handle(GetUsageSummaryParams, interface{}) middleware.Responder
}
GetUsageSummaryHandler interface for that can handle valid get usage summary params
type GetUsageSummaryHandlerFunc ¶
type GetUsageSummaryHandlerFunc func(GetUsageSummaryParams, interface{}) middleware.Responder
GetUsageSummaryHandlerFunc turns a function with the right signature into a get usage summary handler
func (GetUsageSummaryHandlerFunc) Handle ¶
func (fn GetUsageSummaryHandlerFunc) Handle(params GetUsageSummaryParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetUsageSummaryInternalServerError ¶
type GetUsageSummaryInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetUsageSummaryInternalServerError Something unexpected happend, error raised
swagger:response getUsageSummaryInternalServerError
func NewGetUsageSummaryInternalServerError ¶
func NewGetUsageSummaryInternalServerError() *GetUsageSummaryInternalServerError
NewGetUsageSummaryInternalServerError creates GetUsageSummaryInternalServerError with default headers values
func (*GetUsageSummaryInternalServerError) SetPayload ¶
func (o *GetUsageSummaryInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get usage summary internal server error response
func (*GetUsageSummaryInternalServerError) WithPayload ¶
func (o *GetUsageSummaryInternalServerError) WithPayload(payload *models.ErrorResponse) *GetUsageSummaryInternalServerError
WithPayload adds the payload to the get usage summary internal server error response
func (*GetUsageSummaryInternalServerError) WriteResponse ¶
func (o *GetUsageSummaryInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsageSummaryOK ¶
GetUsageSummaryOK Description of a successfully operation
swagger:response getUsageSummaryOK
func NewGetUsageSummaryOK ¶
func NewGetUsageSummaryOK() *GetUsageSummaryOK
NewGetUsageSummaryOK creates GetUsageSummaryOK with default headers values
func (*GetUsageSummaryOK) SetPayload ¶
func (o *GetUsageSummaryOK) SetPayload(payload *models.UISummary)
SetPayload sets the payload to the get usage summary o k response
func (*GetUsageSummaryOK) WithPayload ¶
func (o *GetUsageSummaryOK) WithPayload(payload *models.UISummary) *GetUsageSummaryOK
WithPayload adds the payload to the get usage summary o k response
func (*GetUsageSummaryOK) WriteResponse ¶
func (o *GetUsageSummaryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsageSummaryParams ¶
type GetUsageSummaryParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Datetime from which to get the usage report In: query */ From *strfmt.DateTime /*Id of the reseller to be checked Required: true In: path */ ID string /*Datetime until which to get the usage report In: query */ To *strfmt.DateTime }
GetUsageSummaryParams contains all the bound params for the get usage summary operation typically these are obtained from a http.Request
swagger:parameters getUsageSummary
func NewGetUsageSummaryParams ¶
func NewGetUsageSummaryParams() GetUsageSummaryParams
NewGetUsageSummaryParams creates a new GetUsageSummaryParams object no default values defined in spec.
func (*GetUsageSummaryParams) BindRequest ¶
func (o *GetUsageSummaryParams) 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 NewGetUsageSummaryParams() beforehand.
type GetUsageSummaryURL ¶
type GetUsageSummaryURL struct { ID string From *strfmt.DateTime To *strfmt.DateTime // contains filtered or unexported fields }
GetUsageSummaryURL generates an URL for the get usage summary operation
func (*GetUsageSummaryURL) Build ¶
func (o *GetUsageSummaryURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUsageSummaryURL) BuildFull ¶
func (o *GetUsageSummaryURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUsageSummaryURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetUsageSummaryURL) SetBasePath ¶
func (o *GetUsageSummaryURL) 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 (*GetUsageSummaryURL) String ¶
func (o *GetUsageSummaryURL) String() string
String returns the string representation of the path with query string
func (*GetUsageSummaryURL) StringFull ¶
func (o *GetUsageSummaryURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUsageSummaryURL) WithBasePath ¶
func (o *GetUsageSummaryURL) WithBasePath(bp string) *GetUsageSummaryURL
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 GetUsageURL ¶
type GetUsageURL struct { ID string From *strfmt.DateTime Metric *string To *strfmt.DateTime // contains filtered or unexported fields }
GetUsageURL generates an URL for the get usage operation
func (*GetUsageURL) Build ¶
func (o *GetUsageURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUsageURL) BuildFull ¶
func (o *GetUsageURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUsageURL) SetBasePath ¶
func (o *GetUsageURL) 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 (*GetUsageURL) String ¶
func (o *GetUsageURL) String() string
String returns the string representation of the path with query string
func (*GetUsageURL) StringFull ¶
func (o *GetUsageURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUsageURL) WithBasePath ¶
func (o *GetUsageURL) WithBasePath(bp string) *GetUsageURL
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
Source Files
¶
- get_system_usage.go
- get_system_usage_parameters.go
- get_system_usage_responses.go
- get_system_usage_urlbuilder.go
- get_usage.go
- get_usage_parameters.go
- get_usage_responses.go
- get_usage_summary.go
- get_usage_summary_parameters.go
- get_usage_summary_responses.go
- get_usage_summary_urlbuilder.go
- get_usage_urlbuilder.go