Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type SystemGetTenantUsageForbidden
- func (o *SystemGetTenantUsageForbidden) Code() int
- func (o *SystemGetTenantUsageForbidden) Error() string
- func (o *SystemGetTenantUsageForbidden) GetPayload() *models.Error
- func (o *SystemGetTenantUsageForbidden) IsClientError() bool
- func (o *SystemGetTenantUsageForbidden) IsCode(code int) bool
- func (o *SystemGetTenantUsageForbidden) IsRedirect() bool
- func (o *SystemGetTenantUsageForbidden) IsServerError() bool
- func (o *SystemGetTenantUsageForbidden) IsSuccess() bool
- func (o *SystemGetTenantUsageForbidden) String() string
- type SystemGetTenantUsageNotFound
- func (o *SystemGetTenantUsageNotFound) Code() int
- func (o *SystemGetTenantUsageNotFound) Error() string
- func (o *SystemGetTenantUsageNotFound) GetPayload() *models.Error
- func (o *SystemGetTenantUsageNotFound) IsClientError() bool
- func (o *SystemGetTenantUsageNotFound) IsCode(code int) bool
- func (o *SystemGetTenantUsageNotFound) IsRedirect() bool
- func (o *SystemGetTenantUsageNotFound) IsServerError() bool
- func (o *SystemGetTenantUsageNotFound) IsSuccess() bool
- func (o *SystemGetTenantUsageNotFound) String() string
- type SystemGetTenantUsageOK
- func (o *SystemGetTenantUsageOK) Code() int
- func (o *SystemGetTenantUsageOK) Error() string
- func (o *SystemGetTenantUsageOK) GetPayload() *models.Usage
- func (o *SystemGetTenantUsageOK) IsClientError() bool
- func (o *SystemGetTenantUsageOK) IsCode(code int) bool
- func (o *SystemGetTenantUsageOK) IsRedirect() bool
- func (o *SystemGetTenantUsageOK) IsServerError() bool
- func (o *SystemGetTenantUsageOK) IsSuccess() bool
- func (o *SystemGetTenantUsageOK) String() string
- type SystemGetTenantUsageParams
- func NewSystemGetTenantUsageParams() *SystemGetTenantUsageParams
- func NewSystemGetTenantUsageParamsWithContext(ctx context.Context) *SystemGetTenantUsageParams
- func NewSystemGetTenantUsageParamsWithHTTPClient(client *http.Client) *SystemGetTenantUsageParams
- func NewSystemGetTenantUsageParamsWithTimeout(timeout time.Duration) *SystemGetTenantUsageParams
- func (o *SystemGetTenantUsageParams) SetContext(ctx context.Context)
- func (o *SystemGetTenantUsageParams) SetDefaults()
- func (o *SystemGetTenantUsageParams) SetHTTPClient(client *http.Client)
- func (o *SystemGetTenantUsageParams) SetTenantID(tenantID string)
- func (o *SystemGetTenantUsageParams) SetTimeout(timeout time.Duration)
- func (o *SystemGetTenantUsageParams) WithContext(ctx context.Context) *SystemGetTenantUsageParams
- func (o *SystemGetTenantUsageParams) WithDefaults() *SystemGetTenantUsageParams
- func (o *SystemGetTenantUsageParams) WithHTTPClient(client *http.Client) *SystemGetTenantUsageParams
- func (o *SystemGetTenantUsageParams) WithTenantID(tenantID string) *SystemGetTenantUsageParams
- func (o *SystemGetTenantUsageParams) WithTimeout(timeout time.Duration) *SystemGetTenantUsageParams
- func (o *SystemGetTenantUsageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SystemGetTenantUsageReader
- type SystemGetTenantUsageTooManyRequests
- func (o *SystemGetTenantUsageTooManyRequests) Code() int
- func (o *SystemGetTenantUsageTooManyRequests) Error() string
- func (o *SystemGetTenantUsageTooManyRequests) GetPayload() *models.Error
- func (o *SystemGetTenantUsageTooManyRequests) IsClientError() bool
- func (o *SystemGetTenantUsageTooManyRequests) IsCode(code int) bool
- func (o *SystemGetTenantUsageTooManyRequests) IsRedirect() bool
- func (o *SystemGetTenantUsageTooManyRequests) IsServerError() bool
- func (o *SystemGetTenantUsageTooManyRequests) IsSuccess() bool
- func (o *SystemGetTenantUsageTooManyRequests) String() string
- type SystemGetTenantUsageUnauthorized
- func (o *SystemGetTenantUsageUnauthorized) Code() int
- func (o *SystemGetTenantUsageUnauthorized) Error() string
- func (o *SystemGetTenantUsageUnauthorized) GetPayload() *models.Error
- func (o *SystemGetTenantUsageUnauthorized) IsClientError() bool
- func (o *SystemGetTenantUsageUnauthorized) IsCode(code int) bool
- func (o *SystemGetTenantUsageUnauthorized) IsRedirect() bool
- func (o *SystemGetTenantUsageUnauthorized) IsServerError() bool
- func (o *SystemGetTenantUsageUnauthorized) IsSuccess() bool
- func (o *SystemGetTenantUsageUnauthorized) String() string
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 usage API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) SystemGetTenantUsage ¶
func (a *Client) SystemGetTenantUsage(params *SystemGetTenantUsageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SystemGetTenantUsageOK, error)
SystemGetTenantUsage gets usage
Get usage.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
SystemGetTenantUsage(params *SystemGetTenantUsageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SystemGetTenantUsageOK, 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 usage API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new usage API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new usage API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type SystemGetTenantUsageForbidden ¶
SystemGetTenantUsageForbidden describes a response with status code 403, with default header values.
Forbidden
func NewSystemGetTenantUsageForbidden ¶
func NewSystemGetTenantUsageForbidden() *SystemGetTenantUsageForbidden
NewSystemGetTenantUsageForbidden creates a SystemGetTenantUsageForbidden with default headers values
func (*SystemGetTenantUsageForbidden) Code ¶
func (o *SystemGetTenantUsageForbidden) Code() int
Code gets the status code for the system get tenant usage forbidden response
func (*SystemGetTenantUsageForbidden) Error ¶
func (o *SystemGetTenantUsageForbidden) Error() string
func (*SystemGetTenantUsageForbidden) GetPayload ¶
func (o *SystemGetTenantUsageForbidden) GetPayload() *models.Error
func (*SystemGetTenantUsageForbidden) IsClientError ¶
func (o *SystemGetTenantUsageForbidden) IsClientError() bool
IsClientError returns true when this system get tenant usage forbidden response has a 4xx status code
func (*SystemGetTenantUsageForbidden) IsCode ¶
func (o *SystemGetTenantUsageForbidden) IsCode(code int) bool
IsCode returns true when this system get tenant usage forbidden response a status code equal to that given
func (*SystemGetTenantUsageForbidden) IsRedirect ¶
func (o *SystemGetTenantUsageForbidden) IsRedirect() bool
IsRedirect returns true when this system get tenant usage forbidden response has a 3xx status code
func (*SystemGetTenantUsageForbidden) IsServerError ¶
func (o *SystemGetTenantUsageForbidden) IsServerError() bool
IsServerError returns true when this system get tenant usage forbidden response has a 5xx status code
func (*SystemGetTenantUsageForbidden) IsSuccess ¶
func (o *SystemGetTenantUsageForbidden) IsSuccess() bool
IsSuccess returns true when this system get tenant usage forbidden response has a 2xx status code
func (*SystemGetTenantUsageForbidden) String ¶
func (o *SystemGetTenantUsageForbidden) String() string
type SystemGetTenantUsageNotFound ¶
SystemGetTenantUsageNotFound describes a response with status code 404, with default header values.
Not found
func NewSystemGetTenantUsageNotFound ¶
func NewSystemGetTenantUsageNotFound() *SystemGetTenantUsageNotFound
NewSystemGetTenantUsageNotFound creates a SystemGetTenantUsageNotFound with default headers values
func (*SystemGetTenantUsageNotFound) Code ¶
func (o *SystemGetTenantUsageNotFound) Code() int
Code gets the status code for the system get tenant usage not found response
func (*SystemGetTenantUsageNotFound) Error ¶
func (o *SystemGetTenantUsageNotFound) Error() string
func (*SystemGetTenantUsageNotFound) GetPayload ¶
func (o *SystemGetTenantUsageNotFound) GetPayload() *models.Error
func (*SystemGetTenantUsageNotFound) IsClientError ¶
func (o *SystemGetTenantUsageNotFound) IsClientError() bool
IsClientError returns true when this system get tenant usage not found response has a 4xx status code
func (*SystemGetTenantUsageNotFound) IsCode ¶
func (o *SystemGetTenantUsageNotFound) IsCode(code int) bool
IsCode returns true when this system get tenant usage not found response a status code equal to that given
func (*SystemGetTenantUsageNotFound) IsRedirect ¶
func (o *SystemGetTenantUsageNotFound) IsRedirect() bool
IsRedirect returns true when this system get tenant usage not found response has a 3xx status code
func (*SystemGetTenantUsageNotFound) IsServerError ¶
func (o *SystemGetTenantUsageNotFound) IsServerError() bool
IsServerError returns true when this system get tenant usage not found response has a 5xx status code
func (*SystemGetTenantUsageNotFound) IsSuccess ¶
func (o *SystemGetTenantUsageNotFound) IsSuccess() bool
IsSuccess returns true when this system get tenant usage not found response has a 2xx status code
func (*SystemGetTenantUsageNotFound) String ¶
func (o *SystemGetTenantUsageNotFound) String() string
type SystemGetTenantUsageOK ¶
SystemGetTenantUsageOK describes a response with status code 200, with default header values.
Usage
func NewSystemGetTenantUsageOK ¶
func NewSystemGetTenantUsageOK() *SystemGetTenantUsageOK
NewSystemGetTenantUsageOK creates a SystemGetTenantUsageOK with default headers values
func (*SystemGetTenantUsageOK) Code ¶
func (o *SystemGetTenantUsageOK) Code() int
Code gets the status code for the system get tenant usage o k response
func (*SystemGetTenantUsageOK) Error ¶
func (o *SystemGetTenantUsageOK) Error() string
func (*SystemGetTenantUsageOK) GetPayload ¶
func (o *SystemGetTenantUsageOK) GetPayload() *models.Usage
func (*SystemGetTenantUsageOK) IsClientError ¶
func (o *SystemGetTenantUsageOK) IsClientError() bool
IsClientError returns true when this system get tenant usage o k response has a 4xx status code
func (*SystemGetTenantUsageOK) IsCode ¶
func (o *SystemGetTenantUsageOK) IsCode(code int) bool
IsCode returns true when this system get tenant usage o k response a status code equal to that given
func (*SystemGetTenantUsageOK) IsRedirect ¶
func (o *SystemGetTenantUsageOK) IsRedirect() bool
IsRedirect returns true when this system get tenant usage o k response has a 3xx status code
func (*SystemGetTenantUsageOK) IsServerError ¶
func (o *SystemGetTenantUsageOK) IsServerError() bool
IsServerError returns true when this system get tenant usage o k response has a 5xx status code
func (*SystemGetTenantUsageOK) IsSuccess ¶
func (o *SystemGetTenantUsageOK) IsSuccess() bool
IsSuccess returns true when this system get tenant usage o k response has a 2xx status code
func (*SystemGetTenantUsageOK) String ¶
func (o *SystemGetTenantUsageOK) String() string
type SystemGetTenantUsageParams ¶
type SystemGetTenantUsageParams struct {
/* TenantID.
Tenant id
Default: "default"
*/
TenantID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
SystemGetTenantUsageParams contains all the parameters to send to the API endpoint
for the system get tenant usage operation. Typically these are written to a http.Request.
func NewSystemGetTenantUsageParams ¶
func NewSystemGetTenantUsageParams() *SystemGetTenantUsageParams
NewSystemGetTenantUsageParams creates a new SystemGetTenantUsageParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSystemGetTenantUsageParamsWithContext ¶
func NewSystemGetTenantUsageParamsWithContext(ctx context.Context) *SystemGetTenantUsageParams
NewSystemGetTenantUsageParamsWithContext creates a new SystemGetTenantUsageParams object with the ability to set a context for a request.
func NewSystemGetTenantUsageParamsWithHTTPClient ¶
func NewSystemGetTenantUsageParamsWithHTTPClient(client *http.Client) *SystemGetTenantUsageParams
NewSystemGetTenantUsageParamsWithHTTPClient creates a new SystemGetTenantUsageParams object with the ability to set a custom HTTPClient for a request.
func NewSystemGetTenantUsageParamsWithTimeout ¶
func NewSystemGetTenantUsageParamsWithTimeout(timeout time.Duration) *SystemGetTenantUsageParams
NewSystemGetTenantUsageParamsWithTimeout creates a new SystemGetTenantUsageParams object with the ability to set a timeout on a request.
func (*SystemGetTenantUsageParams) SetContext ¶
func (o *SystemGetTenantUsageParams) SetContext(ctx context.Context)
SetContext adds the context to the system get tenant usage params
func (*SystemGetTenantUsageParams) SetDefaults ¶
func (o *SystemGetTenantUsageParams) SetDefaults()
SetDefaults hydrates default values in the system get tenant usage params (not the query body).
All values with no default are reset to their zero value.
func (*SystemGetTenantUsageParams) SetHTTPClient ¶
func (o *SystemGetTenantUsageParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the system get tenant usage params
func (*SystemGetTenantUsageParams) SetTenantID ¶
func (o *SystemGetTenantUsageParams) SetTenantID(tenantID string)
SetTenantID adds the tenantId to the system get tenant usage params
func (*SystemGetTenantUsageParams) SetTimeout ¶
func (o *SystemGetTenantUsageParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the system get tenant usage params
func (*SystemGetTenantUsageParams) WithContext ¶
func (o *SystemGetTenantUsageParams) WithContext(ctx context.Context) *SystemGetTenantUsageParams
WithContext adds the context to the system get tenant usage params
func (*SystemGetTenantUsageParams) WithDefaults ¶
func (o *SystemGetTenantUsageParams) WithDefaults() *SystemGetTenantUsageParams
WithDefaults hydrates default values in the system get tenant usage params (not the query body).
All values with no default are reset to their zero value.
func (*SystemGetTenantUsageParams) WithHTTPClient ¶
func (o *SystemGetTenantUsageParams) WithHTTPClient(client *http.Client) *SystemGetTenantUsageParams
WithHTTPClient adds the HTTPClient to the system get tenant usage params
func (*SystemGetTenantUsageParams) WithTenantID ¶
func (o *SystemGetTenantUsageParams) WithTenantID(tenantID string) *SystemGetTenantUsageParams
WithTenantID adds the tenantID to the system get tenant usage params
func (*SystemGetTenantUsageParams) WithTimeout ¶
func (o *SystemGetTenantUsageParams) WithTimeout(timeout time.Duration) *SystemGetTenantUsageParams
WithTimeout adds the timeout to the system get tenant usage params
func (*SystemGetTenantUsageParams) WriteToRequest ¶
func (o *SystemGetTenantUsageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SystemGetTenantUsageReader ¶
type SystemGetTenantUsageReader struct {
// contains filtered or unexported fields
}
SystemGetTenantUsageReader is a Reader for the SystemGetTenantUsage structure.
func (*SystemGetTenantUsageReader) ReadResponse ¶
func (o *SystemGetTenantUsageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SystemGetTenantUsageTooManyRequests ¶
SystemGetTenantUsageTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewSystemGetTenantUsageTooManyRequests ¶
func NewSystemGetTenantUsageTooManyRequests() *SystemGetTenantUsageTooManyRequests
NewSystemGetTenantUsageTooManyRequests creates a SystemGetTenantUsageTooManyRequests with default headers values
func (*SystemGetTenantUsageTooManyRequests) Code ¶
func (o *SystemGetTenantUsageTooManyRequests) Code() int
Code gets the status code for the system get tenant usage too many requests response
func (*SystemGetTenantUsageTooManyRequests) Error ¶
func (o *SystemGetTenantUsageTooManyRequests) Error() string
func (*SystemGetTenantUsageTooManyRequests) GetPayload ¶
func (o *SystemGetTenantUsageTooManyRequests) GetPayload() *models.Error
func (*SystemGetTenantUsageTooManyRequests) IsClientError ¶
func (o *SystemGetTenantUsageTooManyRequests) IsClientError() bool
IsClientError returns true when this system get tenant usage too many requests response has a 4xx status code
func (*SystemGetTenantUsageTooManyRequests) IsCode ¶
func (o *SystemGetTenantUsageTooManyRequests) IsCode(code int) bool
IsCode returns true when this system get tenant usage too many requests response a status code equal to that given
func (*SystemGetTenantUsageTooManyRequests) IsRedirect ¶
func (o *SystemGetTenantUsageTooManyRequests) IsRedirect() bool
IsRedirect returns true when this system get tenant usage too many requests response has a 3xx status code
func (*SystemGetTenantUsageTooManyRequests) IsServerError ¶
func (o *SystemGetTenantUsageTooManyRequests) IsServerError() bool
IsServerError returns true when this system get tenant usage too many requests response has a 5xx status code
func (*SystemGetTenantUsageTooManyRequests) IsSuccess ¶
func (o *SystemGetTenantUsageTooManyRequests) IsSuccess() bool
IsSuccess returns true when this system get tenant usage too many requests response has a 2xx status code
func (*SystemGetTenantUsageTooManyRequests) String ¶
func (o *SystemGetTenantUsageTooManyRequests) String() string
type SystemGetTenantUsageUnauthorized ¶
type SystemGetTenantUsageUnauthorized struct {
}
SystemGetTenantUsageUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewSystemGetTenantUsageUnauthorized ¶
func NewSystemGetTenantUsageUnauthorized() *SystemGetTenantUsageUnauthorized
NewSystemGetTenantUsageUnauthorized creates a SystemGetTenantUsageUnauthorized with default headers values
func (*SystemGetTenantUsageUnauthorized) Code ¶
func (o *SystemGetTenantUsageUnauthorized) Code() int
Code gets the status code for the system get tenant usage unauthorized response
func (*SystemGetTenantUsageUnauthorized) Error ¶
func (o *SystemGetTenantUsageUnauthorized) Error() string
func (*SystemGetTenantUsageUnauthorized) GetPayload ¶
func (o *SystemGetTenantUsageUnauthorized) GetPayload() *models.Error
func (*SystemGetTenantUsageUnauthorized) IsClientError ¶
func (o *SystemGetTenantUsageUnauthorized) IsClientError() bool
IsClientError returns true when this system get tenant usage unauthorized response has a 4xx status code
func (*SystemGetTenantUsageUnauthorized) IsCode ¶
func (o *SystemGetTenantUsageUnauthorized) IsCode(code int) bool
IsCode returns true when this system get tenant usage unauthorized response a status code equal to that given
func (*SystemGetTenantUsageUnauthorized) IsRedirect ¶
func (o *SystemGetTenantUsageUnauthorized) IsRedirect() bool
IsRedirect returns true when this system get tenant usage unauthorized response has a 3xx status code
func (*SystemGetTenantUsageUnauthorized) IsServerError ¶
func (o *SystemGetTenantUsageUnauthorized) IsServerError() bool
IsServerError returns true when this system get tenant usage unauthorized response has a 5xx status code
func (*SystemGetTenantUsageUnauthorized) IsSuccess ¶
func (o *SystemGetTenantUsageUnauthorized) IsSuccess() bool
IsSuccess returns true when this system get tenant usage unauthorized response has a 2xx status code
func (*SystemGetTenantUsageUnauthorized) String ¶
func (o *SystemGetTenantUsageUnauthorized) String() string