usage

package
v0.0.0-...-cfedc03 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 10 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) GetUsage

func (a *Client) GetUsage(params *GetUsageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsageOK, error)

GetUsage gets usage

Get usage statistics for API calls and total number of secrets

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetUsage(params *GetUsageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsageOK, 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.

type GetUsageBadRequest

type GetUsageBadRequest struct {
	Payload *models.HTTPError
}
GetUsageBadRequest describes a response with status code 400, with default header values.

bad request

func NewGetUsageBadRequest

func NewGetUsageBadRequest() *GetUsageBadRequest

NewGetUsageBadRequest creates a GetUsageBadRequest with default headers values

func (*GetUsageBadRequest) Error

func (o *GetUsageBadRequest) Error() string

func (*GetUsageBadRequest) GetPayload

func (o *GetUsageBadRequest) GetPayload() *models.HTTPError

func (*GetUsageBadRequest) IsClientError

func (o *GetUsageBadRequest) IsClientError() bool

IsClientError returns true when this get usage bad request response has a 4xx status code

func (*GetUsageBadRequest) IsCode

func (o *GetUsageBadRequest) IsCode(code int) bool

IsCode returns true when this get usage bad request response a status code equal to that given

func (*GetUsageBadRequest) IsRedirect

func (o *GetUsageBadRequest) IsRedirect() bool

IsRedirect returns true when this get usage bad request response has a 3xx status code

func (*GetUsageBadRequest) IsServerError

func (o *GetUsageBadRequest) IsServerError() bool

IsServerError returns true when this get usage bad request response has a 5xx status code

func (*GetUsageBadRequest) IsSuccess

func (o *GetUsageBadRequest) IsSuccess() bool

IsSuccess returns true when this get usage bad request response has a 2xx status code

func (*GetUsageBadRequest) String

func (o *GetUsageBadRequest) String() string

type GetUsageForbidden

type GetUsageForbidden struct {
	Payload *models.HTTPError
}
GetUsageForbidden describes a response with status code 403, with default header values.

forbidden

func NewGetUsageForbidden

func NewGetUsageForbidden() *GetUsageForbidden

NewGetUsageForbidden creates a GetUsageForbidden with default headers values

func (*GetUsageForbidden) Error

func (o *GetUsageForbidden) Error() string

func (*GetUsageForbidden) GetPayload

func (o *GetUsageForbidden) GetPayload() *models.HTTPError

func (*GetUsageForbidden) IsClientError

func (o *GetUsageForbidden) IsClientError() bool

IsClientError returns true when this get usage forbidden response has a 4xx status code

func (*GetUsageForbidden) IsCode

func (o *GetUsageForbidden) IsCode(code int) bool

IsCode returns true when this get usage forbidden response a status code equal to that given

func (*GetUsageForbidden) IsRedirect

func (o *GetUsageForbidden) IsRedirect() bool

IsRedirect returns true when this get usage forbidden response has a 3xx status code

func (*GetUsageForbidden) IsServerError

func (o *GetUsageForbidden) IsServerError() bool

IsServerError returns true when this get usage forbidden response has a 5xx status code

func (*GetUsageForbidden) IsSuccess

func (o *GetUsageForbidden) IsSuccess() bool

IsSuccess returns true when this get usage forbidden response has a 2xx status code

func (*GetUsageForbidden) String

func (o *GetUsageForbidden) String() string

type GetUsageInternalServerError

type GetUsageInternalServerError struct {
	Payload *models.HTTPError
}
GetUsageInternalServerError describes a response with status code 500, with default header values.

server error

func NewGetUsageInternalServerError

func NewGetUsageInternalServerError() *GetUsageInternalServerError

NewGetUsageInternalServerError creates a GetUsageInternalServerError with default headers values

func (*GetUsageInternalServerError) Error

func (*GetUsageInternalServerError) GetPayload

func (o *GetUsageInternalServerError) GetPayload() *models.HTTPError

func (*GetUsageInternalServerError) IsClientError

func (o *GetUsageInternalServerError) IsClientError() bool

IsClientError returns true when this get usage internal server error response has a 4xx status code

func (*GetUsageInternalServerError) IsCode

func (o *GetUsageInternalServerError) IsCode(code int) bool

IsCode returns true when this get usage internal server error response a status code equal to that given

func (*GetUsageInternalServerError) IsRedirect

func (o *GetUsageInternalServerError) IsRedirect() bool

IsRedirect returns true when this get usage internal server error response has a 3xx status code

func (*GetUsageInternalServerError) IsServerError

func (o *GetUsageInternalServerError) IsServerError() bool

IsServerError returns true when this get usage internal server error response has a 5xx status code

func (*GetUsageInternalServerError) IsSuccess

func (o *GetUsageInternalServerError) IsSuccess() bool

IsSuccess returns true when this get usage internal server error response has a 2xx status code

func (*GetUsageInternalServerError) String

func (o *GetUsageInternalServerError) String() string

type GetUsageOK

type GetUsageOK struct {
	Payload *models.UsageResponseGeneral
}
GetUsageOK describes a response with status code 200, with default header values.

no error

func NewGetUsageOK

func NewGetUsageOK() *GetUsageOK

NewGetUsageOK creates a GetUsageOK with default headers values

func (*GetUsageOK) Error

func (o *GetUsageOK) Error() string

func (*GetUsageOK) GetPayload

func (o *GetUsageOK) GetPayload() *models.UsageResponseGeneral

func (*GetUsageOK) IsClientError

func (o *GetUsageOK) IsClientError() bool

IsClientError returns true when this get usage o k response has a 4xx status code

func (*GetUsageOK) IsCode

func (o *GetUsageOK) IsCode(code int) bool

IsCode returns true when this get usage o k response a status code equal to that given

func (*GetUsageOK) IsRedirect

func (o *GetUsageOK) IsRedirect() bool

IsRedirect returns true when this get usage o k response has a 3xx status code

func (*GetUsageOK) IsServerError

func (o *GetUsageOK) IsServerError() bool

IsServerError returns true when this get usage o k response has a 5xx status code

func (*GetUsageOK) IsSuccess

func (o *GetUsageOK) IsSuccess() bool

IsSuccess returns true when this get usage o k response has a 2xx status code

func (*GetUsageOK) String

func (o *GetUsageOK) String() string

type GetUsageParams

type GetUsageParams struct {

	/* EndDate.

	   End date to get usage statistics, defaults to current date if not set
	*/
	EndDate *string

	/* StartDate.

	   Start date to get usage statistics
	*/
	StartDate string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetUsageParams contains all the parameters to send to the API endpoint

for the get usage operation.

Typically these are written to a http.Request.

func NewGetUsageParams

func NewGetUsageParams() *GetUsageParams

NewGetUsageParams creates a new GetUsageParams 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 NewGetUsageParamsWithContext

func NewGetUsageParamsWithContext(ctx context.Context) *GetUsageParams

NewGetUsageParamsWithContext creates a new GetUsageParams object with the ability to set a context for a request.

func NewGetUsageParamsWithHTTPClient

func NewGetUsageParamsWithHTTPClient(client *http.Client) *GetUsageParams

NewGetUsageParamsWithHTTPClient creates a new GetUsageParams object with the ability to set a custom HTTPClient for a request.

func NewGetUsageParamsWithTimeout

func NewGetUsageParamsWithTimeout(timeout time.Duration) *GetUsageParams

NewGetUsageParamsWithTimeout creates a new GetUsageParams object with the ability to set a timeout on a request.

func (*GetUsageParams) SetContext

func (o *GetUsageParams) SetContext(ctx context.Context)

SetContext adds the context to the get usage params

func (*GetUsageParams) SetDefaults

func (o *GetUsageParams) SetDefaults()

SetDefaults hydrates default values in the get usage params (not the query body).

All values with no default are reset to their zero value.

func (*GetUsageParams) SetEndDate

func (o *GetUsageParams) SetEndDate(endDate *string)

SetEndDate adds the endDate to the get usage params

func (*GetUsageParams) SetHTTPClient

func (o *GetUsageParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get usage params

func (*GetUsageParams) SetStartDate

func (o *GetUsageParams) SetStartDate(startDate string)

SetStartDate adds the startDate to the get usage params

func (*GetUsageParams) SetTimeout

func (o *GetUsageParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get usage params

func (*GetUsageParams) WithContext

func (o *GetUsageParams) WithContext(ctx context.Context) *GetUsageParams

WithContext adds the context to the get usage params

func (*GetUsageParams) WithDefaults

func (o *GetUsageParams) WithDefaults() *GetUsageParams

WithDefaults hydrates default values in the get usage params (not the query body).

All values with no default are reset to their zero value.

func (*GetUsageParams) WithEndDate

func (o *GetUsageParams) WithEndDate(endDate *string) *GetUsageParams

WithEndDate adds the endDate to the get usage params

func (*GetUsageParams) WithHTTPClient

func (o *GetUsageParams) WithHTTPClient(client *http.Client) *GetUsageParams

WithHTTPClient adds the HTTPClient to the get usage params

func (*GetUsageParams) WithStartDate

func (o *GetUsageParams) WithStartDate(startDate string) *GetUsageParams

WithStartDate adds the startDate to the get usage params

func (*GetUsageParams) WithTimeout

func (o *GetUsageParams) WithTimeout(timeout time.Duration) *GetUsageParams

WithTimeout adds the timeout to the get usage params

func (*GetUsageParams) WriteToRequest

func (o *GetUsageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetUsageReader

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

GetUsageReader is a Reader for the GetUsage structure.

func (*GetUsageReader) ReadResponse

func (o *GetUsageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetUsageUnauthorized

type GetUsageUnauthorized struct {
	Payload *models.HTTPError
}
GetUsageUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewGetUsageUnauthorized

func NewGetUsageUnauthorized() *GetUsageUnauthorized

NewGetUsageUnauthorized creates a GetUsageUnauthorized with default headers values

func (*GetUsageUnauthorized) Error

func (o *GetUsageUnauthorized) Error() string

func (*GetUsageUnauthorized) GetPayload

func (o *GetUsageUnauthorized) GetPayload() *models.HTTPError

func (*GetUsageUnauthorized) IsClientError

func (o *GetUsageUnauthorized) IsClientError() bool

IsClientError returns true when this get usage unauthorized response has a 4xx status code

func (*GetUsageUnauthorized) IsCode

func (o *GetUsageUnauthorized) IsCode(code int) bool

IsCode returns true when this get usage unauthorized response a status code equal to that given

func (*GetUsageUnauthorized) IsRedirect

func (o *GetUsageUnauthorized) IsRedirect() bool

IsRedirect returns true when this get usage unauthorized response has a 3xx status code

func (*GetUsageUnauthorized) IsServerError

func (o *GetUsageUnauthorized) IsServerError() bool

IsServerError returns true when this get usage unauthorized response has a 5xx status code

func (*GetUsageUnauthorized) IsSuccess

func (o *GetUsageUnauthorized) IsSuccess() bool

IsSuccess returns true when this get usage unauthorized response has a 2xx status code

func (*GetUsageUnauthorized) String

func (o *GetUsageUnauthorized) String() string

Jump to

Keyboard shortcuts

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