pods

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: 10 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 pods 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 NewCreatePodRequest

func NewCreatePodRequest(server string, body CreatePodJSONRequestBody) (*http.Request, error)

NewCreatePodRequest calls the generic CreatePod builder with application/json body

func NewCreatePodRequestWithBody

func NewCreatePodRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreatePodRequestWithBody constructs an http.Request for the CreatePod method, with any body, and a specified content type

func NewDeletePodRequest

func NewDeletePodRequest(server string, id string) (*http.Request, error)

NewDeletePodRequest constructs an http.Request for the DeletePod method

func NewDeleteQueuedPodRequest added in v2.2.0

func NewDeleteQueuedPodRequest(server string, id string) (*http.Request, error)

NewDeleteQueuedPodRequest constructs an http.Request for the DeleteQueuedPod method

func NewExecPodRequest added in v2.2.0

func NewExecPodRequest(server string, id string, body ExecPodJSONRequestBody) (*http.Request, error)

NewExecPodRequest calls the generic ExecPod builder with application/json body

func NewExecPodRequestWithBody added in v2.2.0

func NewExecPodRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewExecPodRequestWithBody constructs an http.Request for the ExecPod method, with any body, and a specified content type

func NewGetPodLogsRequest

func NewGetPodLogsRequest(server string, id string, params *GetPodLogsParams) (*http.Request, error)

NewGetPodLogsRequest constructs an http.Request for the GetPodLogs method

func NewGetPodRequest

func NewGetPodRequest(server string, id string) (*http.Request, error)

NewGetPodRequest constructs an http.Request for the GetPod method

func NewGetQueuedPodRequest added in v2.2.0

func NewGetQueuedPodRequest(server string, id string) (*http.Request, error)

NewGetQueuedPodRequest constructs an http.Request for the GetQueuedPod method

func NewListPodsRequest

func NewListPodsRequest(server string, params *ListPodsParams) (*http.Request, error)

NewListPodsRequest constructs an http.Request for the ListPods method

func NewListQueuedPodsRequest added in v2.2.0

func NewListQueuedPodsRequest(server string, params *ListQueuedPodsParams) (*http.Request, error)

NewListQueuedPodsRequest constructs an http.Request for the ListQueuedPods method

func NewPodActionRequest

func NewPodActionRequest(server string, id string, body PodActionJSONRequestBody) (*http.Request, error)

NewPodActionRequest calls the generic PodAction builder with application/json body

func NewPodActionRequestWithBody

func NewPodActionRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewPodActionRequestWithBody constructs an http.Request for the PodAction method, with any body, and a specified content type

func NewUpdatePodRequest

func NewUpdatePodRequest(server string, id string, body UpdatePodJSONRequestBody) (*http.Request, error)

NewUpdatePodRequest calls the generic UpdatePod builder with application/json body

func NewUpdatePodRequestWithBody

func NewUpdatePodRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewUpdatePodRequestWithBody constructs an http.Request for the UpdatePod method, with any body, and a specified content type

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

