Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type InvoiceServiceGetUsageDefault
- func (o *InvoiceServiceGetUsageDefault) Code() int
- func (o *InvoiceServiceGetUsageDefault) Error() string
- func (o *InvoiceServiceGetUsageDefault) GetPayload() *models.RuntimeError
- func (o *InvoiceServiceGetUsageDefault) IsClientError() bool
- func (o *InvoiceServiceGetUsageDefault) IsCode(code int) bool
- func (o *InvoiceServiceGetUsageDefault) IsRedirect() bool
- func (o *InvoiceServiceGetUsageDefault) IsServerError() bool
- func (o *InvoiceServiceGetUsageDefault) IsSuccess() bool
- func (o *InvoiceServiceGetUsageDefault) String() string
- type InvoiceServiceGetUsageOK
- func (o *InvoiceServiceGetUsageOK) Error() string
- func (o *InvoiceServiceGetUsageOK) GetPayload() *models.Billing20201105GetUsageResponse
- func (o *InvoiceServiceGetUsageOK) IsClientError() bool
- func (o *InvoiceServiceGetUsageOK) IsCode(code int) bool
- func (o *InvoiceServiceGetUsageOK) IsRedirect() bool
- func (o *InvoiceServiceGetUsageOK) IsServerError() bool
- func (o *InvoiceServiceGetUsageOK) IsSuccess() bool
- func (o *InvoiceServiceGetUsageOK) String() string
- type InvoiceServiceGetUsageParams
- func NewInvoiceServiceGetUsageParams() *InvoiceServiceGetUsageParams
- func NewInvoiceServiceGetUsageParamsWithContext(ctx context.Context) *InvoiceServiceGetUsageParams
- func NewInvoiceServiceGetUsageParamsWithHTTPClient(client *http.Client) *InvoiceServiceGetUsageParams
- func NewInvoiceServiceGetUsageParamsWithTimeout(timeout time.Duration) *InvoiceServiceGetUsageParams
- func (o *InvoiceServiceGetUsageParams) SetBillingAccountID(billingAccountID string)
- func (o *InvoiceServiceGetUsageParams) SetContext(ctx context.Context)
- func (o *InvoiceServiceGetUsageParams) SetDefaults()
- func (o *InvoiceServiceGetUsageParams) SetHTTPClient(client *http.Client)
- func (o *InvoiceServiceGetUsageParams) SetOrganizationID(organizationID string)
- func (o *InvoiceServiceGetUsageParams) SetTimeout(timeout time.Duration)
- func (o *InvoiceServiceGetUsageParams) WithBillingAccountID(billingAccountID string) *InvoiceServiceGetUsageParams
- func (o *InvoiceServiceGetUsageParams) WithContext(ctx context.Context) *InvoiceServiceGetUsageParams
- func (o *InvoiceServiceGetUsageParams) WithDefaults() *InvoiceServiceGetUsageParams
- func (o *InvoiceServiceGetUsageParams) WithHTTPClient(client *http.Client) *InvoiceServiceGetUsageParams
- func (o *InvoiceServiceGetUsageParams) WithOrganizationID(organizationID string) *InvoiceServiceGetUsageParams
- func (o *InvoiceServiceGetUsageParams) WithTimeout(timeout time.Duration) *InvoiceServiceGetUsageParams
- func (o *InvoiceServiceGetUsageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InvoiceServiceGetUsageReader
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 invoice service API
func (*Client) InvoiceServiceGetUsage ¶
func (a *Client) InvoiceServiceGetUsage(params *InvoiceServiceGetUsageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InvoiceServiceGetUsageOK, error)
InvoiceServiceGetUsage gets usage returns the current billing period s usage usage information is not calculated on demand but the response explicitly specifies the considered billing period
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 { InvoiceServiceGetUsage(params *InvoiceServiceGetUsageParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InvoiceServiceGetUsageOK, 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 invoice service API client.
type InvoiceServiceGetUsageDefault ¶
type InvoiceServiceGetUsageDefault struct { Payload *models.RuntimeError // contains filtered or unexported fields }
InvoiceServiceGetUsageDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewInvoiceServiceGetUsageDefault ¶
func NewInvoiceServiceGetUsageDefault(code int) *InvoiceServiceGetUsageDefault
NewInvoiceServiceGetUsageDefault creates a InvoiceServiceGetUsageDefault with default headers values
func (*InvoiceServiceGetUsageDefault) Code ¶
func (o *InvoiceServiceGetUsageDefault) Code() int
Code gets the status code for the invoice service get usage default response
func (*InvoiceServiceGetUsageDefault) Error ¶
func (o *InvoiceServiceGetUsageDefault) Error() string
func (*InvoiceServiceGetUsageDefault) GetPayload ¶
func (o *InvoiceServiceGetUsageDefault) GetPayload() *models.RuntimeError
func (*InvoiceServiceGetUsageDefault) IsClientError ¶
func (o *InvoiceServiceGetUsageDefault) IsClientError() bool
IsClientError returns true when this invoice service get usage default response has a 4xx status code
func (*InvoiceServiceGetUsageDefault) IsCode ¶
func (o *InvoiceServiceGetUsageDefault) IsCode(code int) bool
IsCode returns true when this invoice service get usage default response a status code equal to that given
func (*InvoiceServiceGetUsageDefault) IsRedirect ¶
func (o *InvoiceServiceGetUsageDefault) IsRedirect() bool
IsRedirect returns true when this invoice service get usage default response has a 3xx status code
func (*InvoiceServiceGetUsageDefault) IsServerError ¶
func (o *InvoiceServiceGetUsageDefault) IsServerError() bool
IsServerError returns true when this invoice service get usage default response has a 5xx status code
func (*InvoiceServiceGetUsageDefault) IsSuccess ¶
func (o *InvoiceServiceGetUsageDefault) IsSuccess() bool
IsSuccess returns true when this invoice service get usage default response has a 2xx status code
func (*InvoiceServiceGetUsageDefault) String ¶
func (o *InvoiceServiceGetUsageDefault) String() string
type InvoiceServiceGetUsageOK ¶
type InvoiceServiceGetUsageOK struct {
Payload *models.Billing20201105GetUsageResponse
}
InvoiceServiceGetUsageOK describes a response with status code 200, with default header values.
A successful response.
func NewInvoiceServiceGetUsageOK ¶
func NewInvoiceServiceGetUsageOK() *InvoiceServiceGetUsageOK
NewInvoiceServiceGetUsageOK creates a InvoiceServiceGetUsageOK with default headers values
func (*InvoiceServiceGetUsageOK) Error ¶
func (o *InvoiceServiceGetUsageOK) Error() string
func (*InvoiceServiceGetUsageOK) GetPayload ¶
func (o *InvoiceServiceGetUsageOK) GetPayload() *models.Billing20201105GetUsageResponse
func (*InvoiceServiceGetUsageOK) IsClientError ¶
func (o *InvoiceServiceGetUsageOK) IsClientError() bool
IsClientError returns true when this invoice service get usage o k response has a 4xx status code
func (*InvoiceServiceGetUsageOK) IsCode ¶
func (o *InvoiceServiceGetUsageOK) IsCode(code int) bool
IsCode returns true when this invoice service get usage o k response a status code equal to that given
func (*InvoiceServiceGetUsageOK) IsRedirect ¶
func (o *InvoiceServiceGetUsageOK) IsRedirect() bool
IsRedirect returns true when this invoice service get usage o k response has a 3xx status code
func (*InvoiceServiceGetUsageOK) IsServerError ¶
func (o *InvoiceServiceGetUsageOK) IsServerError() bool
IsServerError returns true when this invoice service get usage o k response has a 5xx status code
func (*InvoiceServiceGetUsageOK) IsSuccess ¶
func (o *InvoiceServiceGetUsageOK) IsSuccess() bool
IsSuccess returns true when this invoice service get usage o k response has a 2xx status code
func (*InvoiceServiceGetUsageOK) String ¶
func (o *InvoiceServiceGetUsageOK) String() string
type InvoiceServiceGetUsageParams ¶
type InvoiceServiceGetUsageParams struct { /* BillingAccountID. id is the user-settable ID that uniquely identifies the Billing Account within the organization. */ BillingAccountID string /* OrganizationID. organization_id is the ID of the organization to which the Billing Account belongs. */ OrganizationID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
InvoiceServiceGetUsageParams contains all the parameters to send to the API endpoint
for the invoice service get usage operation. Typically these are written to a http.Request.
func NewInvoiceServiceGetUsageParams ¶
func NewInvoiceServiceGetUsageParams() *InvoiceServiceGetUsageParams
NewInvoiceServiceGetUsageParams creates a new InvoiceServiceGetUsageParams 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 NewInvoiceServiceGetUsageParamsWithContext ¶
func NewInvoiceServiceGetUsageParamsWithContext(ctx context.Context) *InvoiceServiceGetUsageParams
NewInvoiceServiceGetUsageParamsWithContext creates a new InvoiceServiceGetUsageParams object with the ability to set a context for a request.
func NewInvoiceServiceGetUsageParamsWithHTTPClient ¶
func NewInvoiceServiceGetUsageParamsWithHTTPClient(client *http.Client) *InvoiceServiceGetUsageParams
NewInvoiceServiceGetUsageParamsWithHTTPClient creates a new InvoiceServiceGetUsageParams object with the ability to set a custom HTTPClient for a request.
func NewInvoiceServiceGetUsageParamsWithTimeout ¶
func NewInvoiceServiceGetUsageParamsWithTimeout(timeout time.Duration) *InvoiceServiceGetUsageParams
NewInvoiceServiceGetUsageParamsWithTimeout creates a new InvoiceServiceGetUsageParams object with the ability to set a timeout on a request.
func (*InvoiceServiceGetUsageParams) SetBillingAccountID ¶
func (o *InvoiceServiceGetUsageParams) SetBillingAccountID(billingAccountID string)
SetBillingAccountID adds the billingAccountId to the invoice service get usage params
func (*InvoiceServiceGetUsageParams) SetContext ¶
func (o *InvoiceServiceGetUsageParams) SetContext(ctx context.Context)
SetContext adds the context to the invoice service get usage params
func (*InvoiceServiceGetUsageParams) SetDefaults ¶
func (o *InvoiceServiceGetUsageParams) SetDefaults()
SetDefaults hydrates default values in the invoice service get usage params (not the query body).
All values with no default are reset to their zero value.
func (*InvoiceServiceGetUsageParams) SetHTTPClient ¶
func (o *InvoiceServiceGetUsageParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the invoice service get usage params
func (*InvoiceServiceGetUsageParams) SetOrganizationID ¶
func (o *InvoiceServiceGetUsageParams) SetOrganizationID(organizationID string)
SetOrganizationID adds the organizationId to the invoice service get usage params
func (*InvoiceServiceGetUsageParams) SetTimeout ¶
func (o *InvoiceServiceGetUsageParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the invoice service get usage params
func (*InvoiceServiceGetUsageParams) WithBillingAccountID ¶
func (o *InvoiceServiceGetUsageParams) WithBillingAccountID(billingAccountID string) *InvoiceServiceGetUsageParams
WithBillingAccountID adds the billingAccountID to the invoice service get usage params
func (*InvoiceServiceGetUsageParams) WithContext ¶
func (o *InvoiceServiceGetUsageParams) WithContext(ctx context.Context) *InvoiceServiceGetUsageParams
WithContext adds the context to the invoice service get usage params
func (*InvoiceServiceGetUsageParams) WithDefaults ¶
func (o *InvoiceServiceGetUsageParams) WithDefaults() *InvoiceServiceGetUsageParams
WithDefaults hydrates default values in the invoice service get usage params (not the query body).
All values with no default are reset to their zero value.
func (*InvoiceServiceGetUsageParams) WithHTTPClient ¶
func (o *InvoiceServiceGetUsageParams) WithHTTPClient(client *http.Client) *InvoiceServiceGetUsageParams
WithHTTPClient adds the HTTPClient to the invoice service get usage params
func (*InvoiceServiceGetUsageParams) WithOrganizationID ¶
func (o *InvoiceServiceGetUsageParams) WithOrganizationID(organizationID string) *InvoiceServiceGetUsageParams
WithOrganizationID adds the organizationID to the invoice service get usage params
func (*InvoiceServiceGetUsageParams) WithTimeout ¶
func (o *InvoiceServiceGetUsageParams) WithTimeout(timeout time.Duration) *InvoiceServiceGetUsageParams
WithTimeout adds the timeout to the invoice service get usage params
func (*InvoiceServiceGetUsageParams) WriteToRequest ¶
func (o *InvoiceServiceGetUsageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type InvoiceServiceGetUsageReader ¶
type InvoiceServiceGetUsageReader struct {
// contains filtered or unexported fields
}
InvoiceServiceGetUsageReader is a Reader for the InvoiceServiceGetUsage structure.
func (*InvoiceServiceGetUsageReader) ReadResponse ¶
func (o *InvoiceServiceGetUsageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.