Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type UsageServiceUpsertDailyUsageDefault
- func (o *UsageServiceUpsertDailyUsageDefault) Code() int
- func (o *UsageServiceUpsertDailyUsageDefault) Error() string
- func (o *UsageServiceUpsertDailyUsageDefault) GetPayload() *models.GooglerpcStatus
- func (o *UsageServiceUpsertDailyUsageDefault) IsClientError() bool
- func (o *UsageServiceUpsertDailyUsageDefault) IsCode(code int) bool
- func (o *UsageServiceUpsertDailyUsageDefault) IsRedirect() bool
- func (o *UsageServiceUpsertDailyUsageDefault) IsServerError() bool
- func (o *UsageServiceUpsertDailyUsageDefault) IsSuccess() bool
- func (o *UsageServiceUpsertDailyUsageDefault) String() string
- type UsageServiceUpsertDailyUsageOK
- func (o *UsageServiceUpsertDailyUsageOK) Code() int
- func (o *UsageServiceUpsertDailyUsageOK) Error() string
- func (o *UsageServiceUpsertDailyUsageOK) GetPayload() *models.V1UpsertDailyUsageResponse
- func (o *UsageServiceUpsertDailyUsageOK) IsClientError() bool
- func (o *UsageServiceUpsertDailyUsageOK) IsCode(code int) bool
- func (o *UsageServiceUpsertDailyUsageOK) IsRedirect() bool
- func (o *UsageServiceUpsertDailyUsageOK) IsServerError() bool
- func (o *UsageServiceUpsertDailyUsageOK) IsSuccess() bool
- func (o *UsageServiceUpsertDailyUsageOK) String() string
- type UsageServiceUpsertDailyUsageParams
- func NewUsageServiceUpsertDailyUsageParams() *UsageServiceUpsertDailyUsageParams
- func NewUsageServiceUpsertDailyUsageParamsWithContext(ctx context.Context) *UsageServiceUpsertDailyUsageParams
- func NewUsageServiceUpsertDailyUsageParamsWithHTTPClient(client *http.Client) *UsageServiceUpsertDailyUsageParams
- func NewUsageServiceUpsertDailyUsageParamsWithTimeout(timeout time.Duration) *UsageServiceUpsertDailyUsageParams
- func (o *UsageServiceUpsertDailyUsageParams) SetBody(body *models.V1UpsertDailyUsageRequest)
- func (o *UsageServiceUpsertDailyUsageParams) SetContext(ctx context.Context)
- func (o *UsageServiceUpsertDailyUsageParams) SetDefaults()
- func (o *UsageServiceUpsertDailyUsageParams) SetHTTPClient(client *http.Client)
- func (o *UsageServiceUpsertDailyUsageParams) SetTimeout(timeout time.Duration)
- func (o *UsageServiceUpsertDailyUsageParams) WithBody(body *models.V1UpsertDailyUsageRequest) *UsageServiceUpsertDailyUsageParams
- func (o *UsageServiceUpsertDailyUsageParams) WithContext(ctx context.Context) *UsageServiceUpsertDailyUsageParams
- func (o *UsageServiceUpsertDailyUsageParams) WithDefaults() *UsageServiceUpsertDailyUsageParams
- func (o *UsageServiceUpsertDailyUsageParams) WithHTTPClient(client *http.Client) *UsageServiceUpsertDailyUsageParams
- func (o *UsageServiceUpsertDailyUsageParams) WithTimeout(timeout time.Duration) *UsageServiceUpsertDailyUsageParams
- func (o *UsageServiceUpsertDailyUsageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UsageServiceUpsertDailyUsageReader
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 service API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UsageServiceUpsertDailyUsage ¶
func (a *Client) UsageServiceUpsertDailyUsage(params *UsageServiceUpsertDailyUsageParams, opts ...ClientOption) (*UsageServiceUpsertDailyUsageOK, error)
UsageServiceUpsertDailyUsage 使用量s 日毎 の更新
指定した使用量を作成or更新します。
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { UsageServiceUpsertDailyUsage(params *UsageServiceUpsertDailyUsageParams, opts ...ClientOption) (*UsageServiceUpsertDailyUsageOK, 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 service API client.
type UsageServiceUpsertDailyUsageDefault ¶
type UsageServiceUpsertDailyUsageDefault struct { Payload *models.GooglerpcStatus // contains filtered or unexported fields }
UsageServiceUpsertDailyUsageDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewUsageServiceUpsertDailyUsageDefault ¶
func NewUsageServiceUpsertDailyUsageDefault(code int) *UsageServiceUpsertDailyUsageDefault
NewUsageServiceUpsertDailyUsageDefault creates a UsageServiceUpsertDailyUsageDefault with default headers values
func (*UsageServiceUpsertDailyUsageDefault) Code ¶
func (o *UsageServiceUpsertDailyUsageDefault) Code() int
Code gets the status code for the usage service upsert daily usage default response
func (*UsageServiceUpsertDailyUsageDefault) Error ¶
func (o *UsageServiceUpsertDailyUsageDefault) Error() string
func (*UsageServiceUpsertDailyUsageDefault) GetPayload ¶
func (o *UsageServiceUpsertDailyUsageDefault) GetPayload() *models.GooglerpcStatus
func (*UsageServiceUpsertDailyUsageDefault) IsClientError ¶
func (o *UsageServiceUpsertDailyUsageDefault) IsClientError() bool
IsClientError returns true when this usage service upsert daily usage default response has a 4xx status code
func (*UsageServiceUpsertDailyUsageDefault) IsCode ¶
func (o *UsageServiceUpsertDailyUsageDefault) IsCode(code int) bool
IsCode returns true when this usage service upsert daily usage default response a status code equal to that given
func (*UsageServiceUpsertDailyUsageDefault) IsRedirect ¶
func (o *UsageServiceUpsertDailyUsageDefault) IsRedirect() bool
IsRedirect returns true when this usage service upsert daily usage default response has a 3xx status code
func (*UsageServiceUpsertDailyUsageDefault) IsServerError ¶
func (o *UsageServiceUpsertDailyUsageDefault) IsServerError() bool
IsServerError returns true when this usage service upsert daily usage default response has a 5xx status code
func (*UsageServiceUpsertDailyUsageDefault) IsSuccess ¶
func (o *UsageServiceUpsertDailyUsageDefault) IsSuccess() bool
IsSuccess returns true when this usage service upsert daily usage default response has a 2xx status code
func (*UsageServiceUpsertDailyUsageDefault) String ¶
func (o *UsageServiceUpsertDailyUsageDefault) String() string
type UsageServiceUpsertDailyUsageOK ¶
type UsageServiceUpsertDailyUsageOK struct {
Payload *models.V1UpsertDailyUsageResponse
}
UsageServiceUpsertDailyUsageOK describes a response with status code 200, with default header values.
A successful response.
func NewUsageServiceUpsertDailyUsageOK ¶
func NewUsageServiceUpsertDailyUsageOK() *UsageServiceUpsertDailyUsageOK
NewUsageServiceUpsertDailyUsageOK creates a UsageServiceUpsertDailyUsageOK with default headers values
func (*UsageServiceUpsertDailyUsageOK) Code ¶
func (o *UsageServiceUpsertDailyUsageOK) Code() int
Code gets the status code for the usage service upsert daily usage o k response
func (*UsageServiceUpsertDailyUsageOK) Error ¶
func (o *UsageServiceUpsertDailyUsageOK) Error() string
func (*UsageServiceUpsertDailyUsageOK) GetPayload ¶
func (o *UsageServiceUpsertDailyUsageOK) GetPayload() *models.V1UpsertDailyUsageResponse
func (*UsageServiceUpsertDailyUsageOK) IsClientError ¶
func (o *UsageServiceUpsertDailyUsageOK) IsClientError() bool
IsClientError returns true when this usage service upsert daily usage o k response has a 4xx status code
func (*UsageServiceUpsertDailyUsageOK) IsCode ¶
func (o *UsageServiceUpsertDailyUsageOK) IsCode(code int) bool
IsCode returns true when this usage service upsert daily usage o k response a status code equal to that given
func (*UsageServiceUpsertDailyUsageOK) IsRedirect ¶
func (o *UsageServiceUpsertDailyUsageOK) IsRedirect() bool
IsRedirect returns true when this usage service upsert daily usage o k response has a 3xx status code
func (*UsageServiceUpsertDailyUsageOK) IsServerError ¶
func (o *UsageServiceUpsertDailyUsageOK) IsServerError() bool
IsServerError returns true when this usage service upsert daily usage o k response has a 5xx status code
func (*UsageServiceUpsertDailyUsageOK) IsSuccess ¶
func (o *UsageServiceUpsertDailyUsageOK) IsSuccess() bool
IsSuccess returns true when this usage service upsert daily usage o k response has a 2xx status code
func (*UsageServiceUpsertDailyUsageOK) String ¶
func (o *UsageServiceUpsertDailyUsageOK) String() string
type UsageServiceUpsertDailyUsageParams ¶
type UsageServiceUpsertDailyUsageParams struct { // Body. Body *models.V1UpsertDailyUsageRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UsageServiceUpsertDailyUsageParams contains all the parameters to send to the API endpoint
for the usage service upsert daily usage operation. Typically these are written to a http.Request.
func NewUsageServiceUpsertDailyUsageParams ¶
func NewUsageServiceUpsertDailyUsageParams() *UsageServiceUpsertDailyUsageParams
NewUsageServiceUpsertDailyUsageParams creates a new UsageServiceUpsertDailyUsageParams 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 NewUsageServiceUpsertDailyUsageParamsWithContext ¶
func NewUsageServiceUpsertDailyUsageParamsWithContext(ctx context.Context) *UsageServiceUpsertDailyUsageParams
NewUsageServiceUpsertDailyUsageParamsWithContext creates a new UsageServiceUpsertDailyUsageParams object with the ability to set a context for a request.
func NewUsageServiceUpsertDailyUsageParamsWithHTTPClient ¶
func NewUsageServiceUpsertDailyUsageParamsWithHTTPClient(client *http.Client) *UsageServiceUpsertDailyUsageParams
NewUsageServiceUpsertDailyUsageParamsWithHTTPClient creates a new UsageServiceUpsertDailyUsageParams object with the ability to set a custom HTTPClient for a request.
func NewUsageServiceUpsertDailyUsageParamsWithTimeout ¶
func NewUsageServiceUpsertDailyUsageParamsWithTimeout(timeout time.Duration) *UsageServiceUpsertDailyUsageParams
NewUsageServiceUpsertDailyUsageParamsWithTimeout creates a new UsageServiceUpsertDailyUsageParams object with the ability to set a timeout on a request.
func (*UsageServiceUpsertDailyUsageParams) SetBody ¶
func (o *UsageServiceUpsertDailyUsageParams) SetBody(body *models.V1UpsertDailyUsageRequest)
SetBody adds the body to the usage service upsert daily usage params
func (*UsageServiceUpsertDailyUsageParams) SetContext ¶
func (o *UsageServiceUpsertDailyUsageParams) SetContext(ctx context.Context)
SetContext adds the context to the usage service upsert daily usage params
func (*UsageServiceUpsertDailyUsageParams) SetDefaults ¶
func (o *UsageServiceUpsertDailyUsageParams) SetDefaults()
SetDefaults hydrates default values in the usage service upsert daily usage params (not the query body).
All values with no default are reset to their zero value.
func (*UsageServiceUpsertDailyUsageParams) SetHTTPClient ¶
func (o *UsageServiceUpsertDailyUsageParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the usage service upsert daily usage params
func (*UsageServiceUpsertDailyUsageParams) SetTimeout ¶
func (o *UsageServiceUpsertDailyUsageParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the usage service upsert daily usage params
func (*UsageServiceUpsertDailyUsageParams) WithBody ¶
func (o *UsageServiceUpsertDailyUsageParams) WithBody(body *models.V1UpsertDailyUsageRequest) *UsageServiceUpsertDailyUsageParams
WithBody adds the body to the usage service upsert daily usage params
func (*UsageServiceUpsertDailyUsageParams) WithContext ¶
func (o *UsageServiceUpsertDailyUsageParams) WithContext(ctx context.Context) *UsageServiceUpsertDailyUsageParams
WithContext adds the context to the usage service upsert daily usage params
func (*UsageServiceUpsertDailyUsageParams) WithDefaults ¶
func (o *UsageServiceUpsertDailyUsageParams) WithDefaults() *UsageServiceUpsertDailyUsageParams
WithDefaults hydrates default values in the usage service upsert daily usage params (not the query body).
All values with no default are reset to their zero value.
func (*UsageServiceUpsertDailyUsageParams) WithHTTPClient ¶
func (o *UsageServiceUpsertDailyUsageParams) WithHTTPClient(client *http.Client) *UsageServiceUpsertDailyUsageParams
WithHTTPClient adds the HTTPClient to the usage service upsert daily usage params
func (*UsageServiceUpsertDailyUsageParams) WithTimeout ¶
func (o *UsageServiceUpsertDailyUsageParams) WithTimeout(timeout time.Duration) *UsageServiceUpsertDailyUsageParams
WithTimeout adds the timeout to the usage service upsert daily usage params
func (*UsageServiceUpsertDailyUsageParams) WriteToRequest ¶
func (o *UsageServiceUpsertDailyUsageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UsageServiceUpsertDailyUsageReader ¶
type UsageServiceUpsertDailyUsageReader struct {
// contains filtered or unexported fields
}
UsageServiceUpsertDailyUsageReader is a Reader for the UsageServiceUpsertDailyUsage structure.
func (*UsageServiceUpsertDailyUsageReader) ReadResponse ¶
func (o *UsageServiceUpsertDailyUsageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.