func (c *Client) CreatePod(ctx context.Context, body CreatePodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreatePod Create a pod

Creates a new pod. `name` is always required; supply exactly one of `gpu` or `cpu` to select compute (a GPU or a CPU pod). Container settings come from the body, from a template referenced by `templateId` (body fields override the template's), or both; `image` is required unless `templateId` is set. See `CreatePodRequest` for the full body.

Returns `201` with the created pod. Provisioning is asynchronous: the pod starts in `PROVISIONING`, transitions through `STARTING`, and reaches `RUNNING` once its container is healthy. Poll `getPod` (or watch the pod's `status`) to observe readiness rather than assuming the pod is running when this call returns.

## Checking what you can deploy

This endpoint places one specific GPU type. It does not search for capacity, and it does not fall back to a different GPU. To find out what is deployable before you call it, read the catalog:

Both accept filters that combine, so you can narrow by location and by compute in one request — for example `GET /v2/catalog/datacenters?regions=EUROPE&include=GPU_AVAILABILITY` returns only European data centers, each carrying the GPU types currently available there.

## Deploying under region and GPU constraints

If you need a particular GPU in a particular geography, the working pattern is read-then-create: narrow the catalog to an acceptable (data center, GPU) set, then call this endpoint once per candidate in your order of preference until one returns `201`. The runnable sample alongside this operation does exactly that.

Availability can change between the catalog read and the create call, so treat the catalog as a way to order your candidates, not as a reservation — a create can still fail for capacity on a GPU the catalog just reported as available.

Which failures are worth retrying:

| Status | Meaning | Do | | --- | --- | --- | | `422` | The body does not match the contract. `errors` lists each violation. | Fix the request. Never retry. | | `400` | The body matches the contract but was rejected — either it breaks a cross-field rule, or this GPU and data center combination could not be placed. | Try your next candidate. | | `402` | Insufficient balance. | Stop; no candidate will succeed. | | `403` | Your account cannot access the requested pool. | Skip this candidate, keep going. | | `429` | Rate limited. | Back off using `Retry-After`, then resume. | | `5xx` | Transient server failure. | Retry the same candidate with backoff. |

Requests larger than 102400 bytes receive `413` after authentication and rate limiting, before deployment processing. Reduce the serialized JSON request body and retry.

This limit also applies to the deployment request built from your input and any referenced template. A small request can therefore receive `413` if inherited template settings make the combined request too large. Reduce environment variables or command values in your request or template and retry.

`400` covers both "your request breaks a rule" and "no capacity", because capacity exhaustion currently carries no machine-readable code of its own — only a human-readable `detail`. A rule violation is deterministic, so it fails identically on every candidate: if *every* candidate returns `400`, read the last `detail` as a problem with the request rather than as absent capacity.

Takes a body of the `application/json` content type.

Corresponds with POST /v2/pods (the `CreatePod` operationId).

func (*Client) CreatePodWithBody

func (c *Client) CreatePodWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreatePodWithBody Create a pod

Creates a new pod. `name` is always required; supply exactly one of `gpu` or `cpu` to select compute (a GPU or a CPU pod). Container settings come from the body, from a template referenced by `templateId` (body fields override the template's), or both; `image` is required unless `templateId` is set. See `CreatePodRequest` for the full body.

Returns `201` with the created pod. Provisioning is asynchronous: the pod starts in `PROVISIONING`, transitions through `STARTING`, and reaches `RUNNING` once its container is healthy. Poll `getPod` (or watch the pod's `status`) to observe readiness rather than assuming the pod is running when this call returns.

## Checking what you can deploy

This endpoint places one specific GPU type. It does not search for capacity, and it does not fall back to a different GPU. To find out what is deployable before you call it, read the catalog:

Both accept filters that combine, so you can narrow by location and by compute in one request — for example `GET /v2/catalog/datacenters?regions=EUROPE&include=GPU_AVAILABILITY` returns only European data centers, each carrying the GPU types currently available there.

## Deploying under region and GPU constraints

If you need a particular GPU in a particular geography, the working pattern is read-then-create: narrow the catalog to an acceptable (data center, GPU) set, then call this endpoint once per candidate in your order of preference until one returns `201`. The runnable sample alongside this operation does exactly that.

Availability can change between the catalog read and the create call, so treat the catalog as a way to order your candidates, not as a reservation — a create can still fail for capacity on a GPU the catalog just reported as available.

Which failures are worth retrying:

| Status | Meaning | Do | | --- | --- | --- | | `422` | The body does not match the contract. `errors` lists each violation. | Fix the request. Never retry. | | `400` | The body matches the contract but was rejected — either it breaks a cross-field rule, or this GPU and data center combination could not be placed. | Try your next candidate. | | `402` | Insufficient balance. | Stop; no candidate will succeed. | | `403` | Your account cannot access the requested pool. | Skip this candidate, keep going. | | `429` | Rate limited. | Back off using `Retry-After`, then resume. | | `5xx` | Transient server failure. | Retry the same candidate with backoff. |

Requests larger than 102400 bytes receive `413` after authentication and rate limiting, before deployment processing. Reduce the serialized JSON request body and retry.

This limit also applies to the deployment request built from your input and any referenced template. A small request can therefore receive `413` if inherited template settings make the combined request too large. Reduce environment variables or command values in your request or template and retry.

`400` covers both "your request breaks a rule" and "no capacity", because capacity exhaustion currently carries no machine-readable code of its own — only a human-readable `detail`. A rule violation is deterministic, so it fails identically on every candidate: if *every* candidate returns `400`, read the last `detail` as a problem with the request rather than as absent capacity.

Takes any type of body and a specified content type.

Corresponds with POST /v2/pods (the `CreatePod` operationId).

func (*Client) DeletePod

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

DeletePod Terminate a pod

Permanently terminates and deletes a pod. This is irreversible: compute is released, any `mounts.persistent` host-local storage is destroyed with it (a `mounts.network` volume is only detached — the volume itself is not deleted), and the pod no longer appears in `listPods`.

Pods that belong to a Cluster cannot be terminated here — delete the cluster via `DELETE /v2/clusters/{id}`.

Corresponds with DELETE /v2/pods/{id} (the `DeletePod` operationId).

func (*Client) DeleteQueuedPod added in v2.2.0

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

DeleteQueuedPod Cancel a queued pod

Cancels a queued pod: it leaves the queue and is never deployed. A pod it already created is untouched; terminate that with `DELETE /v2/pods/{id}`. Cancelling a queued pod that already deployed, failed or expired changes nothing and still answers `204`.

Corresponds with DELETE /v2/queued-pods/{id} (the `DeleteQueuedPod` operationId).

func (*Client) ExecPod added in v2.2.0

func (c *Client) ExecPod(ctx context.Context, id string, body ExecPodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ExecPod Run a command in a pod

Runs one command inside the pod's container and returns its stdout, stderr and exit code once it finishes. No SSH key, public IP or exposed port is needed, and it works with any image.

`command` is an argv array, run directly and never through a shell. For pipes, redirects or globbing pass `["sh", "-c", "..."]`.

A command that exits non-zero is a result, not an error: the call answers `200` with `exitCode` set. A command still running after `timeoutSeconds` (1-25, default 20) answers `200` with `timedOut: true` and a null `exitCode`. `timedOut` means the call stopped waiting, not that the command was stopped: it may keep running in the container.

`stdout` and `stderr` are each capped at 1 MiB. Output past the cap is cut and `truncated` is `true`.

The pod must be running with its container up, otherwise this answers `409`; while the container is still starting, the `409` carries `Retry-After`. A pod whose machine has not been updated for exec yet answers `503` with `Retry-After`.

`X-Team-Id` is not applied on this route: it reaches only pods owned by the caller's own account.

Takes a body of the `application/json` content type.

Corresponds with POST /v2/pods/{id}/exec (the `ExecPod` operationId).

func (*Client) ExecPodWithBody added in v2.2.0

func (c *Client) ExecPodWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ExecPodWithBody Run a command in a pod

Runs one command inside the pod's container and returns its stdout, stderr and exit code once it finishes. No SSH key, public IP or exposed port is needed, and it works with any image.

`command` is an argv array, run directly and never through a shell. For pipes, redirects or globbing pass `["sh", "-c", "..."]`.

A command that exits non-zero is a result, not an error: the call answers `200` with `exitCode` set. A command still running after `timeoutSeconds` (1-25, default 20) answers `200` with `timedOut: true` and a null `exitCode`. `timedOut` means the call stopped waiting, not that the command was stopped: it may keep running in the container.

`stdout` and `stderr` are each capped at 1 MiB. Output past the cap is cut and `truncated` is `true`.

The pod must be running with its container up, otherwise this answers `409`; while the container is still starting, the `409` carries `Retry-After`. A pod whose machine has not been updated for exec yet answers `503` with `Retry-After`.

`X-Team-Id` is not applied on this route: it reaches only pods owned by the caller's own account.

Takes any type of body and a specified content type.

Corresponds with POST /v2/pods/{id}/exec (the `ExecPod` operationId).

func (*Client) GetPod

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

GetPod Get a pod

Returns a single pod by ID.

Corresponds with GET /v2/pods/{id} (the `GetPod` operationId).

func (*Client) GetPodLogs

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

GetPodLogs Stream pod logs

Streams pod logs as Server-Sent Events. The `source` query parameter selects which log source to include.

The SSE `data` payload shape is: `{ "source": "container", "line": "...", "ts": "..." }`. Log-event `id` values are the event `ts` timestamp so browser/EventSource reconnects can resume with `Last-Event-ID`.

Corresponds with GET /v2/pods/{id}/logs (the `GetPodLogs` operationId).

func (*Client) GetQueuedPod added in v2.2.0

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

GetQueuedPod Get a queued pod

Returns a single queued pod by ID. Poll it after a `202` from `createPod`: `status` moves from `QUEUED` to `DEPLOYED` (with `podId`), `FAILED` (with `failureReason`), `EXPIRED`, or `CANCELLED`.

Corresponds with GET /v2/queued-pods/{id} (the `GetQueuedPod` operationId).

func (*Client) ListPods

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

ListPods List pods

Returns pods owned by the authenticated user. Cluster member pods are excluded by default; set `includeClusterPods=true` to include them (each carries a non-null `cluster` membership block).

Results are cursor-paginated newest-first; an omitted `limit` defaults to 1000. The cluster-member exclusion is applied before the page is cut, so a page holds `limit` pods whenever that many remain. Follow `pagination.nextCursor` until `hasNextPage` is false.

Corresponds with GET /v2/pods (the `ListPods` operationId).

func (*Client) ListQueuedPods added in v2.2.0

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

ListQueuedPods List queued pods

Returns the caller's queued pods, cursor-paginated newest-first; an omitted `limit` defaults to 1000. Every queued pod is listed whatever its `status`, so the outcome of a queued create can be read after the fact. Follow `pagination.nextCursor` until `hasNextPage` is false.

Corresponds with GET /v2/queued-pods (the `ListQueuedPods` operationId).

func (*Client) PodAction

func (c *Client) PodAction(ctx context.Context, id string, body PodActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PodAction Trigger a pod state transition

Triggers a state transition on a pod. Send a JSON body with a single `action` field, e.g. `{ "action": "stop" }`.

Valid actions:

  • `start` — boot a stopped pod (`EXITED` or `ERROR`) back toward `RUNNING`.
  • `stop` — stop a running or provisioning pod, releasing GPU/CPU compute while keeping its disk. The pod moves to `EXITED`.
  • `restart` — restart a `RUNNING` pod's container in place.
  • `terminate` — permanently delete the pod and release its resources (equivalent to `deletePod`).

Which actions are valid depends on the pod's current status, and the currently permitted set is published in the pod's `actions` field: `RUNNING` allows `stop`/`restart`/`terminate`; `EXITED` and `ERROR` allow `start`/`terminate`; `PROVISIONING` and `STARTING` allow `stop`/`terminate`.

`start`, `stop`, and `restart` return `200` with the updated pod. `terminate` returns `204` with no body. Requesting an action that is not valid for the pod's current status returns `409`.

Takes a body of the `application/json` content type.

Corresponds with POST /v2/pods/{id}/action (the `PodAction` operationId).

func (*Client) PodActionWithBody

func (c *Client) PodActionWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PodActionWithBody Trigger a pod state transition

Triggers a state transition on a pod. Send a JSON body with a single `action` field, e.g. `{ "action": "stop" }`.

Valid actions:

  • `start` — boot a stopped pod (`EXITED` or `ERROR`) back toward `RUNNING`.
  • `stop` — stop a running or provisioning pod, releasing GPU/CPU compute while keeping its disk. The pod moves to `EXITED`.
  • `restart` — restart a `RUNNING` pod's container in place.
  • `terminate` — permanently delete the pod and release its resources (equivalent to `deletePod`).

Which actions are valid depends on the pod's current status, and the currently permitted set is published in the pod's `actions` field: `RUNNING` allows `stop`/`restart`/`terminate`; `EXITED` and `ERROR` allow `start`/`terminate`; `PROVISIONING` and `STARTING` allow `stop`/`terminate`.

`start`, `stop`, and `restart` return `200` with the updated pod. `terminate` returns `204` with no body. Requesting an action that is not valid for the pod's current status returns `409`.

Takes any type of body and a specified content type.

Corresponds with POST /v2/pods/{id}/action (the `PodAction` operationId).

func (*Client) UpdatePod

func (c *Client) UpdatePod(ctx context.Context, id string, body UpdatePodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdatePod Update a pod

Partially updates a pod's configuration. This is a PATCH: only the fields present in the body are changed, and omitted fields are left untouched. Use empty values only when you explicitly mean to clear a field (for example, set `registry` to `null` or set `ports` to `[]`). See `UpdatePodRequest` for the full body.

Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`, `registry`, `mounts`, `locked`, and `globalNetworking`. Some changes apply immediately while others (e.g. `globalNetworking`) take effect on the pod's next start/restart, as noted on the individual fields.

Volumes can be mounted, moved, or unmounted after creation through `mounts`, one entry per volume; see `UpdatePodMounts` for the rules.

Pods that belong to a Cluster cannot be updated here — manage them through `/v2/clusters/{id}`.

Returns `200` with the full updated pod.

Takes a body of the `application/json` content type.

Corresponds with PATCH /v2/pods/{id} (the `UpdatePod` operationId).

func (*Client) UpdatePodWithBody

func (c *Client) UpdatePodWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdatePodWithBody Update a pod

Partially updates a pod's configuration. This is a PATCH: only the fields present in the body are changed, and omitted fields are left untouched. Use empty values only when you explicitly mean to clear a field (for example, set `registry` to `null` or set `ports` to `[]`). See `UpdatePodRequest` for the full body.

Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`, `registry`, `mounts`, `locked`, and `globalNetworking`. Some changes apply immediately while others (e.g. `globalNetworking`) take effect on the pod's next start/restart, as noted on the individual fields.

Volumes can be mounted, moved, or unmounted after creation through `mounts`, one entry per volume; see `UpdatePodMounts` for the rules.

Pods that belong to a Cluster cannot be updated here — manage them through `/v2/clusters/{id}`.

Returns `200` with the full updated pod.

Takes any type of body and a specified content type.

Corresponds with PATCH /v2/pods/{id} (the `UpdatePod` operationId).

type ClientInterface

type ClientInterface interface {

	// ListPods List pods
	//
	// Returns pods owned by the authenticated user. Cluster member
	// pods are excluded by default; set `includeClusterPods=true` to include
	// them (each carries a non-null `cluster` membership block).
	//
	// Results are cursor-paginated newest-first; an omitted `limit`
	// defaults to 1000. The cluster-member exclusion is applied before the
	// page is cut, so a page holds `limit` pods whenever that many remain.
	// Follow `pagination.nextCursor` until `hasNextPage` is false.
	//
	// Corresponds with GET /v2/pods (the `ListPods` operationId).
	ListPods(ctx context.Context, params *ListPodsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePodWithBody Create a pod
	//
	// Creates a new pod. `name` is always required; supply exactly one of
	// `gpu` or `cpu` to select compute (a GPU or a CPU pod). Container
	// settings come from the body, from a template referenced by
	// `templateId` (body fields override the template's), or both; `image`
	// is required unless `templateId` is set. See `CreatePodRequest` for
	// the full body.
	//
	// Returns `201` with the created pod. Provisioning is asynchronous: the
	// pod starts in `PROVISIONING`, transitions through `STARTING`, and
	// reaches `RUNNING` once its container is healthy. Poll `getPod` (or
	// watch the pod's `status`) to observe readiness rather than assuming
	// the pod is running when this call returns.
	//
	// ## Checking what you can deploy
	//
	// This endpoint places one specific GPU type. It does not search for
	// capacity, and it does not fall back to a different GPU. To find out
	// what is deployable before you call it, read the catalog:
	//
	// - [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types)
	//   — GPU types with pricing, per-cloud ceilings, and, with
	//   `include=AVAILABILITY&product=POD`, current pod stock.
	// - [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers)
	//   — locations, with `include=GPU_AVAILABILITY` for stock per data
	//   center.
	//
	// Both accept filters that combine, so you can narrow by location and by
	// compute in one request — for example
	// `GET /v2/catalog/datacenters?regions=EUROPE&include=GPU_AVAILABILITY`
	// returns only European data centers, each carrying the GPU types
	// currently available there.
	//
	// ## Deploying under region and GPU constraints
	//
	// If you need a particular GPU in a particular geography, the working
	// pattern is read-then-create: narrow the catalog to an acceptable
	// (data center, GPU) set, then call this endpoint once per candidate in
	// your order of preference until one returns `201`. The runnable sample
	// alongside this operation does exactly that.
	//
	// Availability can change between the catalog read and the create call,
	// so treat the catalog as a way to order your candidates, not as a
	// reservation — a create can still fail for capacity on a GPU the
	// catalog just reported as available.
	//
	// Which failures are worth retrying:
	//
	// | Status | Meaning | Do |
	// | --- | --- | --- |
	// | `422` | The body does not match the contract. `errors` lists each violation. | Fix the request. Never retry. |
	// | `400` | The body matches the contract but was rejected — either it breaks a cross-field rule, or this GPU and data center combination could not be placed. | Try your next candidate. |
	// | `402` | Insufficient balance. | Stop; no candidate will succeed. |
	// | `403` | Your account cannot access the requested pool. | Skip this candidate, keep going. |
	// | `429` | Rate limited. | Back off using `Retry-After`, then resume. |
	// | `5xx` | Transient server failure. | Retry the same candidate with backoff. |
	//
	// Requests larger than 102400 bytes receive `413` after authentication
	// and rate limiting, before deployment processing. Reduce the serialized
	// JSON request body and retry.
	//
	// This limit also applies to the deployment request built from your input
	// and any referenced template. A small request can therefore receive `413`
	// if inherited template settings make the combined request too large.
	// Reduce environment variables or command values in your request or template
	// and retry.
	//
	// `400` covers both "your request breaks a rule" and "no capacity",
	// because capacity exhaustion currently carries no machine-readable code
	// of its own — only a human-readable `detail`. A rule violation is
	// deterministic, so it fails identically on every candidate: if *every*
	// candidate returns `400`, read the last `detail` as a problem with the
	// request rather than as absent capacity.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v2/pods (the `CreatePod` operationId).
	CreatePodWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePod Create a pod
	//
	// Creates a new pod. `name` is always required; supply exactly one of
	// `gpu` or `cpu` to select compute (a GPU or a CPU pod). Container
	// settings come from the body, from a template referenced by
	// `templateId` (body fields override the template's), or both; `image`
	// is required unless `templateId` is set. See `CreatePodRequest` for
	// the full body.
	//
	// Returns `201` with the created pod. Provisioning is asynchronous: the
	// pod starts in `PROVISIONING`, transitions through `STARTING`, and
	// reaches `RUNNING` once its container is healthy. Poll `getPod` (or
	// watch the pod's `status`) to observe readiness rather than assuming
	// the pod is running when this call returns.
	//
	// ## Checking what you can deploy
	//
	// This endpoint places one specific GPU type. It does not search for
	// capacity, and it does not fall back to a different GPU. To find out
	// what is deployable before you call it, read the catalog:
	//
	// - [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types)
	//   — GPU types with pricing, per-cloud ceilings, and, with
	//   `include=AVAILABILITY&product=POD`, current pod stock.
	// - [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers)
	//   — locations, with `include=GPU_AVAILABILITY` for stock per data
	//   center.
	//
	// Both accept filters that combine, so you can narrow by location and by
	// compute in one request — for example
	// `GET /v2/catalog/datacenters?regions=EUROPE&include=GPU_AVAILABILITY`
	// returns only European data centers, each carrying the GPU types
	// currently available there.
	//
	// ## Deploying under region and GPU constraints
	//
	// If you need a particular GPU in a particular geography, the working
	// pattern is read-then-create: narrow the catalog to an acceptable
	// (data center, GPU) set, then call this endpoint once per candidate in
	// your order of preference until one returns `201`. The runnable sample
	// alongside this operation does exactly that.
	//
	// Availability can change between the catalog read and the create call,
	// so treat the catalog as a way to order your candidates, not as a
	// reservation — a create can still fail for capacity on a GPU the
	// catalog just reported as available.
	//
	// Which failures are worth retrying:
	//
	// | Status | Meaning | Do |
	// | --- | --- | --- |
	// | `422` | The body does not match the contract. `errors` lists each violation. | Fix the request. Never retry. |
	// | `400` | The body matches the contract but was rejected — either it breaks a cross-field rule, or this GPU and data center combination could not be placed. | Try your next candidate. |
	// | `402` | Insufficient balance. | Stop; no candidate will succeed. |
	// | `403` | Your account cannot access the requested pool. | Skip this candidate, keep going. |
	// | `429` | Rate limited. | Back off using `Retry-After`, then resume. |
	// | `5xx` | Transient server failure. | Retry the same candidate with backoff. |
	//
	// Requests larger than 102400 bytes receive `413` after authentication
	// and rate limiting, before deployment processing. Reduce the serialized
	// JSON request body and retry.
	//
	// This limit also applies to the deployment request built from your input
	// and any referenced template. A small request can therefore receive `413`
	// if inherited template settings make the combined request too large.
	// Reduce environment variables or command values in your request or template
	// and retry.
	//
	// `400` covers both "your request breaks a rule" and "no capacity",
	// because capacity exhaustion currently carries no machine-readable code
	// of its own — only a human-readable `detail`. A rule violation is
	// deterministic, so it fails identically on every candidate: if *every*
	// candidate returns `400`, read the last `detail` as a problem with the
	// request rather than as absent capacity.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v2/pods (the `CreatePod` operationId).
	CreatePod(ctx context.Context, body CreatePodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeletePod Terminate a pod
	//
	// Permanently terminates and deletes a pod. This is irreversible:
	// compute is released, any `mounts.persistent` host-local storage is
	// destroyed with it (a `mounts.network` volume is only detached — the
	// volume itself is not deleted), and the pod no longer appears in
	// `listPods`.
	//
	// Pods that belong to a Cluster cannot be terminated here — delete the
	// cluster via `DELETE /v2/clusters/{id}`.
	//
	// Corresponds with DELETE /v2/pods/{id} (the `DeletePod` operationId).
	DeletePod(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPod Get a pod
	//
	// Returns a single pod by ID.
	//
	// Corresponds with GET /v2/pods/{id} (the `GetPod` operationId).
	GetPod(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePodWithBody Update a pod
	//
	// Partially updates a pod's configuration. This is a PATCH: only the
	// fields present in the body are changed, and omitted fields are left
	// untouched. Use empty values only when you explicitly mean to clear a
	// field (for example, set `registry` to `null` or set `ports` to `[]`).
	// See `UpdatePodRequest` for the full body.
	//
	// Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`,
	// `registry`, `mounts`, `locked`, and `globalNetworking`. Some changes
	// apply immediately while others (e.g. `globalNetworking`) take effect
	// on the pod's next start/restart, as noted on the individual fields.
	//
	// Volumes can be mounted, moved, or unmounted after creation through
	// `mounts`, one entry per volume; see `UpdatePodMounts` for the rules.
	//
	// Pods that belong to a Cluster cannot be updated here — manage them
	// through `/v2/clusters/{id}`.
	//
	// Returns `200` with the full updated pod.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v2/pods/{id} (the `UpdatePod` operationId).
	UpdatePodWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePod Update a pod
	//
	// Partially updates a pod's configuration. This is a PATCH: only the
	// fields present in the body are changed, and omitted fields are left
	// untouched. Use empty values only when you explicitly mean to clear a
	// field (for example, set `registry` to `null` or set `ports` to `[]`).
	// See `UpdatePodRequest` for the full body.
	//
	// Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`,
	// `registry`, `mounts`, `locked`, and `globalNetworking`. Some changes
	// apply immediately while others (e.g. `globalNetworking`) take effect
	// on the pod's next start/restart, as noted on the individual fields.
	//
	// Volumes can be mounted, moved, or unmounted after creation through
	// `mounts`, one entry per volume; see `UpdatePodMounts` for the rules.
	//
	// Pods that belong to a Cluster cannot be updated here — manage them
	// through `/v2/clusters/{id}`.
	//
	// Returns `200` with the full updated pod.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v2/pods/{id} (the `UpdatePod` operationId).
	UpdatePod(ctx context.Context, id string, body UpdatePodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PodActionWithBody Trigger a pod state transition
	//
	// Triggers a state transition on a pod. Send a JSON body with a single
	// `action` field, e.g. `{ "action": "stop" }`.
	//
	// Valid actions:
	// - `start`     — boot a stopped pod (`EXITED` or `ERROR`) back toward
	//   `RUNNING`.
	// - `stop`      — stop a running or provisioning pod, releasing GPU/CPU
	//   compute while keeping its disk. The pod moves to `EXITED`.
	// - `restart`   — restart a `RUNNING` pod's container in place.
	// - `terminate` — permanently delete the pod and release its resources
	//   (equivalent to `deletePod`).
	//
	// Which actions are valid depends on the pod's current status, and the
	// currently permitted set is published in the pod's `actions` field:
	// `RUNNING` allows `stop`/`restart`/`terminate`; `EXITED` and `ERROR`
	// allow `start`/`terminate`; `PROVISIONING` and `STARTING` allow
	// `stop`/`terminate`.
	//
	// `start`, `stop`, and `restart` return `200` with the updated pod.
	// `terminate` returns `204` with no body. Requesting an action that is
	// not valid for the pod's current status returns `409`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v2/pods/{id}/action (the `PodAction` operationId).
	PodActionWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PodAction Trigger a pod state transition
	//
	// Triggers a state transition on a pod. Send a JSON body with a single
	// `action` field, e.g. `{ "action": "stop" }`.
	//
	// Valid actions:
	// - `start`     — boot a stopped pod (`EXITED` or `ERROR`) back toward
	//   `RUNNING`.
	// - `stop`      — stop a running or provisioning pod, releasing GPU/CPU
	//   compute while keeping its disk. The pod moves to `EXITED`.
	// - `restart`   — restart a `RUNNING` pod's container in place.
	// - `terminate` — permanently delete the pod and release its resources
	//   (equivalent to `deletePod`).
	//
	// Which actions are valid depends on the pod's current status, and the
	// currently permitted set is published in the pod's `actions` field:
	// `RUNNING` allows `stop`/`restart`/`terminate`; `EXITED` and `ERROR`
	// allow `start`/`terminate`; `PROVISIONING` and `STARTING` allow
	// `stop`/`terminate`.
	//
	// `start`, `stop`, and `restart` return `200` with the updated pod.
	// `terminate` returns `204` with no body. Requesting an action that is
	// not valid for the pod's current status returns `409`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v2/pods/{id}/action (the `PodAction` operationId).
	PodAction(ctx context.Context, id string, body PodActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExecPodWithBody Run a command in a pod
	//
	// Runs one command inside the pod's container and returns its stdout,
	// stderr and exit code once it finishes. No SSH key, public IP or exposed
	// port is needed, and it works with any image.
	//
	// `command` is an argv array, run directly and never through a shell. For
	// pipes, redirects or globbing pass `["sh", "-c", "..."]`.
	//
	// A command that exits non-zero is a result, not an error: the call
	// answers `200` with `exitCode` set. A command still running after
	// `timeoutSeconds` (1-25, default 20) answers `200` with
	// `timedOut: true` and a null `exitCode`. `timedOut` means the call
	// stopped waiting, not that the command was stopped: it may keep
	// running in the container.
	//
	// `stdout` and `stderr` are each capped at 1 MiB. Output past the cap is
	// cut and `truncated` is `true`.
	//
	// The pod must be running with its container up, otherwise this answers
	// `409`; while the container is still starting, the `409` carries
	// `Retry-After`. A pod whose machine has not been updated for exec yet
	// answers `503` with `Retry-After`.
	//
	// `X-Team-Id` is not applied on this route: it reaches only pods owned by
	// the caller's own account.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v2/pods/{id}/exec (the `ExecPod` operationId).
	ExecPodWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExecPod Run a command in a pod
	//
	// Runs one command inside the pod's container and returns its stdout,
	// stderr and exit code once it finishes. No SSH key, public IP or exposed
	// port is needed, and it works with any image.
	//
	// `command` is an argv array, run directly and never through a shell. For
	// pipes, redirects or globbing pass `["sh", "-c", "..."]`.
	//
	// A command that exits non-zero is a result, not an error: the call
	// answers `200` with `exitCode` set. A command still running after
	// `timeoutSeconds` (1-25, default 20) answers `200` with
	// `timedOut: true` and a null `exitCode`. `timedOut` means the call
	// stopped waiting, not that the command was stopped: it may keep
	// running in the container.
	//
	// `stdout` and `stderr` are each capped at 1 MiB. Output past the cap is
	// cut and `truncated` is `true`.
	//
	// The pod must be running with its container up, otherwise this answers
	// `409`; while the container is still starting, the `409` carries
	// `Retry-After`. A pod whose machine has not been updated for exec yet
	// answers `503` with `Retry-After`.
	//
	// `X-Team-Id` is not applied on this route: it reaches only pods owned by
	// the caller's own account.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v2/pods/{id}/exec (the `ExecPod` operationId).
	ExecPod(ctx context.Context, id string, body ExecPodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPodLogs Stream pod logs
	//
	// Streams pod logs as Server-Sent Events. The `source` query parameter
	// selects which log source to include.
	//
	// The SSE `data` payload shape is:
	// `{ "source": "container", "line": "...", "ts": "..." }`.
	// Log-event `id` values are the event `ts` timestamp so
	// browser/EventSource reconnects can resume with `Last-Event-ID`.
	//
	// Corresponds with GET /v2/pods/{id}/logs (the `GetPodLogs` operationId).
	GetPodLogs(ctx context.Context, id string, params *GetPodLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListQueuedPods List queued pods
	//
	// Returns the caller's queued pods, cursor-paginated newest-first; an
	// omitted `limit` defaults to 1000. Every queued pod is listed whatever
	// its `status`, so the outcome of a queued create can be read after the
	// fact. Follow `pagination.nextCursor` until `hasNextPage` is false.
	//
	// Corresponds with GET /v2/queued-pods (the `ListQueuedPods` operationId).
	ListQueuedPods(ctx context.Context, params *ListQueuedPodsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteQueuedPod Cancel a queued pod
	//
	// Cancels a queued pod: it leaves the queue and is never deployed. A
	// pod it already created is untouched; terminate that with
	// `DELETE /v2/pods/{id}`. Cancelling a queued pod that already
	// deployed, failed or expired changes nothing and still answers `204`.
	//
	// Corresponds with DELETE /v2/queued-pods/{id} (the `DeleteQueuedPod` operationId).
	DeleteQueuedPod(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetQueuedPod Get a queued pod
	//
	// Returns a single queued pod by ID. Poll it after a `202` from
	// `createPod`: `status` moves from `QUEUED` to `DEPLOYED` (with
	// `podId`), `FAILED` (with `failureReason`), `EXPIRED`, or `CANCELLED`.
	//
	// Corresponds with GET /v2/queued-pods/{id} (the `GetQueuedPod` operationId).
	GetQueuedPod(ctx context.Context, id string, 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) CreatePodWithBodyWithResponse

func (c *ClientWithResponses) CreatePodWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePodResult, error)

CreatePodWithBodyWithResponse Create a pod

Creates a new pod. `name` is always required; supply exactly one of `gpu` or `cpu` to select compute (a GPU or a CPU pod). Container settings come from the body, from a template referenced by `templateId` (body fields override the template's), or both; `image` is required unless `templateId` is set. See `CreatePodRequest` for the full body.

Returns `201` with the created pod. Provisioning is asynchronous: the pod starts in `PROVISIONING`, transitions through `STARTING`, and reaches `RUNNING` once its container is healthy. Poll `getPod` (or watch the pod's `status`) to observe readiness rather than assuming the pod is running when this call returns.

## Checking what you can deploy

This endpoint places one specific GPU type. It does not search for capacity, and it does not fall back to a different GPU. To find out what is deployable before you call it, read the catalog:

Both accept filters that combine, so you can narrow by location and by compute in one request — for example `GET /v2/catalog/datacenters?regions=EUROPE&include=GPU_AVAILABILITY` returns only European data centers, each carrying the GPU types currently available there.

## Deploying under region and GPU constraints

If you need a particular GPU in a particular geography, the working pattern is read-then-create: narrow the catalog to an acceptable (data center, GPU) set, then call this endpoint once per candidate in your order of preference until one returns `201`. The runnable sample alongside this operation does exactly that.

Availability can change between the catalog read and the create call, so treat the catalog as a way to order your candidates, not as a reservation — a create can still fail for capacity on a GPU the catalog just reported as available.

Which failures are worth retrying:

| Status | Meaning | Do | | --- | --- | --- | | `422` | The body does not match the contract. `errors` lists each violation. | Fix the request. Never retry. | | `400` | The body matches the contract but was rejected — either it breaks a cross-field rule, or this GPU and data center combination could not be placed. | Try your next candidate. | | `402` | Insufficient balance. | Stop; no candidate will succeed. | | `403` | Your account cannot access the requested pool. | Skip this candidate, keep going. | | `429` | Rate limited. | Back off using `Retry-After`, then resume. | | `5xx` | Transient server failure. | Retry the same candidate with backoff. |

Requests larger than 102400 bytes receive `413` after authentication and rate limiting, before deployment processing. Reduce the serialized JSON request body and retry.

This limit also applies to the deployment request built from your input and any referenced template. A small request can therefore receive `413` if inherited template settings make the combined request too large. Reduce environment variables or command values in your request or template and retry.

`400` covers both "your request breaks a rule" and "no capacity", because capacity exhaustion currently carries no machine-readable code of its own — only a human-readable `detail`. A rule violation is deterministic, so it fails identically on every candidate: if *every* candidate returns `400`, read the last `detail` as a problem with the request rather than as absent capacity.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v2/pods (the `CreatePod` operationId).

func (*ClientWithResponses) CreatePodWithResponse

func (c *ClientWithResponses) CreatePodWithResponse(ctx context.Context, body CreatePodJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePodResult, error)

CreatePodWithResponse Create a pod

Creates a new pod. `name` is always required; supply exactly one of `gpu` or `cpu` to select compute (a GPU or a CPU pod). Container settings come from the body, from a template referenced by `templateId` (body fields override the template's), or both; `image` is required unless `templateId` is set. See `CreatePodRequest` for the full body.

Returns `201` with the created pod. Provisioning is asynchronous: the pod starts in `PROVISIONING`, transitions through `STARTING`, and reaches `RUNNING` once its container is healthy. Poll `getPod` (or watch the pod's `status`) to observe readiness rather than assuming the pod is running when this call returns.

## Checking what you can deploy

This endpoint places one specific GPU type. It does not search for capacity, and it does not fall back to a different GPU. To find out what is deployable before you call it, read the catalog:

Both accept filters that combine, so you can narrow by location and by compute in one request — for example `GET /v2/catalog/datacenters?regions=EUROPE&include=GPU_AVAILABILITY` returns only European data centers, each carrying the GPU types currently available there.

## Deploying under region and GPU constraints

If you need a particular GPU in a particular geography, the working pattern is read-then-create: narrow the catalog to an acceptable (data center, GPU) set, then call this endpoint once per candidate in your order of preference until one returns `201`. The runnable sample alongside this operation does exactly that.

Availability can change between the catalog read and the create call, so treat the catalog as a way to order your candidates, not as a reservation — a create can still fail for capacity on a GPU the catalog just reported as available.

Which failures are worth retrying:

| Status | Meaning | Do | | --- | --- | --- | | `422` | The body does not match the contract. `errors` lists each violation. | Fix the request. Never retry. | | `400` | The body matches the contract but was rejected — either it breaks a cross-field rule, or this GPU and data center combination could not be placed. | Try your next candidate. | | `402` | Insufficient balance. | Stop; no candidate will succeed. | | `403` | Your account cannot access the requested pool. | Skip this candidate, keep going. | | `429` | Rate limited. | Back off using `Retry-After`, then resume. | | `5xx` | Transient server failure. | Retry the same candidate with backoff. |

Requests larger than 102400 bytes receive `413` after authentication and rate limiting, before deployment processing. Reduce the serialized JSON request body and retry.

This limit also applies to the deployment request built from your input and any referenced template. A small request can therefore receive `413` if inherited template settings make the combined request too large. Reduce environment variables or command values in your request or template and retry.

`400` covers both "your request breaks a rule" and "no capacity", because capacity exhaustion currently carries no machine-readable code of its own — only a human-readable `detail`. A rule violation is deterministic, so it fails identically on every candidate: if *every* candidate returns `400`, read the last `detail` as a problem with the request rather than as absent capacity.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v2/pods (the `CreatePod` operationId).

func (*ClientWithResponses) DeletePodWithResponse

func (c *ClientWithResponses) DeletePodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeletePodResult, error)

DeletePodWithResponse Terminate a pod

Permanently terminates and deletes a pod. This is irreversible: compute is released, any `mounts.persistent` host-local storage is destroyed with it (a `mounts.network` volume is only detached — the volume itself is not deleted), and the pod no longer appears in `listPods`.

Pods that belong to a Cluster cannot be terminated here — delete the cluster via `DELETE /v2/clusters/{id}`.

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

Corresponds with DELETE /v2/pods/{id} (the `DeletePod` operationId).

func (*ClientWithResponses) DeleteQueuedPodWithResponse added in v2.2.0

func (c *ClientWithResponses) DeleteQueuedPodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteQueuedPodResult, error)

DeleteQueuedPodWithResponse Cancel a queued pod

Cancels a queued pod: it leaves the queue and is never deployed. A pod it already created is untouched; terminate that with `DELETE /v2/pods/{id}`. Cancelling a queued pod that already deployed, failed or expired changes nothing and still answers `204`.

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

Corresponds with DELETE /v2/queued-pods/{id} (the `DeleteQueuedPod` operationId).

func (*ClientWithResponses) ExecPodWithBodyWithResponse added in v2.2.0

func (c *ClientWithResponses) ExecPodWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecPodResult, error)

ExecPodWithBodyWithResponse Run a command in a pod

Runs one command inside the pod's container and returns its stdout, stderr and exit code once it finishes. No SSH key, public IP or exposed port is needed, and it works with any image.

`command` is an argv array, run directly and never through a shell. For pipes, redirects or globbing pass `["sh", "-c", "..."]`.

A command that exits non-zero is a result, not an error: the call answers `200` with `exitCode` set. A command still running after `timeoutSeconds` (1-25, default 20) answers `200` with `timedOut: true` and a null `exitCode`. `timedOut` means the call stopped waiting, not that the command was stopped: it may keep running in the container.

`stdout` and `stderr` are each capped at 1 MiB. Output past the cap is cut and `truncated` is `true`.

The pod must be running with its container up, otherwise this answers `409`; while the container is still starting, the `409` carries `Retry-After`. A pod whose machine has not been updated for exec yet answers `503` with `Retry-After`.

`X-Team-Id` is not applied on this route: it reaches only pods owned by the caller's own account.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v2/pods/{id}/exec (the `ExecPod` operationId).

func (*ClientWithResponses) ExecPodWithResponse added in v2.2.0

func (c *ClientWithResponses) ExecPodWithResponse(ctx context.Context, id string, body ExecPodJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecPodResult, error)

ExecPodWithResponse Run a command in a pod

Runs one command inside the pod's container and returns its stdout, stderr and exit code once it finishes. No SSH key, public IP or exposed port is needed, and it works with any image.

`command` is an argv array, run directly and never through a shell. For pipes, redirects or globbing pass `["sh", "-c", "..."]`.

A command that exits non-zero is a result, not an error: the call answers `200` with `exitCode` set. A command still running after `timeoutSeconds` (1-25, default 20) answers `200` with `timedOut: true` and a null `exitCode`. `timedOut` means the call stopped waiting, not that the command was stopped: it may keep running in the container.

`stdout` and `stderr` are each capped at 1 MiB. Output past the cap is cut and `truncated` is `true`.

The pod must be running with its container up, otherwise this answers `409`; while the container is still starting, the `409` carries `Retry-After`. A pod whose machine has not been updated for exec yet answers `503` with `Retry-After`.

`X-Team-Id` is not applied on this route: it reaches only pods owned by the caller's own account.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v2/pods/{id}/exec (the `ExecPod` operationId).

func (*ClientWithResponses) GetPodLogsWithResponse

func (c *ClientWithResponses) GetPodLogsWithResponse(ctx context.Context, id string, params *GetPodLogsParams, reqEditors ...RequestEditorFn) (*GetPodLogsResult, error)

GetPodLogsWithResponse Stream pod logs

Streams pod logs as Server-Sent Events. The `source` query parameter selects which log source to include.

The SSE `data` payload shape is: `{ "source": "container", "line": "...", "ts": "..." }`. Log-event `id` values are the event `ts` timestamp so browser/EventSource reconnects can resume with `Last-Event-ID`.

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

Corresponds with GET /v2/pods/{id}/logs (the `GetPodLogs` operationId).

func (*ClientWithResponses) GetPodWithResponse

func (c *ClientWithResponses) GetPodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetPodResult, error)

GetPodWithResponse Get a pod

Returns a single pod by ID.

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

Corresponds with GET /v2/pods/{id} (the `GetPod` operationId).

func (*ClientWithResponses) GetQueuedPodWithResponse added in v2.2.0

func (c *ClientWithResponses) GetQueuedPodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetQueuedPodResult, error)

GetQueuedPodWithResponse Get a queued pod

Returns a single queued pod by ID. Poll it after a `202` from `createPod`: `status` moves from `QUEUED` to `DEPLOYED` (with `podId`), `FAILED` (with `failureReason`), `EXPIRED`, or `CANCELLED`.

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

Corresponds with GET /v2/queued-pods/{id} (the `GetQueuedPod` operationId).

func (*ClientWithResponses) ListPodsWithResponse

func (c *ClientWithResponses) ListPodsWithResponse(ctx context.Context, params *ListPodsParams, reqEditors ...RequestEditorFn) (*ListPodsResult, error)

ListPodsWithResponse List pods

Returns pods owned by the authenticated user. Cluster member pods are excluded by default; set `includeClusterPods=true` to include them (each carries a non-null `cluster` membership block).

Results are cursor-paginated newest-first; an omitted `limit` defaults to 1000. The cluster-member exclusion is applied before the page is cut, so a page holds `limit` pods whenever that many remain. Follow `pagination.nextCursor` until `hasNextPage` is false.

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

Corresponds with GET /v2/pods (the `ListPods` operationId).

func (*ClientWithResponses) ListQueuedPodsWithResponse added in v2.2.0

func (c *ClientWithResponses) ListQueuedPodsWithResponse(ctx context.Context, params *ListQueuedPodsParams, reqEditors ...RequestEditorFn) (*ListQueuedPodsResult, error)

ListQueuedPodsWithResponse List queued pods

Returns the caller's queued pods, cursor-paginated newest-first; an omitted `limit` defaults to 1000. Every queued pod is listed whatever its `status`, so the outcome of a queued create can be read after the fact. Follow `pagination.nextCursor` until `hasNextPage` is false.

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

Corresponds with GET /v2/queued-pods (the `ListQueuedPods` operationId).

func (*ClientWithResponses) PodActionWithBodyWithResponse

func (c *ClientWithResponses) PodActionWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PodActionResult, error)

PodActionWithBodyWithResponse Trigger a pod state transition

Triggers a state transition on a pod. Send a JSON body with a single `action` field, e.g. `{ "action": "stop" }`.

Valid actions:

  • `start` — boot a stopped pod (`EXITED` or `ERROR`) back toward `RUNNING`.
  • `stop` — stop a running or provisioning pod, releasing GPU/CPU compute while keeping its disk. The pod moves to `EXITED`.
  • `restart` — restart a `RUNNING` pod's container in place.
  • `terminate` — permanently delete the pod and release its resources (equivalent to `deletePod`).

Which actions are valid depends on the pod's current status, and the currently permitted set is published in the pod's `actions` field: `RUNNING` allows `stop`/`restart`/`terminate`; `EXITED` and `ERROR` allow `start`/`terminate`; `PROVISIONING` and `STARTING` allow `stop`/`terminate`.

`start`, `stop`, and `restart` return `200` with the updated pod. `terminate` returns `204` with no body. Requesting an action that is not valid for the pod's current status returns `409`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v2/pods/{id}/action (the `PodAction` operationId).

func (*ClientWithResponses) PodActionWithResponse

func (c *ClientWithResponses) PodActionWithResponse(ctx context.Context, id string, body PodActionJSONRequestBody, reqEditors ...RequestEditorFn) (*PodActionResult, error)

PodActionWithResponse Trigger a pod state transition

Triggers a state transition on a pod. Send a JSON body with a single `action` field, e.g. `{ "action": "stop" }`.

Valid actions:

  • `start` — boot a stopped pod (`EXITED` or `ERROR`) back toward `RUNNING`.
  • `stop` — stop a running or provisioning pod, releasing GPU/CPU compute while keeping its disk. The pod moves to `EXITED`.
  • `restart` — restart a `RUNNING` pod's container in place.
  • `terminate` — permanently delete the pod and release its resources (equivalent to `deletePod`).

Which actions are valid depends on the pod's current status, and the currently permitted set is published in the pod's `actions` field: `RUNNING` allows `stop`/`restart`/`terminate`; `EXITED` and `ERROR` allow `start`/`terminate`; `PROVISIONING` and `STARTING` allow `stop`/`terminate`.

`start`, `stop`, and `restart` return `200` with the updated pod. `terminate` returns `204` with no body. Requesting an action that is not valid for the pod's current status returns `409`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v2/pods/{id}/action (the `PodAction` operationId).

func (*ClientWithResponses) UpdatePodWithBodyWithResponse

func (c *ClientWithResponses) UpdatePodWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePodResult, error)

UpdatePodWithBodyWithResponse Update a pod

Partially updates a pod's configuration. This is a PATCH: only the fields present in the body are changed, and omitted fields are left untouched. Use empty values only when you explicitly mean to clear a field (for example, set `registry` to `null` or set `ports` to `[]`). See `UpdatePodRequest` for the full body.

Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`, `registry`, `mounts`, `locked`, and `globalNetworking`. Some changes apply immediately while others (e.g. `globalNetworking`) take effect on the pod's next start/restart, as noted on the individual fields.

Volumes can be mounted, moved, or unmounted after creation through `mounts`, one entry per volume; see `UpdatePodMounts` for the rules.

Pods that belong to a Cluster cannot be updated here — manage them through `/v2/clusters/{id}`.

Returns `200` with the full updated pod.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v2/pods/{id} (the `UpdatePod` operationId).

func (*ClientWithResponses) UpdatePodWithResponse

func (c *ClientWithResponses) UpdatePodWithResponse(ctx context.Context, id string, body UpdatePodJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePodResult, error)

UpdatePodWithResponse Update a pod

Partially updates a pod's configuration. This is a PATCH: only the fields present in the body are changed, and omitted fields are left untouched. Use empty values only when you explicitly mean to clear a field (for example, set `registry` to `null` or set `ports` to `[]`). See `UpdatePodRequest` for the full body.

Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`, `registry`, `mounts`, `locked`, and `globalNetworking`. Some changes apply immediately while others (e.g. `globalNetworking`) take effect on the pod's next start/restart, as noted on the individual fields.

Volumes can be mounted, moved, or unmounted after creation through `mounts`, one entry per volume; see `UpdatePodMounts` for the rules.

Pods that belong to a Cluster cannot be updated here — manage them through `/v2/clusters/{id}`.

Returns `200` with the full updated pod.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v2/pods/{id} (the `UpdatePod` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ListPodsWithResponse List pods
	//
	// Returns pods owned by the authenticated user. Cluster member
	// pods are excluded by default; set `includeClusterPods=true` to include
	// them (each carries a non-null `cluster` membership block).
	//
	// Results are cursor-paginated newest-first; an omitted `limit`
	// defaults to 1000. The cluster-member exclusion is applied before the
	// page is cut, so a page holds `limit` pods whenever that many remain.
	// Follow `pagination.nextCursor` until `hasNextPage` is false.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/pods (the `ListPods` operationId).
	ListPodsWithResponse(ctx context.Context, params *ListPodsParams, reqEditors ...RequestEditorFn) (*ListPodsResult, error)

	// CreatePodWithBodyWithResponse Create a pod
	//
	// Creates a new pod. `name` is always required; supply exactly one of
	// `gpu` or `cpu` to select compute (a GPU or a CPU pod). Container
	// settings come from the body, from a template referenced by
	// `templateId` (body fields override the template's), or both; `image`
	// is required unless `templateId` is set. See `CreatePodRequest` for
	// the full body.
	//
	// Returns `201` with the created pod. Provisioning is asynchronous: the
	// pod starts in `PROVISIONING`, transitions through `STARTING`, and
	// reaches `RUNNING` once its container is healthy. Poll `getPod` (or
	// watch the pod's `status`) to observe readiness rather than assuming
	// the pod is running when this call returns.
	//
	// ## Checking what you can deploy
	//
	// This endpoint places one specific GPU type. It does not search for
	// capacity, and it does not fall back to a different GPU. To find out
	// what is deployable before you call it, read the catalog:
	//
	// - [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types)
	//   — GPU types with pricing, per-cloud ceilings, and, with
	//   `include=AVAILABILITY&product=POD`, current pod stock.
	// - [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers)
	//   — locations, with `include=GPU_AVAILABILITY` for stock per data
	//   center.
	//
	// Both accept filters that combine, so you can narrow by location and by
	// compute in one request — for example
	// `GET /v2/catalog/datacenters?regions=EUROPE&include=GPU_AVAILABILITY`
	// returns only European data centers, each carrying the GPU types
	// currently available there.
	//
	// ## Deploying under region and GPU constraints
	//
	// If you need a particular GPU in a particular geography, the working
	// pattern is read-then-create: narrow the catalog to an acceptable
	// (data center, GPU) set, then call this endpoint once per candidate in
	// your order of preference until one returns `201`. The runnable sample
	// alongside this operation does exactly that.
	//
	// Availability can change between the catalog read and the create call,
	// so treat the catalog as a way to order your candidates, not as a
	// reservation — a create can still fail for capacity on a GPU the
	// catalog just reported as available.
	//
	// Which failures are worth retrying:
	//
	// | Status | Meaning | Do |
	// | --- | --- | --- |
	// | `422` | The body does not match the contract. `errors` lists each violation. | Fix the request. Never retry. |
	// | `400` | The body matches the contract but was rejected — either it breaks a cross-field rule, or this GPU and data center combination could not be placed. | Try your next candidate. |
	// | `402` | Insufficient balance. | Stop; no candidate will succeed. |
	// | `403` | Your account cannot access the requested pool. | Skip this candidate, keep going. |
	// | `429` | Rate limited. | Back off using `Retry-After`, then resume. |
	// | `5xx` | Transient server failure. | Retry the same candidate with backoff. |
	//
	// Requests larger than 102400 bytes receive `413` after authentication
	// and rate limiting, before deployment processing. Reduce the serialized
	// JSON request body and retry.
	//
	// This limit also applies to the deployment request built from your input
	// and any referenced template. A small request can therefore receive `413`
	// if inherited template settings make the combined request too large.
	// Reduce environment variables or command values in your request or template
	// and retry.
	//
	// `400` covers both "your request breaks a rule" and "no capacity",
	// because capacity exhaustion currently carries no machine-readable code
	// of its own — only a human-readable `detail`. A rule violation is
	// deterministic, so it fails identically on every candidate: if *every*
	// candidate returns `400`, read the last `detail` as a problem with the
	// request rather than as absent capacity.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v2/pods (the `CreatePod` operationId).
	CreatePodWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePodResult, error)

	// CreatePodWithResponse Create a pod
	//
	// Creates a new pod. `name` is always required; supply exactly one of
	// `gpu` or `cpu` to select compute (a GPU or a CPU pod). Container
	// settings come from the body, from a template referenced by
	// `templateId` (body fields override the template's), or both; `image`
	// is required unless `templateId` is set. See `CreatePodRequest` for
	// the full body.
	//
	// Returns `201` with the created pod. Provisioning is asynchronous: the
	// pod starts in `PROVISIONING`, transitions through `STARTING`, and
	// reaches `RUNNING` once its container is healthy. Poll `getPod` (or
	// watch the pod's `status`) to observe readiness rather than assuming
	// the pod is running when this call returns.
	//
	// ## Checking what you can deploy
	//
	// This endpoint places one specific GPU type. It does not search for
	// capacity, and it does not fall back to a different GPU. To find out
	// what is deployable before you call it, read the catalog:
	//
	// - [List GPU types](https://docs.runpod.io/api-reference-v2/catalog/list-gpu-types)
	//   — GPU types with pricing, per-cloud ceilings, and, with
	//   `include=AVAILABILITY&product=POD`, current pod stock.
	// - [List data centers](https://docs.runpod.io/api-reference-v2/catalog/list-data-centers)
	//   — locations, with `include=GPU_AVAILABILITY` for stock per data
	//   center.
	//
	// Both accept filters that combine, so you can narrow by location and by
	// compute in one request — for example
	// `GET /v2/catalog/datacenters?regions=EUROPE&include=GPU_AVAILABILITY`
	// returns only European data centers, each carrying the GPU types
	// currently available there.
	//
	// ## Deploying under region and GPU constraints
	//
	// If you need a particular GPU in a particular geography, the working
	// pattern is read-then-create: narrow the catalog to an acceptable
	// (data center, GPU) set, then call this endpoint once per candidate in
	// your order of preference until one returns `201`. The runnable sample
	// alongside this operation does exactly that.
	//
	// Availability can change between the catalog read and the create call,
	// so treat the catalog as a way to order your candidates, not as a
	// reservation — a create can still fail for capacity on a GPU the
	// catalog just reported as available.
	//
	// Which failures are worth retrying:
	//
	// | Status | Meaning | Do |
	// | --- | --- | --- |
	// | `422` | The body does not match the contract. `errors` lists each violation. | Fix the request. Never retry. |
	// | `400` | The body matches the contract but was rejected — either it breaks a cross-field rule, or this GPU and data center combination could not be placed. | Try your next candidate. |
	// | `402` | Insufficient balance. | Stop; no candidate will succeed. |
	// | `403` | Your account cannot access the requested pool. | Skip this candidate, keep going. |
	// | `429` | Rate limited. | Back off using `Retry-After`, then resume. |
	// | `5xx` | Transient server failure. | Retry the same candidate with backoff. |
	//
	// Requests larger than 102400 bytes receive `413` after authentication
	// and rate limiting, before deployment processing. Reduce the serialized
	// JSON request body and retry.
	//
	// This limit also applies to the deployment request built from your input
	// and any referenced template. A small request can therefore receive `413`
	// if inherited template settings make the combined request too large.
	// Reduce environment variables or command values in your request or template
	// and retry.
	//
	// `400` covers both "your request breaks a rule" and "no capacity",
	// because capacity exhaustion currently carries no machine-readable code
	// of its own — only a human-readable `detail`. A rule violation is
	// deterministic, so it fails identically on every candidate: if *every*
	// candidate returns `400`, read the last `detail` as a problem with the
	// request rather than as absent capacity.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v2/pods (the `CreatePod` operationId).
	CreatePodWithResponse(ctx context.Context, body CreatePodJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePodResult, error)

	// DeletePodWithResponse Terminate a pod
	//
	// Permanently terminates and deletes a pod. This is irreversible:
	// compute is released, any `mounts.persistent` host-local storage is
	// destroyed with it (a `mounts.network` volume is only detached — the
	// volume itself is not deleted), and the pod no longer appears in
	// `listPods`.
	//
	// Pods that belong to a Cluster cannot be terminated here — delete the
	// cluster via `DELETE /v2/clusters/{id}`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v2/pods/{id} (the `DeletePod` operationId).
	DeletePodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeletePodResult, error)

	// GetPodWithResponse Get a pod
	//
	// Returns a single pod by ID.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/pods/{id} (the `GetPod` operationId).
	GetPodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetPodResult, error)

	// UpdatePodWithBodyWithResponse Update a pod
	//
	// Partially updates a pod's configuration. This is a PATCH: only the
	// fields present in the body are changed, and omitted fields are left
	// untouched. Use empty values only when you explicitly mean to clear a
	// field (for example, set `registry` to `null` or set `ports` to `[]`).
	// See `UpdatePodRequest` for the full body.
	//
	// Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`,
	// `registry`, `mounts`, `locked`, and `globalNetworking`. Some changes
	// apply immediately while others (e.g. `globalNetworking`) take effect
	// on the pod's next start/restart, as noted on the individual fields.
	//
	// Volumes can be mounted, moved, or unmounted after creation through
	// `mounts`, one entry per volume; see `UpdatePodMounts` for the rules.
	//
	// Pods that belong to a Cluster cannot be updated here — manage them
	// through `/v2/clusters/{id}`.
	//
	// Returns `200` with the full updated pod.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v2/pods/{id} (the `UpdatePod` operationId).
	UpdatePodWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePodResult, error)

	// UpdatePodWithResponse Update a pod
	//
	// Partially updates a pod's configuration. This is a PATCH: only the
	// fields present in the body are changed, and omitted fields are left
	// untouched. Use empty values only when you explicitly mean to clear a
	// field (for example, set `registry` to `null` or set `ports` to `[]`).
	// See `UpdatePodRequest` for the full body.
	//
	// Mutable fields: `name`, `image`, `args`, `disk`, `ports`, `env`,
	// `registry`, `mounts`, `locked`, and `globalNetworking`. Some changes
	// apply immediately while others (e.g. `globalNetworking`) take effect
	// on the pod's next start/restart, as noted on the individual fields.
	//
	// Volumes can be mounted, moved, or unmounted after creation through
	// `mounts`, one entry per volume; see `UpdatePodMounts` for the rules.
	//
	// Pods that belong to a Cluster cannot be updated here — manage them
	// through `/v2/clusters/{id}`.
	//
	// Returns `200` with the full updated pod.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v2/pods/{id} (the `UpdatePod` operationId).
	UpdatePodWithResponse(ctx context.Context, id string, body UpdatePodJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePodResult, error)

	// PodActionWithBodyWithResponse Trigger a pod state transition
	//
	// Triggers a state transition on a pod. Send a JSON body with a single
	// `action` field, e.g. `{ "action": "stop" }`.
	//
	// Valid actions:
	// - `start`     — boot a stopped pod (`EXITED` or `ERROR`) back toward
	//   `RUNNING`.
	// - `stop`      — stop a running or provisioning pod, releasing GPU/CPU
	//   compute while keeping its disk. The pod moves to `EXITED`.
	// - `restart`   — restart a `RUNNING` pod's container in place.
	// - `terminate` — permanently delete the pod and release its resources
	//   (equivalent to `deletePod`).
	//
	// Which actions are valid depends on the pod's current status, and the
	// currently permitted set is published in the pod's `actions` field:
	// `RUNNING` allows `stop`/`restart`/`terminate`; `EXITED` and `ERROR`
	// allow `start`/`terminate`; `PROVISIONING` and `STARTING` allow
	// `stop`/`terminate`.
	//
	// `start`, `stop`, and `restart` return `200` with the updated pod.
	// `terminate` returns `204` with no body. Requesting an action that is
	// not valid for the pod's current status returns `409`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v2/pods/{id}/action (the `PodAction` operationId).
	PodActionWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PodActionResult, error)

	// PodActionWithResponse Trigger a pod state transition
	//
	// Triggers a state transition on a pod. Send a JSON body with a single
	// `action` field, e.g. `{ "action": "stop" }`.
	//
	// Valid actions:
	// - `start`     — boot a stopped pod (`EXITED` or `ERROR`) back toward
	//   `RUNNING`.
	// - `stop`      — stop a running or provisioning pod, releasing GPU/CPU
	//   compute while keeping its disk. The pod moves to `EXITED`.
	// - `restart`   — restart a `RUNNING` pod's container in place.
	// - `terminate` — permanently delete the pod and release its resources
	//   (equivalent to `deletePod`).
	//
	// Which actions are valid depends on the pod's current status, and the
	// currently permitted set is published in the pod's `actions` field:
	// `RUNNING` allows `stop`/`restart`/`terminate`; `EXITED` and `ERROR`
	// allow `start`/`terminate`; `PROVISIONING` and `STARTING` allow
	// `stop`/`terminate`.
	//
	// `start`, `stop`, and `restart` return `200` with the updated pod.
	// `terminate` returns `204` with no body. Requesting an action that is
	// not valid for the pod's current status returns `409`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v2/pods/{id}/action (the `PodAction` operationId).
	PodActionWithResponse(ctx context.Context, id string, body PodActionJSONRequestBody, reqEditors ...RequestEditorFn) (*PodActionResult, error)

	// ExecPodWithBodyWithResponse Run a command in a pod
	//
	// Runs one command inside the pod's container and returns its stdout,
	// stderr and exit code once it finishes. No SSH key, public IP or exposed
	// port is needed, and it works with any image.
	//
	// `command` is an argv array, run directly and never through a shell. For
	// pipes, redirects or globbing pass `["sh", "-c", "..."]`.
	//
	// A command that exits non-zero is a result, not an error: the call
	// answers `200` with `exitCode` set. A command still running after
	// `timeoutSeconds` (1-25, default 20) answers `200` with
	// `timedOut: true` and a null `exitCode`. `timedOut` means the call
	// stopped waiting, not that the command was stopped: it may keep
	// running in the container.
	//
	// `stdout` and `stderr` are each capped at 1 MiB. Output past the cap is
	// cut and `truncated` is `true`.
	//
	// The pod must be running with its container up, otherwise this answers
	// `409`; while the container is still starting, the `409` carries
	// `Retry-After`. A pod whose machine has not been updated for exec yet
	// answers `503` with `Retry-After`.
	//
	// `X-Team-Id` is not applied on this route: it reaches only pods owned by
	// the caller's own account.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v2/pods/{id}/exec (the `ExecPod` operationId).
	ExecPodWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecPodResult, error)

	// ExecPodWithResponse Run a command in a pod
	//
	// Runs one command inside the pod's container and returns its stdout,
	// stderr and exit code once it finishes. No SSH key, public IP or exposed
	// port is needed, and it works with any image.
	//
	// `command` is an argv array, run directly and never through a shell. For
	// pipes, redirects or globbing pass `["sh", "-c", "..."]`.
	//
	// A command that exits non-zero is a result, not an error: the call
	// answers `200` with `exitCode` set. A command still running after
	// `timeoutSeconds` (1-25, default 20) answers `200` with
	// `timedOut: true` and a null `exitCode`. `timedOut` means the call
	// stopped waiting, not that the command was stopped: it may keep
	// running in the container.
	//
	// `stdout` and `stderr` are each capped at 1 MiB. Output past the cap is
	// cut and `truncated` is `true`.
	//
	// The pod must be running with its container up, otherwise this answers
	// `409`; while the container is still starting, the `409` carries
	// `Retry-After`. A pod whose machine has not been updated for exec yet
	// answers `503` with `Retry-After`.
	//
	// `X-Team-Id` is not applied on this route: it reaches only pods owned by
	// the caller's own account.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v2/pods/{id}/exec (the `ExecPod` operationId).
	ExecPodWithResponse(ctx context.Context, id string, body ExecPodJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecPodResult, error)

	// GetPodLogsWithResponse Stream pod logs
	//
	// Streams pod logs as Server-Sent Events. The `source` query parameter
	// selects which log source to include.
	//
	// The SSE `data` payload shape is:
	// `{ "source": "container", "line": "...", "ts": "..." }`.
	// Log-event `id` values are the event `ts` timestamp so
	// browser/EventSource reconnects can resume with `Last-Event-ID`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/pods/{id}/logs (the `GetPodLogs` operationId).
	GetPodLogsWithResponse(ctx context.Context, id string, params *GetPodLogsParams, reqEditors ...RequestEditorFn) (*GetPodLogsResult, error)

	// ListQueuedPodsWithResponse List queued pods
	//
	// Returns the caller's queued pods, cursor-paginated newest-first; an
	// omitted `limit` defaults to 1000. Every queued pod is listed whatever
	// its `status`, so the outcome of a queued create can be read after the
	// fact. Follow `pagination.nextCursor` until `hasNextPage` is false.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/queued-pods (the `ListQueuedPods` operationId).
	ListQueuedPodsWithResponse(ctx context.Context, params *ListQueuedPodsParams, reqEditors ...RequestEditorFn) (*ListQueuedPodsResult, error)

	// DeleteQueuedPodWithResponse Cancel a queued pod
	//
	// Cancels a queued pod: it leaves the queue and is never deployed. A
	// pod it already created is untouched; terminate that with
	// `DELETE /v2/pods/{id}`. Cancelling a queued pod that already
	// deployed, failed or expired changes nothing and still answers `204`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v2/queued-pods/{id} (the `DeleteQueuedPod` operationId).
	DeleteQueuedPodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteQueuedPodResult, error)

	// GetQueuedPodWithResponse Get a queued pod
	//
	// Returns a single queued pod by ID. Poll it after a `202` from
	// `createPod`: `status` moves from `QUEUED` to `DEPLOYED` (with
	// `podId`), `FAILED` (with `failureReason`), `EXPIRED`, or `CANCELLED`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v2/queued-pods/{id} (the `GetQueuedPod` operationId).
	GetQueuedPodWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetQueuedPodResult, error)
}

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

type CreatePodJSONRequestBody

type CreatePodJSONRequestBody = externalRef0.CreatePodRequest

CreatePodJSONRequestBody defines body for CreatePod for application/json ContentType.

type CreatePodResult

type CreatePodResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *externalRef0.Pod
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *externalRef0.QueuedPod
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *externalRef0.ErrorResponse
	// 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
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *externalRef0.ErrorResponse
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *externalRef0.ErrorResponse
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *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
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreatePodResult201Headers
	// Headers202 the parsed response headers for an HTTP 202 response
	Headers202 *CreatePodResult202Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *CreatePodResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *CreatePodResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *CreatePodResult404Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *CreatePodResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *CreatePodResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreatePodResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *CreatePodResultDefaultHeaders
}

func ParseCreatePodResult

func ParseCreatePodResult(rsp *http.Response) (*CreatePodResult, error)

ParseCreatePodResult parses an HTTP response from a CreatePodWithResponse call

func (CreatePodResult) ContentType

func (r CreatePodResult) ContentType() string

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

func (CreatePodResult) GetApplicationproblemJSON400

func (r CreatePodResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreatePodResult) GetApplicationproblemJSON401

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

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

func (CreatePodResult) GetApplicationproblemJSON403

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

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

func (CreatePodResult) GetApplicationproblemJSON404

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

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

func (CreatePodResult) GetApplicationproblemJSON409 added in v2.2.0

func (r CreatePodResult) GetApplicationproblemJSON409() *externalRef0.ErrorResponse

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreatePodResult) GetApplicationproblemJSON413

func (r CreatePodResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (CreatePodResult) GetApplicationproblemJSON422

func (r CreatePodResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreatePodResult) GetApplicationproblemJSON429

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

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

func (CreatePodResult) GetApplicationproblemJSONDefault

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

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

func (CreatePodResult) GetBody

func (r CreatePodResult) GetBody() []byte

GetBody returns the raw response body bytes

func (CreatePodResult) GetJSON201

func (r CreatePodResult) GetJSON201() *externalRef0.Pod

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreatePodResult) GetJSON202 added in v2.2.0

func (r CreatePodResult) GetJSON202() *externalRef0.QueuedPod

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (CreatePodResult) Status

func (r CreatePodResult) Status() string

Status returns HTTPResponse.Status

func (CreatePodResult) StatusCode

func (r CreatePodResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreatePodResult201Headers

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

CreatePodResult201Headers the declared response headers of an HTTP 201 response for CreatePod

type CreatePodResult202Headers added in v2.2.0

type CreatePodResult202Headers struct {
	Location        *string
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}

CreatePodResult202Headers the declared response headers of an HTTP 202 response for CreatePod

type CreatePodResult400Headers

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

CreatePodResult400Headers the declared response headers of an HTTP 400 response for CreatePod

type CreatePodResult403Headers

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

CreatePodResult403Headers the declared response headers of an HTTP 403 response for CreatePod

type CreatePodResult404Headers

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

CreatePodResult404Headers the declared response headers of an HTTP 404 response for CreatePod

type CreatePodResult413Headers added in v2.1.0

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

CreatePodResult413Headers the declared response headers of an HTTP 413 response for CreatePod

type CreatePodResult422Headers

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

CreatePodResult422Headers the declared response headers of an HTTP 422 response for CreatePod

type CreatePodResult429Headers

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

CreatePodResult429Headers the declared response headers of an HTTP 429 response for CreatePod

type CreatePodResultDefaultHeaders

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

CreatePodResultDefaultHeaders the declared response headers of an HTTP default response for CreatePod

type DeletePodResult

type DeletePodResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// 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
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *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
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *DeletePodResult204Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *DeletePodResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *DeletePodResult404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeletePodResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *DeletePodResultDefaultHeaders
}

func ParseDeletePodResult

func ParseDeletePodResult(rsp *http.Response) (*DeletePodResult, error)

ParseDeletePodResult parses an HTTP response from a DeletePodWithResponse call

func (DeletePodResult) ContentType

func (r DeletePodResult) ContentType() string

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

func (DeletePodResult) GetApplicationproblemJSON401

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

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

func (DeletePodResult) GetApplicationproblemJSON403

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

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

func (DeletePodResult) GetApplicationproblemJSON404

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

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

func (DeletePodResult) GetApplicationproblemJSON409

func (r DeletePodResult) GetApplicationproblemJSON409() *externalRef0.ErrorResponse

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeletePodResult) GetApplicationproblemJSON429

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

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

func (DeletePodResult) GetApplicationproblemJSONDefault

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

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

func (DeletePodResult) GetBody

func (r DeletePodResult) GetBody() []byte

GetBody returns the raw response body bytes

func (DeletePodResult) Status

func (r DeletePodResult) Status() string

Status returns HTTPResponse.Status

func (DeletePodResult) StatusCode

func (r DeletePodResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeletePodResult204Headers

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

DeletePodResult204Headers the declared response headers of an HTTP 204 response for DeletePod

type DeletePodResult403Headers

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

DeletePodResult403Headers the declared response headers of an HTTP 403 response for DeletePod

type DeletePodResult404Headers

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

DeletePodResult404Headers the declared response headers of an HTTP 404 response for DeletePod

type DeletePodResult429Headers

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

DeletePodResult429Headers the declared response headers of an HTTP 429 response for DeletePod

type DeletePodResultDefaultHeaders

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

DeletePodResultDefaultHeaders the declared response headers of an HTTP default response for DeletePod

type DeleteQueuedPodResult added in v2.2.0

type DeleteQueuedPodResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// 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
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *DeleteQueuedPodResult204Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *DeleteQueuedPodResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *DeleteQueuedPodResult404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteQueuedPodResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *DeleteQueuedPodResultDefaultHeaders
}

func ParseDeleteQueuedPodResult added in v2.2.0

func ParseDeleteQueuedPodResult(rsp *http.Response) (*DeleteQueuedPodResult, error)

ParseDeleteQueuedPodResult parses an HTTP response from a DeleteQueuedPodWithResponse call

func (DeleteQueuedPodResult) ContentType added in v2.2.0

func (r DeleteQueuedPodResult) ContentType() string

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

func (DeleteQueuedPodResult) GetApplicationproblemJSON401 added in v2.2.0

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

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

func (DeleteQueuedPodResult) GetApplicationproblemJSON403 added in v2.2.0

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

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

func (DeleteQueuedPodResult) GetApplicationproblemJSON404 added in v2.2.0

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

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

func (DeleteQueuedPodResult) GetApplicationproblemJSON429 added in v2.2.0

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

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

func (DeleteQueuedPodResult) GetApplicationproblemJSONDefault added in v2.2.0

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

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

func (DeleteQueuedPodResult) GetBody added in v2.2.0

func (r DeleteQueuedPodResult) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteQueuedPodResult) Status added in v2.2.0

func (r DeleteQueuedPodResult) Status() string

Status returns HTTPResponse.Status

func (DeleteQueuedPodResult) StatusCode added in v2.2.0

func (r DeleteQueuedPodResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteQueuedPodResult204Headers added in v2.2.0

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

DeleteQueuedPodResult204Headers the declared response headers of an HTTP 204 response for DeleteQueuedPod

type DeleteQueuedPodResult403Headers added in v2.2.0

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

DeleteQueuedPodResult403Headers the declared response headers of an HTTP 403 response for DeleteQueuedPod

type DeleteQueuedPodResult404Headers added in v2.2.0

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

DeleteQueuedPodResult404Headers the declared response headers of an HTTP 404 response for DeleteQueuedPod

type DeleteQueuedPodResult429Headers added in v2.2.0

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

DeleteQueuedPodResult429Headers the declared response headers of an HTTP 429 response for DeleteQueuedPod

type DeleteQueuedPodResultDefaultHeaders added in v2.2.0

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

DeleteQueuedPodResultDefaultHeaders the declared response headers of an HTTP default response for DeleteQueuedPod

type ExecPodJSONRequestBody added in v2.2.0

type ExecPodJSONRequestBody = externalRef0.PodExecRequest

ExecPodJSONRequestBody defines body for ExecPod for application/json ContentType.

type ExecPodResult added in v2.2.0

type ExecPodResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.PodExecResult
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *externalRef0.ErrorResponse
	// 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
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *externalRef0.ErrorResponse
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *externalRef0.ErrorResponse
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *externalRef0.ErrorResponse
	// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
	ApplicationproblemJSON429 *externalRef0.ErrorResponse
	// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
	ApplicationproblemJSON502 *externalRef0.ErrorResponse
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *externalRef0.ErrorResponse
	// ApplicationproblemJSON504 the response for an HTTP 504 `application/problem+json` response
	ApplicationproblemJSON504 *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 *ExecPodResult200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ExecPodResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ExecPodResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *ExecPodResult404Headers
	// Headers409 the parsed response headers for an HTTP 409 response
	Headers409 *ExecPodResult409Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *ExecPodResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *ExecPodResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ExecPodResult429Headers
	// Headers502 the parsed response headers for an HTTP 502 response
	Headers502 *ExecPodResult502Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ExecPodResult503Headers
	// Headers504 the parsed response headers for an HTTP 504 response
	Headers504 *ExecPodResult504Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ExecPodResultDefaultHeaders
}

func ParseExecPodResult added in v2.2.0

func ParseExecPodResult(rsp *http.Response) (*ExecPodResult, error)

ParseExecPodResult parses an HTTP response from a ExecPodWithResponse call

func (ExecPodResult) ContentType added in v2.2.0

func (r ExecPodResult) ContentType() string

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

func (ExecPodResult) GetApplicationproblemJSON400 added in v2.2.0

func (r ExecPodResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ExecPodResult) GetApplicationproblemJSON401 added in v2.2.0

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

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

func (ExecPodResult) GetApplicationproblemJSON403 added in v2.2.0

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

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

func (ExecPodResult) GetApplicationproblemJSON404 added in v2.2.0

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

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

func (ExecPodResult) GetApplicationproblemJSON409 added in v2.2.0

func (r ExecPodResult) GetApplicationproblemJSON409() *externalRef0.ErrorResponse

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ExecPodResult) GetApplicationproblemJSON413 added in v2.2.0

func (r ExecPodResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (ExecPodResult) GetApplicationproblemJSON422 added in v2.2.0

func (r ExecPodResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ExecPodResult) GetApplicationproblemJSON429 added in v2.2.0

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

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

func (ExecPodResult) GetApplicationproblemJSON502 added in v2.2.0

func (r ExecPodResult) GetApplicationproblemJSON502() *externalRef0.ErrorResponse

GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response

func (ExecPodResult) GetApplicationproblemJSON503 added in v2.2.0

func (r ExecPodResult) GetApplicationproblemJSON503() *externalRef0.ErrorResponse

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ExecPodResult) GetApplicationproblemJSON504 added in v2.2.0

func (r ExecPodResult) GetApplicationproblemJSON504() *externalRef0.ErrorResponse

GetApplicationproblemJSON504 returns the response for an HTTP 504 `application/problem+json` response

func (ExecPodResult) GetApplicationproblemJSONDefault added in v2.2.0

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

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

func (ExecPodResult) GetBody added in v2.2.0

func (r ExecPodResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ExecPodResult) GetJSON200 added in v2.2.0

func (r ExecPodResult) GetJSON200() *externalRef0.PodExecResult

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

func (ExecPodResult) Status added in v2.2.0

func (r ExecPodResult) Status() string

Status returns HTTPResponse.Status

func (ExecPodResult) StatusCode added in v2.2.0

func (r ExecPodResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ExecPodResult200Headers added in v2.2.0

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

ExecPodResult200Headers the declared response headers of an HTTP 200 response for ExecPod

type ExecPodResult400Headers added in v2.2.0

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

ExecPodResult400Headers the declared response headers of an HTTP 400 response for ExecPod

type ExecPodResult403Headers added in v2.2.0

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

ExecPodResult403Headers the declared response headers of an HTTP 403 response for ExecPod

type ExecPodResult404Headers added in v2.2.0

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

ExecPodResult404Headers the declared response headers of an HTTP 404 response for ExecPod

type ExecPodResult409Headers added in v2.2.0

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

ExecPodResult409Headers the declared response headers of an HTTP 409 response for ExecPod

type ExecPodResult413Headers added in v2.2.0

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

ExecPodResult413Headers the declared response headers of an HTTP 413 response for ExecPod

type ExecPodResult422Headers added in v2.2.0

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

ExecPodResult422Headers the declared response headers of an HTTP 422 response for ExecPod

type ExecPodResult429Headers added in v2.2.0

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

ExecPodResult429Headers the declared response headers of an HTTP 429 response for ExecPod

type ExecPodResult502Headers added in v2.2.0

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

ExecPodResult502Headers the declared response headers of an HTTP 502 response for ExecPod

type ExecPodResult503Headers added in v2.2.0

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

ExecPodResult503Headers the declared response headers of an HTTP 503 response for ExecPod

type ExecPodResult504Headers added in v2.2.0

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

ExecPodResult504Headers the declared response headers of an HTTP 504 response for ExecPod

type ExecPodResultDefaultHeaders added in v2.2.0

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

ExecPodResultDefaultHeaders the declared response headers of an HTTP default response for ExecPod

type GetPodLogsParams

type GetPodLogsParams struct {
	// Source Log source to stream. Omit to include both container and system logs.
	Source *externalRef0.LogSourceParam `form:"source,omitempty" json:"source,omitempty"`

	// Tail Number of historical lines to backfill before streaming. Defaults to
	// 100 when omitted; set `0` to stream live with no backfill. Maximum 5000.
	// Ignored when `since` or `Last-Event-ID` is provided — the resume cursor
	// drives the backfill instead.
	Tail *externalRef0.LogTail `form:"tail,omitempty" json:"tail,omitempty"`

	// Since RFC3339 timestamp to resume from. Ignored when `Last-Event-ID` is
	// provided. When set, the stream resumes from this point and `tail` is
	// ignored.
	Since *externalRef0.LogSince `form:"since,omitempty" json:"since,omitempty"`

	// LastEventID SSE reconnect cursor — a timestamp emitted by this endpoint. Takes
	// precedence over `since` and `tail`: when present, the stream resumes
	// from this point. Sent automatically by EventSource on reconnect.
	LastEventID *externalRef0.LogLastEventID `json:"Last-Event-ID,omitempty"`
}

GetPodLogsParams defines parameters for GetPodLogs.

type GetPodLogsResult

type GetPodLogsResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// 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 *GetPodLogsResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetPodLogsResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetPodLogsResult404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetPodLogsResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetPodLogsResultDefaultHeaders
}

func ParseGetPodLogsResult

func ParseGetPodLogsResult(rsp *http.Response) (*GetPodLogsResult, error)

ParseGetPodLogsResult parses an HTTP response from a GetPodLogsWithResponse call

func (GetPodLogsResult) ContentType

func (r GetPodLogsResult) ContentType() string

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

func (GetPodLogsResult) GetApplicationproblemJSON401

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

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

func (GetPodLogsResult) GetApplicationproblemJSON403

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

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

func (GetPodLogsResult) GetApplicationproblemJSON404

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

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

func (GetPodLogsResult) GetApplicationproblemJSON429

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

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

func (GetPodLogsResult) GetApplicationproblemJSONDefault

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

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

func (GetPodLogsResult) GetBody

func (r GetPodLogsResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetPodLogsResult) Status

func (r GetPodLogsResult) Status() string

Status returns HTTPResponse.Status

func (GetPodLogsResult) StatusCode

func (r GetPodLogsResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPodLogsResult200Headers

type GetPodLogsResult200Headers struct {
	CacheControl    *string
	Connection      *string
	RateLimit       *externalRef0.RateLimitHeader
	RateLimitPolicy *externalRef0.RateLimitPolicyHeader
	XAccelBuffering *string
}

GetPodLogsResult200Headers the declared response headers of an HTTP 200 response for GetPodLogs

type GetPodLogsResult403Headers

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

GetPodLogsResult403Headers the declared response headers of an HTTP 403 response for GetPodLogs

type GetPodLogsResult404Headers

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

GetPodLogsResult404Headers the declared response headers of an HTTP 404 response for GetPodLogs

type GetPodLogsResult429Headers

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

GetPodLogsResult429Headers the declared response headers of an HTTP 429 response for GetPodLogs

type GetPodLogsResultDefaultHeaders

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

GetPodLogsResultDefaultHeaders the declared response headers of an HTTP default response for GetPodLogs

type GetPodResult

type GetPodResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.Pod
	// 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 *GetPodResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetPodResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetPodResult404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetPodResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetPodResultDefaultHeaders
}

func ParseGetPodResult

func ParseGetPodResult(rsp *http.Response) (*GetPodResult, error)

ParseGetPodResult parses an HTTP response from a GetPodWithResponse call

func (GetPodResult) ContentType

func (r GetPodResult) ContentType() string

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

func (GetPodResult) GetApplicationproblemJSON401

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

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

func (GetPodResult) GetApplicationproblemJSON403

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

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

func (GetPodResult) GetApplicationproblemJSON404

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

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

func (GetPodResult) GetApplicationproblemJSON429

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

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

func (GetPodResult) GetApplicationproblemJSONDefault

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

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

func (GetPodResult) GetBody

func (r GetPodResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetPodResult) GetJSON200

func (r GetPodResult) GetJSON200() *externalRef0.Pod

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

func (GetPodResult) Status

func (r GetPodResult) Status() string

Status returns HTTPResponse.Status

func (GetPodResult) StatusCode

func (r GetPodResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPodResult200Headers

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

GetPodResult200Headers the declared response headers of an HTTP 200 response for GetPod

type GetPodResult403Headers

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

GetPodResult403Headers the declared response headers of an HTTP 403 response for GetPod

type GetPodResult404Headers

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

GetPodResult404Headers the declared response headers of an HTTP 404 response for GetPod

type GetPodResult429Headers

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

GetPodResult429Headers the declared response headers of an HTTP 429 response for GetPod

type GetPodResultDefaultHeaders

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

GetPodResultDefaultHeaders the declared response headers of an HTTP default response for GetPod

type GetQueuedPodResult added in v2.2.0

type GetQueuedPodResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.QueuedPod
	// 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 *GetQueuedPodResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetQueuedPodResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetQueuedPodResult404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetQueuedPodResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetQueuedPodResultDefaultHeaders
}

func ParseGetQueuedPodResult added in v2.2.0

func ParseGetQueuedPodResult(rsp *http.Response) (*GetQueuedPodResult, error)

ParseGetQueuedPodResult parses an HTTP response from a GetQueuedPodWithResponse call

func (GetQueuedPodResult) ContentType added in v2.2.0

func (r GetQueuedPodResult) ContentType() string

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

func (GetQueuedPodResult) GetApplicationproblemJSON401 added in v2.2.0

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

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

func (GetQueuedPodResult) GetApplicationproblemJSON403 added in v2.2.0

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

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

func (GetQueuedPodResult) GetApplicationproblemJSON404 added in v2.2.0

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

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

func (GetQueuedPodResult) GetApplicationproblemJSON429 added in v2.2.0

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

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

func (GetQueuedPodResult) GetApplicationproblemJSONDefault added in v2.2.0

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

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

func (GetQueuedPodResult) GetBody added in v2.2.0

func (r GetQueuedPodResult) GetBody() []byte

GetBody returns the raw response body bytes

func (GetQueuedPodResult) GetJSON200 added in v2.2.0

func (r GetQueuedPodResult) GetJSON200() *externalRef0.QueuedPod

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

func (GetQueuedPodResult) Status added in v2.2.0

func (r GetQueuedPodResult) Status() string

Status returns HTTPResponse.Status

func (GetQueuedPodResult) StatusCode added in v2.2.0

func (r GetQueuedPodResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetQueuedPodResult200Headers added in v2.2.0

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

GetQueuedPodResult200Headers the declared response headers of an HTTP 200 response for GetQueuedPod

type GetQueuedPodResult403Headers added in v2.2.0

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

GetQueuedPodResult403Headers the declared response headers of an HTTP 403 response for GetQueuedPod

type GetQueuedPodResult404Headers added in v2.2.0

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

GetQueuedPodResult404Headers the declared response headers of an HTTP 404 response for GetQueuedPod

type GetQueuedPodResult429Headers added in v2.2.0

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

GetQueuedPodResult429Headers the declared response headers of an HTTP 429 response for GetQueuedPod

type GetQueuedPodResultDefaultHeaders added in v2.2.0

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

GetQueuedPodResultDefaultHeaders the declared response headers of an HTTP default response for GetQueuedPod

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListPodsParams

type ListPodsParams struct {
	// IncludeClusterPods Include cluster member pods in the result. Defaults to false.
	IncludeClusterPods *bool `form:"includeClusterPods,omitempty" json:"includeClusterPods,omitempty"`

	// Filters Only return resources matching these filters, as URL-encoded JSON. The filters apply before the page is cut, so send the same value with each `cursor` to keep walking the filtered list.
	Filters *externalRef0.ResourceFilters `form:"filters,omitempty" json:"filters,omitempty"`

	// Cursor Opaque resume cursor — pass the previous response's `pagination.nextCursor` through verbatim; omit for the first page. A cursor is only valid for the operation and parameters that issued it; a malformed or foreign cursor is rejected with 422.
	Cursor *externalRef0.PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size, 1–1000. Defaults to 1000 when omitted.
	Limit *externalRef0.PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
}

ListPodsParams defines parameters for ListPods.

type ListPodsResult

type ListPodsResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.ListPodsResponse
	// 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
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *externalRef0.ErrorResponse
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *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 *ListPodsResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListPodsResult403Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *ListPodsResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *ListPodsResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListPodsResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListPodsResultDefaultHeaders
}

func ParseListPodsResult

func ParseListPodsResult(rsp *http.Response) (*ListPodsResult, error)

ParseListPodsResult parses an HTTP response from a ListPodsWithResponse call

func (ListPodsResult) ContentType

func (r ListPodsResult) ContentType() string

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

func (ListPodsResult) GetApplicationproblemJSON401

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

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

func (ListPodsResult) GetApplicationproblemJSON403

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

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

func (ListPodsResult) GetApplicationproblemJSON413 added in v2.1.0

func (r ListPodsResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (ListPodsResult) GetApplicationproblemJSON422 added in v2.2.0

func (r ListPodsResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ListPodsResult) GetApplicationproblemJSON429

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

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

func (ListPodsResult) GetApplicationproblemJSONDefault

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

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

func (ListPodsResult) GetBody

func (r ListPodsResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListPodsResult) GetJSON200

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

func (ListPodsResult) Status

func (r ListPodsResult) Status() string

Status returns HTTPResponse.Status

func (ListPodsResult) StatusCode

func (r ListPodsResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPodsResult200Headers

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

ListPodsResult200Headers the declared response headers of an HTTP 200 response for ListPods

type ListPodsResult403Headers

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

ListPodsResult403Headers the declared response headers of an HTTP 403 response for ListPods

type ListPodsResult413Headers added in v2.1.0

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

ListPodsResult413Headers the declared response headers of an HTTP 413 response for ListPods

type ListPodsResult422Headers added in v2.2.0

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

ListPodsResult422Headers the declared response headers of an HTTP 422 response for ListPods

type ListPodsResult429Headers

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

ListPodsResult429Headers the declared response headers of an HTTP 429 response for ListPods

type ListPodsResultDefaultHeaders

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

ListPodsResultDefaultHeaders the declared response headers of an HTTP default response for ListPods

type ListQueuedPodsParams added in v2.2.0

type ListQueuedPodsParams struct {
	// Cursor Opaque resume cursor — pass the previous response's `pagination.nextCursor` through verbatim; omit for the first page. A cursor is only valid for the operation and parameters that issued it; a malformed or foreign cursor is rejected with 422.
	Cursor *externalRef0.PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size, 1–1000. Defaults to 1000 when omitted.
	Limit *externalRef0.PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
}

ListQueuedPodsParams defines parameters for ListQueuedPods.

type ListQueuedPodsResult added in v2.2.0

type ListQueuedPodsResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.ListQueuedPodsResponse
	// 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
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *externalRef0.ErrorResponse
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *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 *ListQueuedPodsResult200Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListQueuedPodsResult403Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *ListQueuedPodsResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *ListQueuedPodsResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListQueuedPodsResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListQueuedPodsResultDefaultHeaders
}

func ParseListQueuedPodsResult added in v2.2.0

func ParseListQueuedPodsResult(rsp *http.Response) (*ListQueuedPodsResult, error)

ParseListQueuedPodsResult parses an HTTP response from a ListQueuedPodsWithResponse call

func (ListQueuedPodsResult) ContentType added in v2.2.0

func (r ListQueuedPodsResult) ContentType() string

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

func (ListQueuedPodsResult) GetApplicationproblemJSON401 added in v2.2.0

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

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

func (ListQueuedPodsResult) GetApplicationproblemJSON403 added in v2.2.0

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

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

func (ListQueuedPodsResult) GetApplicationproblemJSON413 added in v2.2.0

func (r ListQueuedPodsResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (ListQueuedPodsResult) GetApplicationproblemJSON422 added in v2.2.0

func (r ListQueuedPodsResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ListQueuedPodsResult) GetApplicationproblemJSON429 added in v2.2.0

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

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

func (ListQueuedPodsResult) GetApplicationproblemJSONDefault added in v2.2.0

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

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

func (ListQueuedPodsResult) GetBody added in v2.2.0

func (r ListQueuedPodsResult) GetBody() []byte

GetBody returns the raw response body bytes

func (ListQueuedPodsResult) GetJSON200 added in v2.2.0

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

func (ListQueuedPodsResult) Status added in v2.2.0

func (r ListQueuedPodsResult) Status() string

Status returns HTTPResponse.Status

func (ListQueuedPodsResult) StatusCode added in v2.2.0

func (r ListQueuedPodsResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListQueuedPodsResult200Headers added in v2.2.0

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

ListQueuedPodsResult200Headers the declared response headers of an HTTP 200 response for ListQueuedPods

type ListQueuedPodsResult403Headers added in v2.2.0

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

ListQueuedPodsResult403Headers the declared response headers of an HTTP 403 response for ListQueuedPods

type ListQueuedPodsResult413Headers added in v2.2.0

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

ListQueuedPodsResult413Headers the declared response headers of an HTTP 413 response for ListQueuedPods

type ListQueuedPodsResult422Headers added in v2.2.0

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

ListQueuedPodsResult422Headers the declared response headers of an HTTP 422 response for ListQueuedPods

type ListQueuedPodsResult429Headers added in v2.2.0

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

ListQueuedPodsResult429Headers the declared response headers of an HTTP 429 response for ListQueuedPods

type ListQueuedPodsResultDefaultHeaders added in v2.2.0

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

ListQueuedPodsResultDefaultHeaders the declared response headers of an HTTP default response for ListQueuedPods

type PodActionJSONRequestBody

type PodActionJSONRequestBody = externalRef0.PodActionRequest

PodActionJSONRequestBody defines body for PodAction for application/json ContentType.

type PodActionResult

type PodActionResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.Pod
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *externalRef0.ErrorResponse
	// 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
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *externalRef0.ErrorResponse
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *externalRef0.ErrorResponse
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *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 *PodActionResult200Headers
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *PodActionResult204Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *PodActionResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *PodActionResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *PodActionResult404Headers
	// Headers409 the parsed response headers for an HTTP 409 response
	Headers409 *PodActionResult409Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *PodActionResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *PodActionResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *PodActionResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *PodActionResultDefaultHeaders
}

func ParsePodActionResult

func ParsePodActionResult(rsp *http.Response) (*PodActionResult, error)

ParsePodActionResult parses an HTTP response from a PodActionWithResponse call

func (PodActionResult) ContentType

func (r PodActionResult) ContentType() string

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

func (PodActionResult) GetApplicationproblemJSON400

func (r PodActionResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (PodActionResult) GetApplicationproblemJSON401

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

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

func (PodActionResult) GetApplicationproblemJSON403

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

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

func (PodActionResult) GetApplicationproblemJSON404

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

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

func (PodActionResult) GetApplicationproblemJSON409

func (r PodActionResult) GetApplicationproblemJSON409() *externalRef0.ErrorResponse

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (PodActionResult) GetApplicationproblemJSON413 added in v2.1.0

func (r PodActionResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (PodActionResult) GetApplicationproblemJSON422

func (r PodActionResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (PodActionResult) GetApplicationproblemJSON429

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

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

func (PodActionResult) GetApplicationproblemJSONDefault

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

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

func (PodActionResult) GetBody

func (r PodActionResult) GetBody() []byte

GetBody returns the raw response body bytes

func (PodActionResult) GetJSON200

func (r PodActionResult) GetJSON200() *externalRef0.Pod

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

func (PodActionResult) Status

func (r PodActionResult) Status() string

Status returns HTTPResponse.Status

func (PodActionResult) StatusCode

func (r PodActionResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PodActionResult200Headers

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

PodActionResult200Headers the declared response headers of an HTTP 200 response for PodAction

type PodActionResult204Headers

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

PodActionResult204Headers the declared response headers of an HTTP 204 response for PodAction

type PodActionResult400Headers

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

PodActionResult400Headers the declared response headers of an HTTP 400 response for PodAction

type PodActionResult403Headers

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

PodActionResult403Headers the declared response headers of an HTTP 403 response for PodAction

type PodActionResult404Headers

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

PodActionResult404Headers the declared response headers of an HTTP 404 response for PodAction

type PodActionResult409Headers

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

PodActionResult409Headers the declared response headers of an HTTP 409 response for PodAction

type PodActionResult413Headers added in v2.1.0

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

PodActionResult413Headers the declared response headers of an HTTP 413 response for PodAction

type PodActionResult422Headers

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

PodActionResult422Headers the declared response headers of an HTTP 422 response for PodAction

type PodActionResult429Headers

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

PodActionResult429Headers the declared response headers of an HTTP 429 response for PodAction

type PodActionResultDefaultHeaders

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

PodActionResultDefaultHeaders the declared response headers of an HTTP default response for PodAction

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type UpdatePodJSONRequestBody

type UpdatePodJSONRequestBody = externalRef0.UpdatePodRequest

UpdatePodJSONRequestBody defines body for UpdatePod for application/json ContentType.

type UpdatePodResult

type UpdatePodResult struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *externalRef0.Pod
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *externalRef0.ErrorResponse
	// 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
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *externalRef0.ErrorResponse
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *externalRef0.ErrorResponse
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *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 *UpdatePodResult200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *UpdatePodResult400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *UpdatePodResult403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *UpdatePodResult404Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *UpdatePodResult413Headers
	// Headers422 the parsed response headers for an HTTP 422 response
	Headers422 *UpdatePodResult422Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdatePodResult429Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *UpdatePodResultDefaultHeaders
}

func ParseUpdatePodResult

func ParseUpdatePodResult(rsp *http.Response) (*UpdatePodResult, error)

ParseUpdatePodResult parses an HTTP response from a UpdatePodWithResponse call

func (UpdatePodResult) ContentType

func (r UpdatePodResult) ContentType() string

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

func (UpdatePodResult) GetApplicationproblemJSON400

func (r UpdatePodResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdatePodResult) GetApplicationproblemJSON401

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

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

func (UpdatePodResult) GetApplicationproblemJSON403

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

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

func (UpdatePodResult) GetApplicationproblemJSON404

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

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

func (UpdatePodResult) GetApplicationproblemJSON409

func (r UpdatePodResult) GetApplicationproblemJSON409() *externalRef0.ErrorResponse

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (UpdatePodResult) GetApplicationproblemJSON413 added in v2.1.0

func (r UpdatePodResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (UpdatePodResult) GetApplicationproblemJSON422

func (r UpdatePodResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (UpdatePodResult) GetApplicationproblemJSON429

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

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

func (UpdatePodResult) GetApplicationproblemJSONDefault

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

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

func (UpdatePodResult) GetBody

func (r UpdatePodResult) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdatePodResult) GetJSON200

func (r UpdatePodResult) GetJSON200() *externalRef0.Pod

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

func (UpdatePodResult) Status

func (r UpdatePodResult) Status() string

Status returns HTTPResponse.Status

func (UpdatePodResult) StatusCode

func (r UpdatePodResult) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePodResult200Headers

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

UpdatePodResult200Headers the declared response headers of an HTTP 200 response for UpdatePod

type UpdatePodResult400Headers

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

UpdatePodResult400Headers the declared response headers of an HTTP 400 response for UpdatePod

type UpdatePodResult403Headers

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

UpdatePodResult403Headers the declared response headers of an HTTP 403 response for UpdatePod

type UpdatePodResult404Headers

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

UpdatePodResult404Headers the declared response headers of an HTTP 404 response for UpdatePod

type UpdatePodResult413Headers added in v2.1.0

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

UpdatePodResult413Headers the declared response headers of an HTTP 413 response for UpdatePod

type UpdatePodResult422Headers

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

UpdatePodResult422Headers the declared response headers of an HTTP 422 response for UpdatePod

type UpdatePodResult429Headers

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

UpdatePodResult429Headers the declared response headers of an HTTP 429 response for UpdatePod

type UpdatePodResultDefaultHeaders

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

UpdatePodResultDefaultHeaders the declared response headers of an HTTP default response for UpdatePod

Jump to

Keyboard shortcuts

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