catalog

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package catalog 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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetCpuTypeRequest

func NewGetCpuTypeRequest(server string, id string, params *GetCpuTypeParams) (*http.Request, error)

NewGetCpuTypeRequest constructs an http.Request for the GetCpuType method

func NewGetDataCenterRequest

func NewGetDataCenterRequest(server string, id string, params *GetDataCenterParams) (*http.Request, error)

NewGetDataCenterRequest constructs an http.Request for the GetDataCenter method

func NewGetGpuTypeRequest

func NewGetGpuTypeRequest(server string, id string, params *GetGpuTypeParams) (*http.Request, error)

NewGetGpuTypeRequest constructs an http.Request for the GetGpuType method

func NewListCpuTypesRequest

func NewListCpuTypesRequest(server string, params *ListCpuTypesParams) (*http.Request, error)

NewListCpuTypesRequest constructs an http.Request for the ListCpuTypes method

func NewListDataCentersRequest

func NewListDataCentersRequest(server string, params *ListDataCentersParams) (*http.Request, error)

NewListDataCentersRequest constructs an http.Request for the ListDataCenters method

func NewListGpuTypesRequest

func NewListGpuTypesRequest(server string, params *ListGpuTypesParams) (*http.Request, error)

NewListGpuTypesRequest constructs an http.Request for the ListGpuTypes method

func NewListPublicTemplatesRequest

func NewListPublicTemplatesRequest(server string, params *ListPublicTemplatesParams) (*http.Request, error)

NewListPublicTemplatesRequest constructs an http.Request for the ListPublicTemplates 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) GetCpuType

