Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetUsageBadRequest
- func (o *GetUsageBadRequest) Error() string
- func (o *GetUsageBadRequest) GetPayload() *models.HTTPError
- func (o *GetUsageBadRequest) IsClientError() bool
- func (o *GetUsageBadRequest) IsCode(code int) bool
- func (o *GetUsageBadRequest) IsRedirect() bool
- func (o *GetUsageBadRequest) IsServerError() bool
- func (o *GetUsageBadRequest) IsSuccess() bool
- func (o *GetUsageBadRequest) String() string
- type GetUsageForbidden
- func (o *GetUsageForbidden) Error() string
- func (o *GetUsageForbidden) GetPayload() *models.HTTPError
- func (o *GetUsageForbidden) IsClientError() bool
- func (o *GetUsageForbidden) IsCode(code int) bool
- func (o *GetUsageForbidden) IsRedirect() bool
- func (o *GetUsageForbidden) IsServerError() bool
- func (o *GetUsageForbidden) IsSuccess() bool
- func (o *GetUsageForbidden) String() string
- type GetUsageInternalServerError
- func (o *GetUsageInternalServerError) Error() string
- func (o *GetUsageInternalServerError) GetPayload() *models.HTTPError
- func (o *GetUsageInternalServerError) IsClientError() bool
- func (o *GetUsageInternalServerError) IsCode(code int) bool
- func (o *GetUsageInternalServerError) IsRedirect() bool
- func (o *GetUsageInternalServerError) IsServerError() bool
- func (o *GetUsageInternalServerError) IsSuccess() bool
- func (o *GetUsageInternalServerError) String() string
- type GetUsageOK
- func (o *GetUsageOK) Error() string
- func (o *GetUsageOK) GetPayload() *models.UsageResponseGeneral
- func (o *GetUsageOK) IsClientError() bool
- func (o *GetUsageOK) IsCode(code int) bool
- func (o *GetUsageOK) IsRedirect() bool
- func (o *GetUsageOK) IsServerError() bool
- func (o *GetUsageOK) IsSuccess() bool
- func (o *GetUsageOK) String() string
- type GetUsageParams
- func (o *GetUsageParams) SetContext(ctx context.Context)
- func (o *GetUsageParams) SetDefaults()
- func (o *GetUsageParams) SetEndDate(endDate *string)
- func (o *GetUsageParams) SetHTTPClient(client *http.Client)
- func (o *GetUsageParams) SetStartDate(startDate string)
- func (o *GetUsageParams) SetTimeout(timeout time.Duration)
- func (o *GetUsageParams) WithContext(ctx context.Context) *GetUsageParams
- func (o *GetUsageParams) WithDefaults() *GetUsageParams
- func (o *GetUsageParams) WithEndDate(endDate *string) *GetUsageParams
- func (o *GetUsageParams) WithHTTPClient(client *http.Client) *GetUsageParams
- func (o *GetUsageParams) WithStartDate(startDate string) *GetUsageParams
- func (o *GetUsageParams) WithTimeout(timeout time.Duration) *GetUsageParams
- func (o *GetUsageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUsageReader
- type GetUsageUnauthorized
- func (o *GetUsageUnauthorized) Error() string
- func (o *GetUsageUnauthorized) GetPayload() *models.HTTPError
- func (o *GetUsageUnauthorized) IsClientError() bool
- func (o *GetUsageUnauthorized) IsCode(code int) bool
- func (o *GetUsageUnauthorized) IsRedirect() bool
- func (o *GetUsageUnauthorized) IsServerError() bool
- func (o *GetUsageUnauthorized) IsSuccess() bool
- func (o *GetUsageUnauthorized) 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) 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 ¶
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 ¶
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 ¶
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 (o *GetUsageInternalServerError) Error() string
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 {
}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