Documentation
¶
Overview ¶
Package billing provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func NewListBillingRequest(server string, params *ListBillingParams) (*http.Request, error)
- func NewListClusterBillingRequest(server string, params *ListClusterBillingParams) (*http.Request, error)
- func NewListEndpointBillingRequest(server string, params *ListEndpointBillingParams) (*http.Request, error)
- func NewListNetworkVolumeBillingRequest(server string, params *ListNetworkVolumeBillingParams) (*http.Request, error)
- func NewListPodBillingRequest(server string, params *ListPodBillingParams) (*http.Request, error)
- func NewListServerlessBillingRequest(server string, params *ListServerlessBillingParams) (*http.Request, error)
- type Client
- func (c *Client) ListBilling(ctx context.Context, params *ListBillingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListClusterBilling(ctx context.Context, params *ListClusterBillingParams, ...) (*http.Response, error)
- func (c *Client) ListEndpointBilling(ctx context.Context, params *ListEndpointBillingParams, ...) (*http.Response, error)
- func (c *Client) ListNetworkVolumeBilling(ctx context.Context, params *ListNetworkVolumeBillingParams, ...) (*http.Response, error)
- func (c *Client) ListPodBilling(ctx context.Context, params *ListPodBillingParams, ...) (*http.Response, error)
- func (c *Client) ListServerlessBilling(ctx context.Context, params *ListServerlessBillingParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ListBillingWithResponse(ctx context.Context, params *ListBillingParams, reqEditors ...RequestEditorFn) (*ListBillingResult, error)
- func (c *ClientWithResponses) ListClusterBillingWithResponse(ctx context.Context, params *ListClusterBillingParams, ...) (*ListClusterBillingResult, error)
- func (c *ClientWithResponses) ListEndpointBillingWithResponse(ctx context.Context, params *ListEndpointBillingParams, ...) (*ListEndpointBillingResult, error)
- func (c *ClientWithResponses) ListNetworkVolumeBillingWithResponse(ctx context.Context, params *ListNetworkVolumeBillingParams, ...) (*ListNetworkVolumeBillingResult, error)
- func (c *ClientWithResponses) ListPodBillingWithResponse(ctx context.Context, params *ListPodBillingParams, ...) (*ListPodBillingResult, error)
- func (c *ClientWithResponses) ListServerlessBillingWithResponse(ctx context.Context, params *ListServerlessBillingParams, ...) (*ListServerlessBillingResult, error)
- type ClientWithResponsesInterface
- type HttpRequestDoer
- type ListBillingParams
- type ListBillingResult
- func (r ListBillingResult) ContentType() string
- func (r ListBillingResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r ListBillingResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r ListBillingResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r ListBillingResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r ListBillingResult) GetBody() []byte
- func (r ListBillingResult) GetJSON200() *externalRef0.ListBillingResponse
- func (r ListBillingResult) Status() string
- func (r ListBillingResult) StatusCode() int
- type ListBillingResult200Headers
- type ListBillingResult403Headers
- type ListBillingResult429Headers
- type ListBillingResultDefaultHeaders
- type ListClusterBillingParams
- type ListClusterBillingResult
- func (r ListClusterBillingResult) ContentType() string
- func (r ListClusterBillingResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r ListClusterBillingResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r ListClusterBillingResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r ListClusterBillingResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r ListClusterBillingResult) GetBody() []byte
- func (r ListClusterBillingResult) GetJSON200() *externalRef0.ListClusterBillingResponse
- func (r ListClusterBillingResult) Status() string
- func (r ListClusterBillingResult) StatusCode() int
- type ListClusterBillingResult200Headers
- type ListClusterBillingResult403Headers
- type ListClusterBillingResult429Headers
- type ListClusterBillingResultDefaultHeaders
- type ListEndpointBillingParams
- type ListEndpointBillingResult
- func (r ListEndpointBillingResult) ContentType() string
- func (r ListEndpointBillingResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r ListEndpointBillingResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r ListEndpointBillingResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r ListEndpointBillingResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r ListEndpointBillingResult) GetBody() []byte
- func (r ListEndpointBillingResult) GetJSON200() *externalRef0.ListEndpointBillingResponse
- func (r ListEndpointBillingResult) Status() string
- func (r ListEndpointBillingResult) StatusCode() int
- type ListEndpointBillingResult200Headers
- type ListEndpointBillingResult403Headers
- type ListEndpointBillingResult429Headers
- type ListEndpointBillingResultDefaultHeaders
- type ListNetworkVolumeBillingParams
- type ListNetworkVolumeBillingResult
- func (r ListNetworkVolumeBillingResult) ContentType() string
- func (r ListNetworkVolumeBillingResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r ListNetworkVolumeBillingResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r ListNetworkVolumeBillingResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r ListNetworkVolumeBillingResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r ListNetworkVolumeBillingResult) GetBody() []byte
- func (r ListNetworkVolumeBillingResult) GetJSON200() *externalRef0.ListNetworkVolumeBillingResponse
- func (r ListNetworkVolumeBillingResult) Status() string
- func (r ListNetworkVolumeBillingResult) StatusCode() int
- type ListNetworkVolumeBillingResult200Headers
- type ListNetworkVolumeBillingResult403Headers
- type ListNetworkVolumeBillingResult429Headers
- type ListNetworkVolumeBillingResultDefaultHeaders
- type ListPodBillingParams
- type ListPodBillingResult
- func (r ListPodBillingResult) ContentType() string
- func (r ListPodBillingResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r ListPodBillingResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r ListPodBillingResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r ListPodBillingResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r ListPodBillingResult) GetBody() []byte
- func (r ListPodBillingResult) GetJSON200() *externalRef0.ListPodBillingResponse
- func (r ListPodBillingResult) Status() string
- func (r ListPodBillingResult) StatusCode() int
- type ListPodBillingResult200Headers
- type ListPodBillingResult403Headers
- type ListPodBillingResult429Headers
- type ListPodBillingResultDefaultHeaders
- type ListServerlessBillingParams
- type ListServerlessBillingResult
- func (r ListServerlessBillingResult) ContentType() string
- func (r ListServerlessBillingResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r ListServerlessBillingResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r ListServerlessBillingResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r ListServerlessBillingResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r ListServerlessBillingResult) GetBody() []byte
- func (r ListServerlessBillingResult) GetJSON200() *externalRef0.ListServerlessBillingResponse
- func (r ListServerlessBillingResult) Status() string
- func (r ListServerlessBillingResult) StatusCode() int
- type ListServerlessBillingResult200Headers
- type ListServerlessBillingResult403Headers
- type ListServerlessBillingResult429Headers
- type ListServerlessBillingResultDefaultHeaders
- type RequestEditorFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewListBillingRequest ¶
func NewListBillingRequest(server string, params *ListBillingParams) (*http.Request, error)
NewListBillingRequest constructs an http.Request for the ListBilling method
func NewListClusterBillingRequest ¶
func NewListClusterBillingRequest(server string, params *ListClusterBillingParams) (*http.Request, error)
NewListClusterBillingRequest constructs an http.Request for the ListClusterBilling method
func NewListEndpointBillingRequest ¶
func NewListEndpointBillingRequest(server string, params *ListEndpointBillingParams) (*http.Request, error)
NewListEndpointBillingRequest constructs an http.Request for the ListEndpointBilling method
func NewListNetworkVolumeBillingRequest ¶
func NewListNetworkVolumeBillingRequest(server string, params *ListNetworkVolumeBillingParams) (*http.Request, error)
NewListNetworkVolumeBillingRequest constructs an http.Request for the ListNetworkVolumeBilling method
func NewListPodBillingRequest ¶
func NewListPodBillingRequest(server string, params *ListPodBillingParams) (*http.Request, error)
NewListPodBillingRequest constructs an http.Request for the ListPodBilling method
func NewListServerlessBillingRequest ¶
func NewListServerlessBillingRequest(server string, params *ListServerlessBillingParams) (*http.Request, error)
NewListServerlessBillingRequest constructs an http.Request for the ListServerlessBilling method
Types ¶
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) ListBilling ¶
func (c *Client) ListBilling(ctx context.Context, params *ListBillingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListBilling Get aggregated billing history
Returns time-bucketed total spend across all billable Runpod resources for the authenticated user. Use startTime/endTime with bucketSize for an explicit range, or lastN with bucketSize for the most recent buckets. Each record reports one bucket's total plus pod, serverless, storage, public endpoint, and Instant Cluster cost components. The metadata block echoes the resolved query window, record count, and totals across all returned buckets.
Corresponds with GET /v2/billing (the `ListBilling` operationId).
func (*Client) ListClusterBilling ¶
func (c *Client) ListClusterBilling(ctx context.Context, params *ListClusterBillingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListClusterBilling Get cluster billing history
Returns Cluster billing history for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use clusterId to filter to one cluster; without it, records are emitted per cluster per bucket. Each record includes GPU compute, disk, inter-node networking, and total amounts. Clusters are GPU-only, so no CPU cost component is returned.
Corresponds with GET /v2/billing/clusters (the `ListClusterBilling` operationId).
func (*Client) ListEndpointBilling ¶
func (c *Client) ListEndpointBilling(ctx context.Context, params *ListEndpointBillingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListEndpointBilling Get public endpoint billing history
Returns Runpod public endpoint billing history for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Each record reports the endpoint total for one bucket, and metadata echoes the resolved query window, record count, and total endpoint amount across all returned records.
Corresponds with GET /v2/billing/endpoints (the `ListEndpointBilling` operationId).
func (*Client) ListNetworkVolumeBilling ¶
func (c *Client) ListNetworkVolumeBilling(ctx context.Context, params *ListNetworkVolumeBillingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListNetworkVolumeBilling Get network volume billing history
Returns network volume billing history for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use networkVolumeId to filter to one volume; without it, records are emitted per volume per bucket. Each record includes standard storage, high-performance storage, and total amounts, while metadata reports the resolved query, distinct volume count, and totals across the returned records.
Corresponds with GET /v2/billing/network-volumes (the `ListNetworkVolumeBilling` operationId).
func (*Client) ListPodBilling ¶
func (c *Client) ListPodBilling(ctx context.Context, params *ListPodBillingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListPodBilling Get pod billing history
Returns pod-only billing detail for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use podId to narrow the response to one GPU or CPU pod; without it, records are emitted per pod per bucket. Each record includes podId, GPU, CPU, disk, and total amounts, while metadata echoes the resolved query and totals across the pod records. Use listBilling when you need aggregate spend across every billable resource family.
Corresponds with GET /v2/billing/pods (the `ListPodBilling` operationId).
func (*Client) ListServerlessBilling ¶
func (c *Client) ListServerlessBilling(ctx context.Context, params *ListServerlessBillingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListServerlessBilling Get serverless billing history
Returns serverless endpoint billing detail for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use serverlessId to filter to one endpoint; without it, records are emitted per serverless endpoint per bucket. Each record reports endpoint-level GPU, CPU, disk, and total amounts. This is distinct from pod billing, which covers standalone GPU and CPU pod costs rather than serverless endpoint workloads.
Corresponds with GET /v2/billing/serverless (the `ListServerlessBilling` operationId).
type ClientInterface ¶
type ClientInterface interface {
// ListBilling Get aggregated billing history
//
// Returns time-bucketed total spend across all billable Runpod resources for the authenticated user. Use startTime/endTime with bucketSize for an explicit range, or lastN with bucketSize for the most recent buckets. Each record reports one bucket's total plus pod, serverless, storage, public endpoint, and Instant Cluster cost components. The metadata block echoes the resolved query window, record count, and totals across all returned buckets.
//
// Corresponds with GET /v2/billing (the `ListBilling` operationId).
ListBilling(ctx context.Context, params *ListBillingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListClusterBilling Get cluster billing history
//
// Returns Cluster billing history for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use clusterId to filter to one cluster; without it, records are emitted per cluster per bucket. Each record includes GPU compute, disk, inter-node networking, and total amounts. Clusters are GPU-only, so no CPU cost component is returned.
//
// Corresponds with GET /v2/billing/clusters (the `ListClusterBilling` operationId).
ListClusterBilling(ctx context.Context, params *ListClusterBillingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEndpointBilling Get public endpoint billing history
//
// Returns Runpod public endpoint billing history for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Each record reports the endpoint total for one bucket, and metadata echoes the resolved query window, record count, and total endpoint amount across all returned records.
//
// Corresponds with GET /v2/billing/endpoints (the `ListEndpointBilling` operationId).
ListEndpointBilling(ctx context.Context, params *ListEndpointBillingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListNetworkVolumeBilling Get network volume billing history
//
// Returns network volume billing history for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use networkVolumeId to filter to one volume; without it, records are emitted per volume per bucket. Each record includes standard storage, high-performance storage, and total amounts, while metadata reports the resolved query, distinct volume count, and totals across the returned records.
//
// Corresponds with GET /v2/billing/network-volumes (the `ListNetworkVolumeBilling` operationId).
ListNetworkVolumeBilling(ctx context.Context, params *ListNetworkVolumeBillingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPodBilling Get pod billing history
//
// Returns pod-only billing detail for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use podId to narrow the response to one GPU or CPU pod; without it, records are emitted per pod per bucket. Each record includes podId, GPU, CPU, disk, and total amounts, while metadata echoes the resolved query and totals across the pod records. Use listBilling when you need aggregate spend across every billable resource family.
//
// Corresponds with GET /v2/billing/pods (the `ListPodBilling` operationId).
ListPodBilling(ctx context.Context, params *ListPodBillingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListServerlessBilling Get serverless billing history
//
// Returns serverless endpoint billing detail for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use serverlessId to filter to one endpoint; without it, records are emitted per serverless endpoint per bucket. Each record reports endpoint-level GPU, CPU, disk, and total amounts. This is distinct from pod billing, which covers standalone GPU and CPU pod costs rather than serverless endpoint workloads.
//
// Corresponds with GET /v2/billing/serverless (the `ListServerlessBilling` operationId).
ListServerlessBilling(ctx context.Context, params *ListServerlessBillingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) ListBillingWithResponse ¶
func (c *ClientWithResponses) ListBillingWithResponse(ctx context.Context, params *ListBillingParams, reqEditors ...RequestEditorFn) (*ListBillingResult, error)
ListBillingWithResponse Get aggregated billing history
Returns time-bucketed total spend across all billable Runpod resources for the authenticated user. Use startTime/endTime with bucketSize for an explicit range, or lastN with bucketSize for the most recent buckets. Each record reports one bucket's total plus pod, serverless, storage, public endpoint, and Instant Cluster cost components. The metadata block echoes the resolved query window, record count, and totals across all returned buckets.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/billing (the `ListBilling` operationId).
func (*ClientWithResponses) ListClusterBillingWithResponse ¶
func (c *ClientWithResponses) ListClusterBillingWithResponse(ctx context.Context, params *ListClusterBillingParams, reqEditors ...RequestEditorFn) (*ListClusterBillingResult, error)
ListClusterBillingWithResponse Get cluster billing history
Returns Cluster billing history for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use clusterId to filter to one cluster; without it, records are emitted per cluster per bucket. Each record includes GPU compute, disk, inter-node networking, and total amounts. Clusters are GPU-only, so no CPU cost component is returned.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/billing/clusters (the `ListClusterBilling` operationId).
func (*ClientWithResponses) ListEndpointBillingWithResponse ¶
func (c *ClientWithResponses) ListEndpointBillingWithResponse(ctx context.Context, params *ListEndpointBillingParams, reqEditors ...RequestEditorFn) (*ListEndpointBillingResult, error)
ListEndpointBillingWithResponse Get public endpoint billing history
Returns Runpod public endpoint billing history for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Each record reports the endpoint total for one bucket, and metadata echoes the resolved query window, record count, and total endpoint amount across all returned records.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/billing/endpoints (the `ListEndpointBilling` operationId).
func (*ClientWithResponses) ListNetworkVolumeBillingWithResponse ¶
func (c *ClientWithResponses) ListNetworkVolumeBillingWithResponse(ctx context.Context, params *ListNetworkVolumeBillingParams, reqEditors ...RequestEditorFn) (*ListNetworkVolumeBillingResult, error)
ListNetworkVolumeBillingWithResponse Get network volume billing history
Returns network volume billing history for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use networkVolumeId to filter to one volume; without it, records are emitted per volume per bucket. Each record includes standard storage, high-performance storage, and total amounts, while metadata reports the resolved query, distinct volume count, and totals across the returned records.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/billing/network-volumes (the `ListNetworkVolumeBilling` operationId).
func (*ClientWithResponses) ListPodBillingWithResponse ¶
func (c *ClientWithResponses) ListPodBillingWithResponse(ctx context.Context, params *ListPodBillingParams, reqEditors ...RequestEditorFn) (*ListPodBillingResult, error)
ListPodBillingWithResponse Get pod billing history
Returns pod-only billing detail for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use podId to narrow the response to one GPU or CPU pod; without it, records are emitted per pod per bucket. Each record includes podId, GPU, CPU, disk, and total amounts, while metadata echoes the resolved query and totals across the pod records. Use listBilling when you need aggregate spend across every billable resource family.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/billing/pods (the `ListPodBilling` operationId).
func (*ClientWithResponses) ListServerlessBillingWithResponse ¶
func (c *ClientWithResponses) ListServerlessBillingWithResponse(ctx context.Context, params *ListServerlessBillingParams, reqEditors ...RequestEditorFn) (*ListServerlessBillingResult, error)
ListServerlessBillingWithResponse Get serverless billing history
Returns serverless endpoint billing detail for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use serverlessId to filter to one endpoint; without it, records are emitted per serverless endpoint per bucket. Each record reports endpoint-level GPU, CPU, disk, and total amounts. This is distinct from pod billing, which covers standalone GPU and CPU pod costs rather than serverless endpoint workloads.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/billing/serverless (the `ListServerlessBilling` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListBillingWithResponse Get aggregated billing history
//
// Returns time-bucketed total spend across all billable Runpod resources for the authenticated user. Use startTime/endTime with bucketSize for an explicit range, or lastN with bucketSize for the most recent buckets. Each record reports one bucket's total plus pod, serverless, storage, public endpoint, and Instant Cluster cost components. The metadata block echoes the resolved query window, record count, and totals across all returned buckets.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/billing (the `ListBilling` operationId).
ListBillingWithResponse(ctx context.Context, params *ListBillingParams, reqEditors ...RequestEditorFn) (*ListBillingResult, error)
// ListClusterBillingWithResponse Get cluster billing history
//
// Returns Cluster billing history for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use clusterId to filter to one cluster; without it, records are emitted per cluster per bucket. Each record includes GPU compute, disk, inter-node networking, and total amounts. Clusters are GPU-only, so no CPU cost component is returned.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/billing/clusters (the `ListClusterBilling` operationId).
ListClusterBillingWithResponse(ctx context.Context, params *ListClusterBillingParams, reqEditors ...RequestEditorFn) (*ListClusterBillingResult, error)
// ListEndpointBillingWithResponse Get public endpoint billing history
//
// Returns Runpod public endpoint billing history for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Each record reports the endpoint total for one bucket, and metadata echoes the resolved query window, record count, and total endpoint amount across all returned records.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/billing/endpoints (the `ListEndpointBilling` operationId).
ListEndpointBillingWithResponse(ctx context.Context, params *ListEndpointBillingParams, reqEditors ...RequestEditorFn) (*ListEndpointBillingResult, error)
// ListNetworkVolumeBillingWithResponse Get network volume billing history
//
// Returns network volume billing history for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use networkVolumeId to filter to one volume; without it, records are emitted per volume per bucket. Each record includes standard storage, high-performance storage, and total amounts, while metadata reports the resolved query, distinct volume count, and totals across the returned records.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/billing/network-volumes (the `ListNetworkVolumeBilling` operationId).
ListNetworkVolumeBillingWithResponse(ctx context.Context, params *ListNetworkVolumeBillingParams, reqEditors ...RequestEditorFn) (*ListNetworkVolumeBillingResult, error)
// ListPodBillingWithResponse Get pod billing history
//
// Returns pod-only billing detail for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use podId to narrow the response to one GPU or CPU pod; without it, records are emitted per pod per bucket. Each record includes podId, GPU, CPU, disk, and total amounts, while metadata echoes the resolved query and totals across the pod records. Use listBilling when you need aggregate spend across every billable resource family.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/billing/pods (the `ListPodBilling` operationId).
ListPodBillingWithResponse(ctx context.Context, params *ListPodBillingParams, reqEditors ...RequestEditorFn) (*ListPodBillingResult, error)
// ListServerlessBillingWithResponse Get serverless billing history
//
// Returns serverless endpoint billing detail for the authenticated user, split into time buckets by startTime/endTime with bucketSize or by lastN recent buckets. Use serverlessId to filter to one endpoint; without it, records are emitted per serverless endpoint per bucket. Each record reports endpoint-level GPU, CPU, disk, and total amounts. This is distinct from pod billing, which covers standalone GPU and CPU pod costs rather than serverless endpoint workloads.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/billing/serverless (the `ListServerlessBilling` operationId).
ListServerlessBillingWithResponse(ctx context.Context, params *ListServerlessBillingParams, reqEditors ...RequestEditorFn) (*ListServerlessBillingResult, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListBillingParams ¶
type ListBillingParams struct {
// StartTime Start of the billing period (RFC 3339). Defaults to 30 days ago. Snapped down to the start of its bucketSize bucket so the window aligns with the returned records; provide a boundary-aligned value (e.g. midnight for bucketSize=day) to avoid widening.
StartTime *externalRef0.BillingStartTime `form:"startTime,omitempty" json:"startTime,omitempty"`
// EndTime End of the billing period (RFC 3339), exclusive. Defaults to now. Snapped up to the end of the bucketSize bucket it lands in (unless already on a boundary) so the window aligns with the returned records.
EndTime *externalRef0.BillingEndTime `form:"endTime,omitempty" json:"endTime,omitempty"`
// BucketSize Length of each billing time bucket. Defaults to day.
BucketSize *externalRef0.BillingBucketSize `form:"bucketSize,omitempty" json:"bucketSize,omitempty"`
// LastN Return the last N buckets of bucketSize, ending with the current (in-progress) bucket — e.g. lastN=100 with bucketSize=day is "last 100 days". The resolved window is aligned to bucket boundaries: startTime is the start of the earliest bucket (e.g. midnight of the earliest day) and endTime is the end of the current bucket. Mutually exclusive with startTime/endTime; provide one or the other, not both.
LastN *externalRef0.BillingLastN `form:"lastN,omitempty" json:"lastN,omitempty"`
}
ListBillingParams defines parameters for ListBilling.
type ListBillingResult ¶
type ListBillingResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.ListBillingResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListBillingResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *ListBillingResult403Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListBillingResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *ListBillingResultDefaultHeaders
}
func ParseListBillingResult ¶
func ParseListBillingResult(rsp *http.Response) (*ListBillingResult, error)
ParseListBillingResult parses an HTTP response from a ListBillingWithResponse call
func (ListBillingResult) ContentType ¶
func (r ListBillingResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListBillingResult) GetApplicationproblemJSON401 ¶
func (r ListBillingResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListBillingResult) GetApplicationproblemJSON403 ¶
func (r ListBillingResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListBillingResult) GetApplicationproblemJSON429 ¶
func (r ListBillingResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListBillingResult) GetApplicationproblemJSONDefault ¶
func (r ListBillingResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListBillingResult) GetBody ¶
func (r ListBillingResult) GetBody() []byte
GetBody returns the raw response body bytes
func (ListBillingResult) GetJSON200 ¶
func (r ListBillingResult) GetJSON200() *externalRef0.ListBillingResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListBillingResult) Status ¶
func (r ListBillingResult) Status() string
Status returns HTTPResponse.Status
func (ListBillingResult) StatusCode ¶
func (r ListBillingResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListBillingResult200Headers ¶
type ListBillingResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListBillingResult200Headers the declared response headers of an HTTP 200 response for ListBilling
type ListBillingResult403Headers ¶
type ListBillingResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListBillingResult403Headers the declared response headers of an HTTP 403 response for ListBilling
type ListBillingResult429Headers ¶
type ListBillingResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
ListBillingResult429Headers the declared response headers of an HTTP 429 response for ListBilling
type ListBillingResultDefaultHeaders ¶
type ListBillingResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListBillingResultDefaultHeaders the declared response headers of an HTTP default response for ListBilling
type ListClusterBillingParams ¶
type ListClusterBillingParams struct {
// StartTime Start of the billing period (RFC 3339). Defaults to 30 days ago. Snapped down to the start of its bucketSize bucket so the window aligns with the returned records; provide a boundary-aligned value (e.g. midnight for bucketSize=day) to avoid widening.
StartTime *externalRef0.BillingStartTime `form:"startTime,omitempty" json:"startTime,omitempty"`
// EndTime End of the billing period (RFC 3339), exclusive. Defaults to now. Snapped up to the end of the bucketSize bucket it lands in (unless already on a boundary) so the window aligns with the returned records.
EndTime *externalRef0.BillingEndTime `form:"endTime,omitempty" json:"endTime,omitempty"`
// BucketSize Length of each billing time bucket. Defaults to day.
BucketSize *externalRef0.BillingBucketSize `form:"bucketSize,omitempty" json:"bucketSize,omitempty"`
// LastN Return the last N buckets of bucketSize, ending with the current (in-progress) bucket — e.g. lastN=100 with bucketSize=day is "last 100 days". The resolved window is aligned to bucket boundaries: startTime is the start of the earliest bucket (e.g. midnight of the earliest day) and endTime is the end of the current bucket. Mutually exclusive with startTime/endTime; provide one or the other, not both.
LastN *externalRef0.BillingLastN `form:"lastN,omitempty" json:"lastN,omitempty"`
// ClusterId Filter to a specific cluster.
ClusterId *string `form:"clusterId,omitempty" json:"clusterId,omitempty"`
}
ListClusterBillingParams defines parameters for ListClusterBilling.
type ListClusterBillingResult ¶
type ListClusterBillingResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.ListClusterBillingResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListClusterBillingResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *ListClusterBillingResult403Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListClusterBillingResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *ListClusterBillingResultDefaultHeaders
}
func ParseListClusterBillingResult ¶
func ParseListClusterBillingResult(rsp *http.Response) (*ListClusterBillingResult, error)
ParseListClusterBillingResult parses an HTTP response from a ListClusterBillingWithResponse call
func (ListClusterBillingResult) ContentType ¶
func (r ListClusterBillingResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListClusterBillingResult) GetApplicationproblemJSON401 ¶
func (r ListClusterBillingResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListClusterBillingResult) GetApplicationproblemJSON403 ¶
func (r ListClusterBillingResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListClusterBillingResult) GetApplicationproblemJSON429 ¶
func (r ListClusterBillingResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListClusterBillingResult) GetApplicationproblemJSONDefault ¶
func (r ListClusterBillingResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListClusterBillingResult) GetBody ¶
func (r ListClusterBillingResult) GetBody() []byte
GetBody returns the raw response body bytes
func (ListClusterBillingResult) GetJSON200 ¶
func (r ListClusterBillingResult) GetJSON200() *externalRef0.ListClusterBillingResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListClusterBillingResult) Status ¶
func (r ListClusterBillingResult) Status() string
Status returns HTTPResponse.Status
func (ListClusterBillingResult) StatusCode ¶
func (r ListClusterBillingResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListClusterBillingResult200Headers ¶
type ListClusterBillingResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListClusterBillingResult200Headers the declared response headers of an HTTP 200 response for ListClusterBilling
type ListClusterBillingResult403Headers ¶
type ListClusterBillingResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListClusterBillingResult403Headers the declared response headers of an HTTP 403 response for ListClusterBilling
type ListClusterBillingResult429Headers ¶
type ListClusterBillingResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
ListClusterBillingResult429Headers the declared response headers of an HTTP 429 response for ListClusterBilling
type ListClusterBillingResultDefaultHeaders ¶
type ListClusterBillingResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListClusterBillingResultDefaultHeaders the declared response headers of an HTTP default response for ListClusterBilling
type ListEndpointBillingParams ¶
type ListEndpointBillingParams struct {
// StartTime Start of the billing period (RFC 3339). Defaults to 30 days ago. Snapped down to the start of its bucketSize bucket so the window aligns with the returned records; provide a boundary-aligned value (e.g. midnight for bucketSize=day) to avoid widening.
StartTime *externalRef0.BillingStartTime `form:"startTime,omitempty" json:"startTime,omitempty"`
// EndTime End of the billing period (RFC 3339), exclusive. Defaults to now. Snapped up to the end of the bucketSize bucket it lands in (unless already on a boundary) so the window aligns with the returned records.
EndTime *externalRef0.BillingEndTime `form:"endTime,omitempty" json:"endTime,omitempty"`
// BucketSize Length of each billing time bucket. Defaults to day.
BucketSize *externalRef0.BillingBucketSize `form:"bucketSize,omitempty" json:"bucketSize,omitempty"`
// LastN Return the last N buckets of bucketSize, ending with the current (in-progress) bucket — e.g. lastN=100 with bucketSize=day is "last 100 days". The resolved window is aligned to bucket boundaries: startTime is the start of the earliest bucket (e.g. midnight of the earliest day) and endTime is the end of the current bucket. Mutually exclusive with startTime/endTime; provide one or the other, not both.
LastN *externalRef0.BillingLastN `form:"lastN,omitempty" json:"lastN,omitempty"`
}
ListEndpointBillingParams defines parameters for ListEndpointBilling.
type ListEndpointBillingResult ¶
type ListEndpointBillingResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.ListEndpointBillingResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListEndpointBillingResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *ListEndpointBillingResult403Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListEndpointBillingResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *ListEndpointBillingResultDefaultHeaders
}
func ParseListEndpointBillingResult ¶
func ParseListEndpointBillingResult(rsp *http.Response) (*ListEndpointBillingResult, error)
ParseListEndpointBillingResult parses an HTTP response from a ListEndpointBillingWithResponse call
func (ListEndpointBillingResult) ContentType ¶
func (r ListEndpointBillingResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListEndpointBillingResult) GetApplicationproblemJSON401 ¶
func (r ListEndpointBillingResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListEndpointBillingResult) GetApplicationproblemJSON403 ¶
func (r ListEndpointBillingResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListEndpointBillingResult) GetApplicationproblemJSON429 ¶
func (r ListEndpointBillingResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListEndpointBillingResult) GetApplicationproblemJSONDefault ¶
func (r ListEndpointBillingResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListEndpointBillingResult) GetBody ¶
func (r ListEndpointBillingResult) GetBody() []byte
GetBody returns the raw response body bytes
func (ListEndpointBillingResult) GetJSON200 ¶
func (r ListEndpointBillingResult) GetJSON200() *externalRef0.ListEndpointBillingResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListEndpointBillingResult) Status ¶
func (r ListEndpointBillingResult) Status() string
Status returns HTTPResponse.Status
func (ListEndpointBillingResult) StatusCode ¶
func (r ListEndpointBillingResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEndpointBillingResult200Headers ¶
type ListEndpointBillingResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointBillingResult200Headers the declared response headers of an HTTP 200 response for ListEndpointBilling
type ListEndpointBillingResult403Headers ¶
type ListEndpointBillingResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointBillingResult403Headers the declared response headers of an HTTP 403 response for ListEndpointBilling
type ListEndpointBillingResult429Headers ¶
type ListEndpointBillingResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
ListEndpointBillingResult429Headers the declared response headers of an HTTP 429 response for ListEndpointBilling
type ListEndpointBillingResultDefaultHeaders ¶
type ListEndpointBillingResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListEndpointBillingResultDefaultHeaders the declared response headers of an HTTP default response for ListEndpointBilling
type ListNetworkVolumeBillingParams ¶
type ListNetworkVolumeBillingParams struct {
// StartTime Start of the billing period (RFC 3339). Defaults to 30 days ago. Snapped down to the start of its bucketSize bucket so the window aligns with the returned records; provide a boundary-aligned value (e.g. midnight for bucketSize=day) to avoid widening.
StartTime *externalRef0.BillingStartTime `form:"startTime,omitempty" json:"startTime,omitempty"`
// EndTime End of the billing period (RFC 3339), exclusive. Defaults to now. Snapped up to the end of the bucketSize bucket it lands in (unless already on a boundary) so the window aligns with the returned records.
EndTime *externalRef0.BillingEndTime `form:"endTime,omitempty" json:"endTime,omitempty"`
// BucketSize Length of each billing time bucket. Defaults to day.
BucketSize *externalRef0.BillingBucketSize `form:"bucketSize,omitempty" json:"bucketSize,omitempty"`
// LastN Return the last N buckets of bucketSize, ending with the current (in-progress) bucket — e.g. lastN=100 with bucketSize=day is "last 100 days". The resolved window is aligned to bucket boundaries: startTime is the start of the earliest bucket (e.g. midnight of the earliest day) and endTime is the end of the current bucket. Mutually exclusive with startTime/endTime; provide one or the other, not both.
LastN *externalRef0.BillingLastN `form:"lastN,omitempty" json:"lastN,omitempty"`
// NetworkVolumeId Filter to a specific network volume.
NetworkVolumeId *string `form:"networkVolumeId,omitempty" json:"networkVolumeId,omitempty"`
}
ListNetworkVolumeBillingParams defines parameters for ListNetworkVolumeBilling.
type ListNetworkVolumeBillingResult ¶
type ListNetworkVolumeBillingResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.ListNetworkVolumeBillingResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListNetworkVolumeBillingResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *ListNetworkVolumeBillingResult403Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListNetworkVolumeBillingResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *ListNetworkVolumeBillingResultDefaultHeaders
}
func ParseListNetworkVolumeBillingResult ¶
func ParseListNetworkVolumeBillingResult(rsp *http.Response) (*ListNetworkVolumeBillingResult, error)
ParseListNetworkVolumeBillingResult parses an HTTP response from a ListNetworkVolumeBillingWithResponse call
func (ListNetworkVolumeBillingResult) ContentType ¶
func (r ListNetworkVolumeBillingResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListNetworkVolumeBillingResult) GetApplicationproblemJSON401 ¶
func (r ListNetworkVolumeBillingResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListNetworkVolumeBillingResult) GetApplicationproblemJSON403 ¶
func (r ListNetworkVolumeBillingResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListNetworkVolumeBillingResult) GetApplicationproblemJSON429 ¶
func (r ListNetworkVolumeBillingResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListNetworkVolumeBillingResult) GetApplicationproblemJSONDefault ¶
func (r ListNetworkVolumeBillingResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListNetworkVolumeBillingResult) GetBody ¶
func (r ListNetworkVolumeBillingResult) GetBody() []byte
GetBody returns the raw response body bytes
func (ListNetworkVolumeBillingResult) GetJSON200 ¶
func (r ListNetworkVolumeBillingResult) GetJSON200() *externalRef0.ListNetworkVolumeBillingResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListNetworkVolumeBillingResult) Status ¶
func (r ListNetworkVolumeBillingResult) Status() string
Status returns HTTPResponse.Status
func (ListNetworkVolumeBillingResult) StatusCode ¶
func (r ListNetworkVolumeBillingResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListNetworkVolumeBillingResult200Headers ¶
type ListNetworkVolumeBillingResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListNetworkVolumeBillingResult200Headers the declared response headers of an HTTP 200 response for ListNetworkVolumeBilling
type ListNetworkVolumeBillingResult403Headers ¶
type ListNetworkVolumeBillingResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListNetworkVolumeBillingResult403Headers the declared response headers of an HTTP 403 response for ListNetworkVolumeBilling
type ListNetworkVolumeBillingResult429Headers ¶
type ListNetworkVolumeBillingResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
ListNetworkVolumeBillingResult429Headers the declared response headers of an HTTP 429 response for ListNetworkVolumeBilling
type ListNetworkVolumeBillingResultDefaultHeaders ¶
type ListNetworkVolumeBillingResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListNetworkVolumeBillingResultDefaultHeaders the declared response headers of an HTTP default response for ListNetworkVolumeBilling
type ListPodBillingParams ¶
type ListPodBillingParams struct {
// StartTime Start of the billing period (RFC 3339). Defaults to 30 days ago. Snapped down to the start of its bucketSize bucket so the window aligns with the returned records; provide a boundary-aligned value (e.g. midnight for bucketSize=day) to avoid widening.
StartTime *externalRef0.BillingStartTime `form:"startTime,omitempty" json:"startTime,omitempty"`
// EndTime End of the billing period (RFC 3339), exclusive. Defaults to now. Snapped up to the end of the bucketSize bucket it lands in (unless already on a boundary) so the window aligns with the returned records.
EndTime *externalRef0.BillingEndTime `form:"endTime,omitempty" json:"endTime,omitempty"`
// BucketSize Length of each billing time bucket. Defaults to day.
BucketSize *externalRef0.BillingBucketSize `form:"bucketSize,omitempty" json:"bucketSize,omitempty"`
// LastN Return the last N buckets of bucketSize, ending with the current (in-progress) bucket — e.g. lastN=100 with bucketSize=day is "last 100 days". The resolved window is aligned to bucket boundaries: startTime is the start of the earliest bucket (e.g. midnight of the earliest day) and endTime is the end of the current bucket. Mutually exclusive with startTime/endTime; provide one or the other, not both.
LastN *externalRef0.BillingLastN `form:"lastN,omitempty" json:"lastN,omitempty"`
// PodId Filter to a specific pod (GPU or CPU).
PodId *string `form:"podId,omitempty" json:"podId,omitempty"`
}
ListPodBillingParams defines parameters for ListPodBilling.
type ListPodBillingResult ¶
type ListPodBillingResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.ListPodBillingResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListPodBillingResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *ListPodBillingResult403Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListPodBillingResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *ListPodBillingResultDefaultHeaders
}
func ParseListPodBillingResult ¶
func ParseListPodBillingResult(rsp *http.Response) (*ListPodBillingResult, error)
ParseListPodBillingResult parses an HTTP response from a ListPodBillingWithResponse call
func (ListPodBillingResult) ContentType ¶
func (r ListPodBillingResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListPodBillingResult) GetApplicationproblemJSON401 ¶
func (r ListPodBillingResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListPodBillingResult) GetApplicationproblemJSON403 ¶
func (r ListPodBillingResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListPodBillingResult) GetApplicationproblemJSON429 ¶
func (r ListPodBillingResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListPodBillingResult) GetApplicationproblemJSONDefault ¶
func (r ListPodBillingResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListPodBillingResult) GetBody ¶
func (r ListPodBillingResult) GetBody() []byte
GetBody returns the raw response body bytes
func (ListPodBillingResult) GetJSON200 ¶
func (r ListPodBillingResult) GetJSON200() *externalRef0.ListPodBillingResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListPodBillingResult) Status ¶
func (r ListPodBillingResult) Status() string
Status returns HTTPResponse.Status
func (ListPodBillingResult) StatusCode ¶
func (r ListPodBillingResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPodBillingResult200Headers ¶
type ListPodBillingResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListPodBillingResult200Headers the declared response headers of an HTTP 200 response for ListPodBilling
type ListPodBillingResult403Headers ¶
type ListPodBillingResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListPodBillingResult403Headers the declared response headers of an HTTP 403 response for ListPodBilling
type ListPodBillingResult429Headers ¶
type ListPodBillingResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
ListPodBillingResult429Headers the declared response headers of an HTTP 429 response for ListPodBilling
type ListPodBillingResultDefaultHeaders ¶
type ListPodBillingResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListPodBillingResultDefaultHeaders the declared response headers of an HTTP default response for ListPodBilling
type ListServerlessBillingParams ¶
type ListServerlessBillingParams struct {
// StartTime Start of the billing period (RFC 3339). Defaults to 30 days ago. Snapped down to the start of its bucketSize bucket so the window aligns with the returned records; provide a boundary-aligned value (e.g. midnight for bucketSize=day) to avoid widening.
StartTime *externalRef0.BillingStartTime `form:"startTime,omitempty" json:"startTime,omitempty"`
// EndTime End of the billing period (RFC 3339), exclusive. Defaults to now. Snapped up to the end of the bucketSize bucket it lands in (unless already on a boundary) so the window aligns with the returned records.
EndTime *externalRef0.BillingEndTime `form:"endTime,omitempty" json:"endTime,omitempty"`
// BucketSize Length of each billing time bucket. Defaults to day.
BucketSize *externalRef0.BillingBucketSize `form:"bucketSize,omitempty" json:"bucketSize,omitempty"`
// LastN Return the last N buckets of bucketSize, ending with the current (in-progress) bucket — e.g. lastN=100 with bucketSize=day is "last 100 days". The resolved window is aligned to bucket boundaries: startTime is the start of the earliest bucket (e.g. midnight of the earliest day) and endTime is the end of the current bucket. Mutually exclusive with startTime/endTime; provide one or the other, not both.
LastN *externalRef0.BillingLastN `form:"lastN,omitempty" json:"lastN,omitempty"`
// ServerlessId Filter to a specific serverless endpoint.
ServerlessId *string `form:"serverlessId,omitempty" json:"serverlessId,omitempty"`
}
ListServerlessBillingParams defines parameters for ListServerlessBilling.
type ListServerlessBillingResult ¶
type ListServerlessBillingResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.ListServerlessBillingResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListServerlessBillingResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *ListServerlessBillingResult403Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListServerlessBillingResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *ListServerlessBillingResultDefaultHeaders
}
func ParseListServerlessBillingResult ¶
func ParseListServerlessBillingResult(rsp *http.Response) (*ListServerlessBillingResult, error)
ParseListServerlessBillingResult parses an HTTP response from a ListServerlessBillingWithResponse call
func (ListServerlessBillingResult) ContentType ¶
func (r ListServerlessBillingResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListServerlessBillingResult) GetApplicationproblemJSON401 ¶
func (r ListServerlessBillingResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListServerlessBillingResult) GetApplicationproblemJSON403 ¶
func (r ListServerlessBillingResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListServerlessBillingResult) GetApplicationproblemJSON429 ¶
func (r ListServerlessBillingResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListServerlessBillingResult) GetApplicationproblemJSONDefault ¶
func (r ListServerlessBillingResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListServerlessBillingResult) GetBody ¶
func (r ListServerlessBillingResult) GetBody() []byte
GetBody returns the raw response body bytes
func (ListServerlessBillingResult) GetJSON200 ¶
func (r ListServerlessBillingResult) GetJSON200() *externalRef0.ListServerlessBillingResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListServerlessBillingResult) Status ¶
func (r ListServerlessBillingResult) Status() string
Status returns HTTPResponse.Status
func (ListServerlessBillingResult) StatusCode ¶
func (r ListServerlessBillingResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListServerlessBillingResult200Headers ¶
type ListServerlessBillingResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListServerlessBillingResult200Headers the declared response headers of an HTTP 200 response for ListServerlessBilling
type ListServerlessBillingResult403Headers ¶
type ListServerlessBillingResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListServerlessBillingResult403Headers the declared response headers of an HTTP 403 response for ListServerlessBilling
type ListServerlessBillingResult429Headers ¶
type ListServerlessBillingResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
ListServerlessBillingResult429Headers the declared response headers of an HTTP 429 response for ListServerlessBilling
type ListServerlessBillingResultDefaultHeaders ¶
type ListServerlessBillingResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListServerlessBillingResultDefaultHeaders the declared response headers of an HTTP default response for ListServerlessBilling