usage_service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT 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 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

Code gets the status code for the usage service upsert daily usage default response

func (*UsageServiceUpsertDailyUsageDefault) Error

func (*UsageServiceUpsertDailyUsageDefault) GetPayload

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

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

IsSuccess returns true when this usage service upsert daily usage default response has a 2xx status code

func (*UsageServiceUpsertDailyUsageDefault) 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

Code gets the status code for the usage service upsert daily usage o k response

func (*UsageServiceUpsertDailyUsageOK) Error

func (*UsageServiceUpsertDailyUsageOK) GetPayload

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

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

SetBody adds the body to the usage service upsert daily usage params

func (*UsageServiceUpsertDailyUsageParams) SetContext

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

WithBody adds the body to the usage service upsert daily usage params

func (*UsageServiceUpsertDailyUsageParams) WithContext

WithContext adds the context to the usage service upsert daily usage params

func (*UsageServiceUpsertDailyUsageParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the usage service upsert daily usage params

func (*UsageServiceUpsertDailyUsageParams) WithTimeout

WithTimeout adds the timeout to the usage service upsert daily usage params

func (*UsageServiceUpsertDailyUsageParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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