usage

package
v0.0.0-...-9ad40bb Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

type SystemGetTenantUsageForbidden struct {
	Payload *models.Error
}

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

Code gets the status code for the system get tenant usage forbidden response

func (*SystemGetTenantUsageForbidden) Error

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

type SystemGetTenantUsageNotFound

type SystemGetTenantUsageNotFound struct {
	Payload *models.Error
}

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

Code gets the status code for the system get tenant usage not found response

func (*SystemGetTenantUsageNotFound) Error

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

type SystemGetTenantUsageOK

type SystemGetTenantUsageOK struct {
	Payload *models.Usage
}

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

WithContext adds the context to the system get tenant usage params

func (*SystemGetTenantUsageParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the system get tenant usage params

func (*SystemGetTenantUsageParams) WithTenantID

WithTenantID adds the tenantID to the system get tenant usage params

func (*SystemGetTenantUsageParams) WithTimeout

WithTimeout adds the timeout to the system get tenant usage params

func (*SystemGetTenantUsageParams) WriteToRequest

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

type SystemGetTenantUsageTooManyRequests struct {
	Payload *models.Error
}

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

Code gets the status code for the system get tenant usage too many requests response

func (*SystemGetTenantUsageTooManyRequests) Error

func (*SystemGetTenantUsageTooManyRequests) GetPayload

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

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

IsSuccess returns true when this system get tenant usage too many requests response has a 2xx status code

func (*SystemGetTenantUsageTooManyRequests) String

type SystemGetTenantUsageUnauthorized

type SystemGetTenantUsageUnauthorized struct {
	Payload *models.Error
}

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

Code gets the status code for the system get tenant usage unauthorized response

func (*SystemGetTenantUsageUnauthorized) Error

func (*SystemGetTenantUsageUnauthorized) GetPayload

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

Jump to

Keyboard shortcuts

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