func (c *Client) GetCpuType(ctx context.Context, id string, params *GetCpuTypeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetCpuType Get a CPU type

Returns a single CPU type with pricing. Availability details are included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.

Corresponds with GET /v2/catalog/cpus/{id} (the `GetCpuType` operationId).

func (*Client) GetDataCenter

func (c *Client) GetDataCenter(ctx context.Context, id string, params *GetDataCenterParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetDataCenter Get a data center

Returns a single data center. Availability is included only when requested with include=GPU_AVAILABILITY or include=CPU_AVAILABILITY.

Corresponds with GET /v2/catalog/datacenters/{id} (the `GetDataCenter` operationId).

func (*Client) GetGpuType

func (c *Client) GetGpuType(ctx context.Context, id string, params *GetGpuTypeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetGpuType Get a GPU type

Returns a single GPU type with pricing. Availability details are included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.

Corresponds with GET /v2/catalog/gpus/{id} (the `GetGpuType` operationId).

func (*Client) ListCpuTypes

func (c *Client) ListCpuTypes(ctx context.Context, params *ListCpuTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListCpuTypes List CPU types

Returns available CPU flavors. Availability is included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.

Corresponds with GET /v2/catalog/cpus (the `ListCpuTypes` operationId).

func (*Client) ListDataCenters

func (c *Client) ListDataCenters(ctx context.Context, params *ListDataCentersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListDataCenters List data centers

Returns available data center locations with region, compliance, supported network volume tiers, and global networking support. Use include=GPU_AVAILABILITY or include=CPU_AVAILABILITY to add per-resource availability arrays to each data center. The regions, networkVolumeTypes, compliance, and globalNetwork query parameters filter the list before it is returned.

Corresponds with GET /v2/catalog/datacenters (the `ListDataCenters` operationId).

func (*Client) ListGpuTypes

func (c *Client) ListGpuTypes(ctx context.Context, params *ListGpuTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListGpuTypes List GPU types

Returns available GPU types with pricing. Availability is included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context. With countryCodes, the list is narrowed to GPU types deployable in those countries, so "this geography + this chip" resolves in one read.

Corresponds with GET /v2/catalog/gpus (the `ListGpuTypes` operationId).

func (*Client) ListPublicTemplates

func (c *Client) ListPublicTemplates(ctx context.Context, params *ListPublicTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListPublicTemplates List public templates

Returns the public template catalog. `source` selects which slice: `official` (the default) is Runpod-curated templates, `verified` is community templates Runpod has verified, and `community` is everything else other users have shared publicly. Both pod and serverless templates appear — use each entry's `serverless` flag to tell them apart. `registry` is always null for templates you don't own. Your own templates (public or private) are managed under `/v2/templates`; fetch any individual template — catalog or owned — via `/v2/templates/{id}`.

At most 100 templates are returned, and the response is the bare template list: this operation is not cursor-paginated and carries no `pagination` block. `GET /v2/templates` is the cursor-paged list of your own templates.

Corresponds with GET /v2/catalog/templates (the `ListPublicTemplates` operationId).

type ClientInterface

type ClientInterface interface {

	// ListCpuTypes List CPU types
	//
	// Returns available CPU flavors. Availability is included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.
	//
	// Corresponds with GET /v2/catalog/cpus (the `ListCpuTypes` operationId).
	ListCpuTypes(ctx context.Context, params *ListCpuTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCpuType Get a CPU type
	//
	// Returns a single CPU type with pricing. Availability details are included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.
	//
	// Corresponds with GET /v2/catalog/cpus/{id} (the `GetCpuType` operationId).
	GetCpuType(ctx context.Context, id string, params *GetCpuTypeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListDataCenters List data centers
	//
	// Returns available data center locations with region, compliance, supported network volume tiers, and global networking support. Use include=GPU_AVAILABILITY or include=CPU_AVAILABILITY to add per-resource availability arrays to each data center. The regions, networkVolumeTypes, compliance, and globalNetwork query parameters filter the list before it is returned.
	//
	// Corresponds with GET /v2/catalog/datacenters (the `ListDataCenters` operationId).
	ListDataCenters(ctx context.Context, params *ListDataCentersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDataCenter Get a data center
	//
	// Returns a single data center. Availability is included only when requested with include=GPU_AVAILABILITY or include=CPU_AVAILABILITY.
	//
	// Corresponds with GET /v2/catalog/datacenters/{id} (the `GetDataCenter` operationId).
	GetDataCenter(ctx context.Context, id string, params *GetDataCenterParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListGpuTypes List GPU types
	//
	// Returns available GPU types with pricing. Availability is included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context. With countryCodes, the list is narrowed to GPU types deployable in those countries, so "this geography + this chip" resolves in one read.
	//
	// Corresponds with GET /v2/catalog/gpus (the `ListGpuTypes` operationId).
	ListGpuTypes(ctx context.Context, params *ListGpuTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetGpuType Get a GPU type
	//
	// Returns a single GPU type with pricing. Availability details are included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.
	//
	// Corresponds with GET /v2/catalog/gpus/{id} (the `GetGpuType` operationId).
	GetGpuType(ctx context.Context, id string, params *GetGpuTypeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPublicTemplates List public templates
	//
	// Returns the public template catalog. `source` selects which slice:
	// `official` (the default) is Runpod-curated templates, `verified` is
	// community templates Runpod has verified, and `community` is everything
	// else other users have shared publicly. Both pod and serverless
	// templates appear — use each entry's `serverless` flag to tell them
	// apart. `registry` is always null for templates you don't own. Your own
	// templates (public or private) are managed under `/v2/templates`; fetch
	// any individual template — catalog or owned — via `/v2/templates/{id}`.
	//
	// At most 100 templates are returned, and the response is the bare
	// template list: this operation is not cursor-paginated and carries no
	// `pagination` block. `GET /v2/templates` is the cursor-paged list of
	// your own templates.
	//
	// Corresponds with GET /v2/catalog/templates (the `ListPublicTemplates` operationId).
	ListPublicTemplates(ctx context.Context, params *ListPublicTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) GetCpuTypeWithResponse

func (c *ClientWithResponses) GetCpuTypeWithResponse(ctx context.Context, id string, params *GetCpuTypeParams, reqEditors ...RequestEditorFn) (*GetCpuTypeResult, error)

GetCpuTypeWithResponse Get a CPU type

Returns a single CPU type with pricing. Availability details are included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v2/catalog/cpus/{id} (the `GetCpuType` operationId).

func (*ClientWithResponses) GetDataCenterWithResponse

func (c *ClientWithResponses) GetDataCenterWithResponse(ctx context.Context, id string, params *GetDataCenterParams, reqEditors ...RequestEditorFn) (*GetDataCenterResult, error)

GetDataCenterWithResponse Get a data center

Returns a single data center. Availability is included only when requested with include=GPU_AVAILABILITY or include=CPU_AVAILABILITY.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v2/catalog/datacenters/{id} (the `GetDataCenter` operationId).

func (*ClientWithResponses) GetGpuTypeWithResponse

func (c *ClientWithResponses) GetGpuTypeWithResponse(ctx context.Context, id string, params *GetGpuTypeParams, reqEditors ...RequestEditorFn) (*GetGpuTypeResult, error)

GetGpuTypeWithResponse Get a GPU type

Returns a single GPU type with pricing. Availability details are included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v2/catalog/gpus/{id} (the `GetGpuType` operationId).

func (*ClientWithResponses) ListCpuTypesWithResponse

func (c *ClientWithResponses) ListCpuTypesWithResponse(ctx context.Context, params *ListCpuTypesParams, reqEditors ...RequestEditorFn) (*ListCpuTypesResult, error)

ListCpuTypesWithResponse List CPU types

Returns available CPU flavors. Availability is included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v2/catalog/cpus (the `ListCpuTypes` operationId).

func (*ClientWithResponses) ListDataCentersWithResponse

func (c *ClientWithResponses) ListDataCentersWithResponse(ctx context.Context, params *ListDataCentersParams, reqEditors ...RequestEditorFn) (*ListDataCentersResult, error)

ListDataCentersWithResponse List data centers

Returns available data center locations with region, compliance, supported network volume tiers, and global networking support. Use include=GPU_AVAILABILITY or include=CPU_AVAILABILITY to add per-resource availability arrays to each data center. The regions, networkVolumeTypes, compliance, and globalNetwork query parameters filter the list before it is returned.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v2/catalog/datacenters (the `ListDataCenters` operationId).

func (*ClientWithResponses) ListGpuTypesWithResponse

func (c *ClientWithResponses) ListGpuTypesWithResponse(ctx context.Context, params *ListGpuTypesParams, reqEditors ...RequestEditorFn) (*ListGpuTypesResult, error)

ListGpuTypesWithResponse List GPU types

Returns available GPU types with pricing. Availability is included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context. With countryCodes, the list is narrowed to GPU types deployable in those countries, so "this geography + this chip" resolves in one read.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v2/catalog/gpus (the `ListGpuTypes` operationId).

func (*ClientWithResponses) ListPublicTemplatesWithResponse

func (c *ClientWithResponses) ListPublicTemplatesWithResponse(ctx context.Context, params *ListPublicTemplatesParams, reqEditors ...RequestEditorFn) (*ListPublicTemplatesResult, error)

ListPublicTemplatesWithResponse List public templates

Returns the public template catalog. `source` selects which slice: `official` (the default) is Runpod-curated templates, `verified` is community templates Runpod has verified, and `community` is everything else other users have shared publicly. Both pod and serverless templates appear — use each entry's `serverless` flag to tell them apart. `registry` is always null for templates you don't own. Your own templates (public or private) are managed under `/v2/templates`; fetch any individual template — catalog or owned — via `/v2/templates/{id}`.

At most 100 templates are returned, and the response is the bare template list: this operation is not cursor-paginated and carries no `pagination` block. `GET /v2/templates` is the cursor-paged list of your own templates.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v2/catalog/templates (the `ListPublicTemplates` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ListCpuTypesWithResponse List CPU types
	//
	// Returns available CPU flavors. Availability is included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/catalog/cpus (the `ListCpuTypes` operationId).
	ListCpuTypesWithResponse(ctx context.Context, params *ListCpuTypesParams, reqEditors ...RequestEditorFn) (*ListCpuTypesResult, error)

	// GetCpuTypeWithResponse Get a CPU type
	//
	// Returns a single CPU type with pricing. Availability details are included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/catalog/cpus/{id} (the `GetCpuType` operationId).
	GetCpuTypeWithResponse(ctx context.Context, id string, params *GetCpuTypeParams, reqEditors ...RequestEditorFn) (*GetCpuTypeResult, error)

	// ListDataCentersWithResponse List data centers
	//
	// Returns available data center locations with region, compliance, supported network volume tiers, and global networking support. Use include=GPU_AVAILABILITY or include=CPU_AVAILABILITY to add per-resource availability arrays to each data center. The regions, networkVolumeTypes, compliance, and globalNetwork query parameters filter the list before it is returned.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/catalog/datacenters (the `ListDataCenters` operationId).
	ListDataCentersWithResponse(ctx context.Context, params *ListDataCentersParams, reqEditors ...RequestEditorFn) (*ListDataCentersResult, error)

	// GetDataCenterWithResponse Get a data center
	//
	// Returns a single data center. Availability is included only when requested with include=GPU_AVAILABILITY or include=CPU_AVAILABILITY.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/catalog/datacenters/{id} (the `GetDataCenter` operationId).
	GetDataCenterWithResponse(ctx context.Context, id string, params *GetDataCenterParams, reqEditors ...RequestEditorFn) (*GetDataCenterResult, error)

	// ListGpuTypesWithResponse List GPU types
	//
	// Returns available GPU types with pricing. Availability is included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context. With countryCodes, the list is narrowed to GPU types deployable in those countries, so "this geography + this chip" resolves in one read.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/catalog/gpus (the `ListGpuTypes` operationId).
	ListGpuTypesWithResponse(ctx context.Context, params *ListGpuTypesParams, reqEditors ...RequestEditorFn) (*ListGpuTypesResult, error)

	// GetGpuTypeWithResponse Get a GPU type
	//
	// Returns a single GPU type with pricing. Availability details are included only when requested with include=AVAILABILITY, which requires `product` — stock differs by product context.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/catalog/gpus/{id} (the `GetGpuType` operationId).
	GetGpuTypeWithResponse(ctx context.Context, id string, params *GetGpuTypeParams, reqEditors ...RequestEditorFn) (*GetGpuTypeResult, error)

	// ListPublicTemplatesWithResponse List public templates
	//
	// Returns the public template catalog. `source` selects which slice:
	// `official` (the default) is Runpod-curated templates, `verified` is
	// community templates Runpod has verified, and `community` is everything
	// else other users have shared publicly. Both pod and serverless
	// templates appear — use each entry's `serverless` flag to tell them
	// apart. `registry` is always null for templates you don't own. Your own
	// templates (public or private) are managed under `/v2/templates`; fetch
	// any individual template — catalog or owned — via `/v2/templates/{id}`.
	//
	// At most 100 templates are returned, and the response is the bare
	// template list: this operation is not cursor-paginated and carries no
	// `pagination` block. `GET /v2/templates` is the cursor-paged list of
	// your own templates.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/catalog/templates (the `ListPublicTemplates` operationId).
	ListPublicTemplatesWithResponse(ctx context.Context, params *ListPublicTemplatesParams, reqEditors ...RequestEditorFn) (*ListPublicTemplatesResult, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type GetCpuTypeParams

type GetCpuTypeParams struct {
	// Include Comma-separated optional expansions; see `CatalogInclude` for the supported values.
	Include *externalRef0.CatalogIncludeParam `form:"include,omitempty" json:"include,omitempty"`

	// Product Comma-separated availability product contexts. Supported values for CPUs: POD, SERVERLESS. Required with include=AVAILABILITY, and valid only with it (400 either way). There is no default: availability differs by product.
	Product *externalRef0.CpuProductFilter `form:"product,omitempty" json:"product,omitempty"`

	// VcpuCount Availability vCPU count. Valid only with include=AVAILABILITY. Must be a power of two.
	VcpuCount *externalRef0.CpuVCPUCountFilter `form:"vcpuCount,omitempty" json:"vcpuCount,omitempty"`
}

GetCpuTypeParams defines parameters for GetCpuType.

type GetCpuTypeResult

type GetCpuTypeResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.CpuType
	// 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
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *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 *GetCpuTypeResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetCpuTypeResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetCpuTypeResult404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetCpuTypeResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetCpuTypeResultDefaultHeaders
}

func ParseGetCpuTypeResult

func ParseGetCpuTypeResult(rsp *http.Response) (*GetCpuTypeResult, error)

ParseGetCpuTypeResult parses an HTTP response from a GetCpuTypeWithResponse call

func (GetCpuTypeResult) ContentType

func (r GetCpuTypeResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetCpuTypeResult) GetApplicationproblemJSON401

func (r GetCpuTypeResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetCpuTypeResult) GetApplicationproblemJSON403

func (r GetCpuTypeResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetCpuTypeResult) GetApplicationproblemJSON404

func (r GetCpuTypeResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetCpuTypeResult) GetApplicationproblemJSON429

func (r GetCpuTypeResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetCpuTypeResult) GetApplicationproblemJSONDefault

func (r GetCpuTypeResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (GetCpuTypeResult) GetBody

func (r GetCpuTypeResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetCpuTypeResult) GetJSON200

func (r GetCpuTypeResult) GetJSON200() *externalRef0.CpuType

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetCpuTypeResult) Status

func (r GetCpuTypeResult) Status() string

Status returns HTTPResponse.Status

func (GetCpuTypeResult) StatusCode

func (r GetCpuTypeResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCpuTypeResult200Headers

type GetCpuTypeResult200Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetCpuTypeResult200Headers the declared response headers of an HTTP 200 response for GetCpuType

type GetCpuTypeResult403Headers

type GetCpuTypeResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetCpuTypeResult403Headers the declared response headers of an HTTP 403 response for GetCpuType

type GetCpuTypeResult404Headers

type GetCpuTypeResult404Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetCpuTypeResult404Headers the declared response headers of an HTTP 404 response for GetCpuType

type GetCpuTypeResult429Headers

type GetCpuTypeResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

GetCpuTypeResult429Headers the declared response headers of an HTTP 429 response for GetCpuType

type GetCpuTypeResultDefaultHeaders

type GetCpuTypeResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetCpuTypeResultDefaultHeaders the declared response headers of an HTTP default response for GetCpuType

type GetDataCenterParams

type GetDataCenterParams struct {
	// Include Comma-separated optional expansions. Supported value: GPU_AVAILABILITY, CPU_AVAILABILITY.
	Include *[]externalRef0.DataCenterInclude `form:"include,omitempty" json:"include,omitempty"`
}

GetDataCenterParams defines parameters for GetDataCenter.

type GetDataCenterResult

type GetDataCenterResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.DataCenter
	// 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
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *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 *GetDataCenterResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetDataCenterResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetDataCenterResult404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetDataCenterResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetDataCenterResultDefaultHeaders
}

func ParseGetDataCenterResult

func ParseGetDataCenterResult(rsp *http.Response) (*GetDataCenterResult, error)

ParseGetDataCenterResult parses an HTTP response from a GetDataCenterWithResponse call

func (GetDataCenterResult) ContentType

func (r GetDataCenterResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetDataCenterResult) GetApplicationproblemJSON401

func (r GetDataCenterResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetDataCenterResult) GetApplicationproblemJSON403

func (r GetDataCenterResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetDataCenterResult) GetApplicationproblemJSON404

func (r GetDataCenterResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetDataCenterResult) GetApplicationproblemJSON429

func (r GetDataCenterResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetDataCenterResult) GetApplicationproblemJSONDefault

func (r GetDataCenterResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (GetDataCenterResult) GetBody

func (r GetDataCenterResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetDataCenterResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetDataCenterResult) Status

func (r GetDataCenterResult) Status() string

Status returns HTTPResponse.Status

func (GetDataCenterResult) StatusCode

func (r GetDataCenterResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDataCenterResult200Headers

type GetDataCenterResult200Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetDataCenterResult200Headers the declared response headers of an HTTP 200 response for GetDataCenter

type GetDataCenterResult403Headers

type GetDataCenterResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetDataCenterResult403Headers the declared response headers of an HTTP 403 response for GetDataCenter

type GetDataCenterResult404Headers

type GetDataCenterResult404Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetDataCenterResult404Headers the declared response headers of an HTTP 404 response for GetDataCenter

type GetDataCenterResult429Headers

type GetDataCenterResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

GetDataCenterResult429Headers the declared response headers of an HTTP 429 response for GetDataCenter

type GetDataCenterResultDefaultHeaders

type GetDataCenterResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetDataCenterResultDefaultHeaders the declared response headers of an HTTP default response for GetDataCenter

type GetGpuTypeParams

type GetGpuTypeParams struct {
	// Include Comma-separated optional expansions; see `CatalogInclude` for the supported values.
	Include *externalRef0.CatalogIncludeParam `form:"include,omitempty" json:"include,omitempty"`

	// Product Comma-separated availability product contexts. Supported values: POD, CLUSTER, SERVERLESS. Required with include=AVAILABILITY, and valid only with it (400 either way). There is no default: the same GPU type can be scarce for pods and plentiful for serverless, so the context has to be stated rather than assumed.
	Product *externalRef0.GpuProductFilter `form:"product,omitempty" json:"product,omitempty"`

	// Count GPU count for availability and lowest-price calculations. Valid only with include=AVAILABILITY. Defaults to 1.
	Count *externalRef0.GpuCountFilter `form:"count,omitempty" json:"count,omitempty"`

	// Cloud Cloud type for availability and lowest-price calculations. Valid only with include=AVAILABILITY. Supported values: SECURE, COMMUNITY. Default when omitted: SECURE.
	Cloud *externalRef0.GpuCloudFilter `form:"cloud,omitempty" json:"cloud,omitempty"`

	// CountryCodes Comma-separated ISO 3166-1 alpha-2 country codes, uppercase, to constrain availability to — e.g. FR or FR,DE. Values within this filter use OR semantics. Valid only with include=AVAILABILITY (400 otherwise); a malformed entry is a 422. Scopes availability, lowest-price calculations and the dataCenters array to those countries, so a listed data center outside them is omitted rather than returned with availability NONE. On the list endpoint a GPU type with no data center in those countries drops out entirely; the single-GPU endpoint still returns the requested type, with availability NONE and dataCenters omitted, so a 404 keeps meaning the GPU type does not exist. Read the NONE on availability rather than the absence of dataCenters, which is also absent when availability was not requested.
	CountryCodes *externalRef0.CountryCodesFilter `form:"countryCodes,omitempty" json:"countryCodes,omitempty"`

	// CudaVersions Comma-separated CUDA versions to scope availability and lowest-price calculations to, matched exactly. Format: major.minor, e.g. 12.8 — a bare major is rejected here because it identifies no version. Valid only with include=AVAILABILITY (400 otherwise) and mutually exclusive with minCudaVersion (400 if both are sent); a malformed entry is a 422. Also narrows the returned cudaVersions array; omit it to enumerate every version offered.
	CudaVersions *externalRef0.CudaVersionsFilter `form:"cudaVersions,omitempty" json:"cudaVersions,omitempty"`

	// MinCudaVersion Lowest acceptable CUDA version to scope availability and lowest-price calculations to, compared numerically. Format: integer major or major.minor, e.g. 12 or 12.1 — unlike the `gpu.minCudaVersion` body field on pod and endpoint create, a bare major is accepted here and means any release of that major, because this filter only widens a read. Valid only with include=AVAILABILITY (400 otherwise) and mutually exclusive with cudaVersions (400 if both are sent); a malformed value is a 422. Use this for an open-ended floor and cudaVersions for an exact set.
	MinCudaVersion *externalRef0.MinCudaVersionFilter `form:"minCudaVersion,omitempty" json:"minCudaVersion,omitempty"`
}

GetGpuTypeParams defines parameters for GetGpuType.

type GetGpuTypeResult

type GetGpuTypeResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.GpuType
	// 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
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *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 *GetGpuTypeResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetGpuTypeResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetGpuTypeResult404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetGpuTypeResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetGpuTypeResultDefaultHeaders
}

func ParseGetGpuTypeResult

func ParseGetGpuTypeResult(rsp *http.Response) (*GetGpuTypeResult, error)

ParseGetGpuTypeResult parses an HTTP response from a GetGpuTypeWithResponse call

func (GetGpuTypeResult) ContentType

func (r GetGpuTypeResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetGpuTypeResult) GetApplicationproblemJSON401

func (r GetGpuTypeResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetGpuTypeResult) GetApplicationproblemJSON403

func (r GetGpuTypeResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetGpuTypeResult) GetApplicationproblemJSON404

func (r GetGpuTypeResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetGpuTypeResult) GetApplicationproblemJSON429

func (r GetGpuTypeResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (GetGpuTypeResult) GetApplicationproblemJSONDefault

func (r GetGpuTypeResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (GetGpuTypeResult) GetBody

func (r GetGpuTypeResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetGpuTypeResult) GetJSON200

func (r GetGpuTypeResult) GetJSON200() *externalRef0.GpuType

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetGpuTypeResult) Status

func (r GetGpuTypeResult) Status() string

Status returns HTTPResponse.Status

func (GetGpuTypeResult) StatusCode

func (r GetGpuTypeResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetGpuTypeResult200Headers

type GetGpuTypeResult200Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetGpuTypeResult200Headers the declared response headers of an HTTP 200 response for GetGpuType

type GetGpuTypeResult403Headers

type GetGpuTypeResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetGpuTypeResult403Headers the declared response headers of an HTTP 403 response for GetGpuType

type GetGpuTypeResult404Headers

type GetGpuTypeResult404Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetGpuTypeResult404Headers the declared response headers of an HTTP 404 response for GetGpuType

type GetGpuTypeResult429Headers

type GetGpuTypeResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

GetGpuTypeResult429Headers the declared response headers of an HTTP 429 response for GetGpuType

type GetGpuTypeResultDefaultHeaders

type GetGpuTypeResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

GetGpuTypeResultDefaultHeaders the declared response headers of an HTTP default response for GetGpuType

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListCpuTypesParams

type ListCpuTypesParams struct {
	// Include Comma-separated optional expansions; see `CatalogInclude` for the supported values.
	Include *externalRef0.CatalogIncludeParam `form:"include,omitempty" json:"include,omitempty"`

	// Product Comma-separated availability product contexts. Supported values for CPUs: POD, SERVERLESS. Required with include=AVAILABILITY, and valid only with it (400 either way). There is no default: availability differs by product.
	Product *externalRef0.CpuProductFilter `form:"product,omitempty" json:"product,omitempty"`

	// VcpuCount Availability vCPU count. Valid only with include=AVAILABILITY. Must be a power of two.
	VcpuCount *externalRef0.CpuVCPUCountFilter `form:"vcpuCount,omitempty" json:"vcpuCount,omitempty"`
}

ListCpuTypesParams defines parameters for ListCpuTypes.

type ListCpuTypesResult

type ListCpuTypesResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.ListCpuTypesResponse
	// 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 *ListCpuTypesResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListCpuTypesResult403Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListCpuTypesResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListCpuTypesResultDefaultHeaders
}

func ParseListCpuTypesResult

func ParseListCpuTypesResult(rsp *http.Response) (*ListCpuTypesResult, error)

ParseListCpuTypesResult parses an HTTP response from a ListCpuTypesWithResponse call

func (ListCpuTypesResult) ContentType

func (r ListCpuTypesResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListCpuTypesResult) GetApplicationproblemJSON401

func (r ListCpuTypesResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListCpuTypesResult) GetApplicationproblemJSON403

func (r ListCpuTypesResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListCpuTypesResult) GetApplicationproblemJSON429

func (r ListCpuTypesResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListCpuTypesResult) GetApplicationproblemJSONDefault

func (r ListCpuTypesResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (ListCpuTypesResult) GetBody

func (r ListCpuTypesResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListCpuTypesResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListCpuTypesResult) Status

func (r ListCpuTypesResult) Status() string

Status returns HTTPResponse.Status

func (ListCpuTypesResult) StatusCode

func (r ListCpuTypesResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListCpuTypesResult200Headers

type ListCpuTypesResult200Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListCpuTypesResult200Headers the declared response headers of an HTTP 200 response for ListCpuTypes

type ListCpuTypesResult403Headers

type ListCpuTypesResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListCpuTypesResult403Headers the declared response headers of an HTTP 403 response for ListCpuTypes

type ListCpuTypesResult429Headers

type ListCpuTypesResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

ListCpuTypesResult429Headers the declared response headers of an HTTP 429 response for ListCpuTypes

type ListCpuTypesResultDefaultHeaders

type ListCpuTypesResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListCpuTypesResultDefaultHeaders the declared response headers of an HTTP default response for ListCpuTypes

type ListDataCentersParams

type ListDataCentersParams struct {
	// Include Comma-separated optional expansions. Supported value: GPU_AVAILABILITY, CPU_AVAILABILITY.
	Include *[]externalRef0.DataCenterInclude `form:"include,omitempty" json:"include,omitempty"`

	// Regions Comma-separated DataCenterRegion enum values. Values within this filter use OR semantics. Different filter families combine with AND.
	Regions *[]externalRef0.DataCenterRegion `form:"regions,omitempty" json:"regions,omitempty"`

	// NetworkVolumeTypes Comma-separated volume types. Supported values: STANDARD, HIGH_PERFORMANCE. Values within this filter use AND semantics; volumes=STANDARD,HIGH_PERFORMANCE requires both storage types. Different filter families combine with AND.
	NetworkVolumeTypes *[]externalRef0.VolumeType `form:"networkVolumeTypes,omitempty" json:"networkVolumeTypes,omitempty"`

	// Compliance Comma-separated Compliance enum values. Values within this filter use AND semantics; compliance=GDPR,SOC_2_TYPE_2 requires both certifications. Different filter families combine with AND.
	Compliance *[]externalRef0.Compliance `form:"compliance,omitempty" json:"compliance,omitempty"`

	// GlobalNetwork Filter by global networking support. true returns only data centers that support global networking; false only those that do not. Different filter families combine with AND.
	GlobalNetwork *bool `form:"globalNetwork,omitempty" json:"globalNetwork,omitempty"`
}

ListDataCentersParams defines parameters for ListDataCenters.

type ListDataCentersResult

type ListDataCentersResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.ListDataCentersResponse
	// 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 *ListDataCentersResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListDataCentersResult403Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListDataCentersResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListDataCentersResultDefaultHeaders
}

func ParseListDataCentersResult

func ParseListDataCentersResult(rsp *http.Response) (*ListDataCentersResult, error)

ParseListDataCentersResult parses an HTTP response from a ListDataCentersWithResponse call

func (ListDataCentersResult) ContentType

func (r ListDataCentersResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListDataCentersResult) GetApplicationproblemJSON401

func (r ListDataCentersResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListDataCentersResult) GetApplicationproblemJSON403

func (r ListDataCentersResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListDataCentersResult) GetApplicationproblemJSON429

func (r ListDataCentersResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListDataCentersResult) GetApplicationproblemJSONDefault

func (r ListDataCentersResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (ListDataCentersResult) GetBody

func (r ListDataCentersResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListDataCentersResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListDataCentersResult) Status

func (r ListDataCentersResult) Status() string

Status returns HTTPResponse.Status

func (ListDataCentersResult) StatusCode

func (r ListDataCentersResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListDataCentersResult200Headers

type ListDataCentersResult200Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListDataCentersResult200Headers the declared response headers of an HTTP 200 response for ListDataCenters

type ListDataCentersResult403Headers

type ListDataCentersResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListDataCentersResult403Headers the declared response headers of an HTTP 403 response for ListDataCenters

type ListDataCentersResult429Headers

type ListDataCentersResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

ListDataCentersResult429Headers the declared response headers of an HTTP 429 response for ListDataCenters

type ListDataCentersResultDefaultHeaders

type ListDataCentersResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListDataCentersResultDefaultHeaders the declared response headers of an HTTP default response for ListDataCenters

type ListGpuTypesParams

type ListGpuTypesParams struct {
	// Include Comma-separated optional expansions; see `CatalogInclude` for the supported values.
	Include *externalRef0.CatalogIncludeParam `form:"include,omitempty" json:"include,omitempty"`

	// Product Comma-separated availability product contexts. Supported values: POD, CLUSTER, SERVERLESS. Required with include=AVAILABILITY, and valid only with it (400 either way). There is no default: the same GPU type can be scarce for pods and plentiful for serverless, so the context has to be stated rather than assumed.
	Product *externalRef0.GpuProductFilter `form:"product,omitempty" json:"product,omitempty"`

	// Count GPU count for availability and lowest-price calculations. Valid only with include=AVAILABILITY. Defaults to 1.
	Count *externalRef0.GpuCountFilter `form:"count,omitempty" json:"count,omitempty"`

	// Cloud Cloud type for availability and lowest-price calculations. Valid only with include=AVAILABILITY. Supported values: SECURE, COMMUNITY. Default when omitted: SECURE.
	Cloud *externalRef0.GpuCloudFilter `form:"cloud,omitempty" json:"cloud,omitempty"`

	// CountryCodes Comma-separated ISO 3166-1 alpha-2 country codes, uppercase, to constrain availability to — e.g. FR or FR,DE. Values within this filter use OR semantics. Valid only with include=AVAILABILITY (400 otherwise); a malformed entry is a 422. Scopes availability, lowest-price calculations and the dataCenters array to those countries, so a listed data center outside them is omitted rather than returned with availability NONE. On the list endpoint a GPU type with no data center in those countries drops out entirely; the single-GPU endpoint still returns the requested type, with availability NONE and dataCenters omitted, so a 404 keeps meaning the GPU type does not exist. Read the NONE on availability rather than the absence of dataCenters, which is also absent when availability was not requested.
	CountryCodes *externalRef0.CountryCodesFilter `form:"countryCodes,omitempty" json:"countryCodes,omitempty"`

	// CudaVersions Comma-separated CUDA versions to scope availability and lowest-price calculations to, matched exactly. Format: major.minor, e.g. 12.8 — a bare major is rejected here because it identifies no version. Valid only with include=AVAILABILITY (400 otherwise) and mutually exclusive with minCudaVersion (400 if both are sent); a malformed entry is a 422. Also narrows the returned cudaVersions array; omit it to enumerate every version offered.
	CudaVersions *externalRef0.CudaVersionsFilter `form:"cudaVersions,omitempty" json:"cudaVersions,omitempty"`

	// MinCudaVersion Lowest acceptable CUDA version to scope availability and lowest-price calculations to, compared numerically. Format: integer major or major.minor, e.g. 12 or 12.1 — unlike the `gpu.minCudaVersion` body field on pod and endpoint create, a bare major is accepted here and means any release of that major, because this filter only widens a read. Valid only with include=AVAILABILITY (400 otherwise) and mutually exclusive with cudaVersions (400 if both are sent); a malformed value is a 422. Use this for an open-ended floor and cudaVersions for an exact set.
	MinCudaVersion *externalRef0.MinCudaVersionFilter `form:"minCudaVersion,omitempty" json:"minCudaVersion,omitempty"`
}

ListGpuTypesParams defines parameters for ListGpuTypes.

type ListGpuTypesResult

type ListGpuTypesResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.ListGpuTypesResponse
	// 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 *ListGpuTypesResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListGpuTypesResult403Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListGpuTypesResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListGpuTypesResultDefaultHeaders
}

func ParseListGpuTypesResult

func ParseListGpuTypesResult(rsp *http.Response) (*ListGpuTypesResult, error)

ParseListGpuTypesResult parses an HTTP response from a ListGpuTypesWithResponse call

func (ListGpuTypesResult) ContentType

func (r ListGpuTypesResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListGpuTypesResult) GetApplicationproblemJSON401

func (r ListGpuTypesResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListGpuTypesResult) GetApplicationproblemJSON403

func (r ListGpuTypesResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListGpuTypesResult) GetApplicationproblemJSON429

func (r ListGpuTypesResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListGpuTypesResult) GetApplicationproblemJSONDefault

func (r ListGpuTypesResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (ListGpuTypesResult) GetBody

func (r ListGpuTypesResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListGpuTypesResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListGpuTypesResult) Status

func (r ListGpuTypesResult) Status() string

Status returns HTTPResponse.Status

func (ListGpuTypesResult) StatusCode

func (r ListGpuTypesResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListGpuTypesResult200Headers

type ListGpuTypesResult200Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListGpuTypesResult200Headers the declared response headers of an HTTP 200 response for ListGpuTypes

type ListGpuTypesResult403Headers

type ListGpuTypesResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListGpuTypesResult403Headers the declared response headers of an HTTP 403 response for ListGpuTypes

type ListGpuTypesResult429Headers

type ListGpuTypesResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

ListGpuTypesResult429Headers the declared response headers of an HTTP 429 response for ListGpuTypes

type ListGpuTypesResultDefaultHeaders

type ListGpuTypesResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListGpuTypesResultDefaultHeaders the declared response headers of an HTTP default response for ListGpuTypes

type ListPublicTemplatesParams

type ListPublicTemplatesParams struct {
	// Source Which slice of the catalog to return: `official` for
	// Runpod-curated templates (default), `verified` for
	// Runpod-verified community templates, or `community` for all other
	// publicly shared templates.
	Source *ListPublicTemplatesParamsSource `form:"source,omitempty" json:"source,omitempty"`
}

ListPublicTemplatesParams defines parameters for ListPublicTemplates.

type ListPublicTemplatesParamsSource

type ListPublicTemplatesParamsSource string

ListPublicTemplatesParamsSource defines parameters for ListPublicTemplates.

const (
	CatalogTemplateSourceCommunity ListPublicTemplatesParamsSource = "community"
	CatalogTemplateSourceOfficial  ListPublicTemplatesParamsSource = "official"
	CatalogTemplateSourceVerified  ListPublicTemplatesParamsSource = "verified"
)

Defines values for ListPublicTemplatesParamsSource.

func (ListPublicTemplatesParamsSource) Valid

Valid indicates whether the value is a known member of the ListPublicTemplatesParamsSource enum.

type ListPublicTemplatesResult

type ListPublicTemplatesResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.TemplateList
	// 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 *ListPublicTemplatesResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListPublicTemplatesResult403Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListPublicTemplatesResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListPublicTemplatesResultDefaultHeaders
}

func ParseListPublicTemplatesResult

func ParseListPublicTemplatesResult(rsp *http.Response) (*ListPublicTemplatesResult, error)

ParseListPublicTemplatesResult parses an HTTP response from a ListPublicTemplatesWithResponse call

func (ListPublicTemplatesResult) ContentType

func (r ListPublicTemplatesResult) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListPublicTemplatesResult) GetApplicationproblemJSON401

func (r ListPublicTemplatesResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListPublicTemplatesResult) GetApplicationproblemJSON403

func (r ListPublicTemplatesResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListPublicTemplatesResult) GetApplicationproblemJSON429

func (r ListPublicTemplatesResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse

GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response

func (ListPublicTemplatesResult) GetApplicationproblemJSONDefault

func (r ListPublicTemplatesResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (ListPublicTemplatesResult) GetBody

func (r ListPublicTemplatesResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListPublicTemplatesResult) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListPublicTemplatesResult) Status

func (r ListPublicTemplatesResult) Status() string

Status returns HTTPResponse.Status

func (ListPublicTemplatesResult) StatusCode

func (r ListPublicTemplatesResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPublicTemplatesResult200Headers

type ListPublicTemplatesResult200Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListPublicTemplatesResult200Headers the declared response headers of an HTTP 200 response for ListPublicTemplates

type ListPublicTemplatesResult403Headers

type ListPublicTemplatesResult403Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListPublicTemplatesResult403Headers the declared response headers of an HTTP 403 response for ListPublicTemplates

type ListPublicTemplatesResult429Headers

type ListPublicTemplatesResult429Headers struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	RetryAfter      *int
}

ListPublicTemplatesResult429Headers the declared response headers of an HTTP 429 response for ListPublicTemplates

type ListPublicTemplatesResultDefaultHeaders

type ListPublicTemplatesResultDefaultHeaders struct {
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

ListPublicTemplatesResultDefaultHeaders the declared response headers of an HTTP default response for ListPublicTemplates

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

Jump to

Keyboard shortcuts

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