pods

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 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 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 NewListPodsRequest

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

NewListPodsRequest constructs an http.Request for the ListPods 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 upstream failure. | Retry the same candidate with backoff. |

Requests larger than 102400 bytes receive `413` before authentication or 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 upstream failure. | Retry the same candidate with backoff. |

Requests larger than 102400 bytes receive `413` before authentication or 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) 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) 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. When cluster member pods are excluded, the exclusion applies to each page after it is cut, so a page may hold fewer than `limit` pods — follow `pagination.nextCursor` until `hasNextPage` is false rather than counting items.

Corresponds with GET /v2/pods (the `ListPods` 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.

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.

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. When cluster member pods are excluded, the
	// exclusion applies to each page after it is cut, so a page may hold
	// fewer than `limit` pods — follow `pagination.nextCursor` until
	// `hasNextPage` is false rather than counting items.
	//
	// 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 upstream failure. | Retry the same candidate with backoff. |
	//
	// Requests larger than 102400 bytes receive `413` before authentication
	// or 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 upstream failure. | Retry the same candidate with backoff. |
	//
	// Requests larger than 102400 bytes receive `413` before authentication
	// or 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.
	//
	// 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.
	//
	// 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)

	// 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)
}

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 upstream failure. | Retry the same candidate with backoff. |

Requests larger than 102400 bytes receive `413` before authentication or 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 upstream failure. | Retry the same candidate with backoff. |

Requests larger than 102400 bytes receive `413` before authentication or 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) 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) 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. When cluster member pods are excluded, the exclusion applies to each page after it is cut, so a page may hold fewer than `limit` pods — follow `pagination.nextCursor` until `hasNextPage` is false rather than counting items.

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

Corresponds with GET /v2/pods (the `ListPods` 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.

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.

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. When cluster member pods are excluded, the
	// exclusion applies to each page after it is cut, so a page may hold
	// fewer than `limit` pods — follow `pagination.nextCursor` until
	// `hasNextPage` is false rather than counting items.
	//
	// 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 upstream failure. | Retry the same candidate with backoff. |
	//
	// Requests larger than 102400 bytes receive `413` before authentication
	// or 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 upstream failure. | Retry the same candidate with backoff. |
	//
	// Requests larger than 102400 bytes receive `413` before authentication
	// or 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.
	//
	// 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.
	//
	// 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)

	// 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)
}

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
	// 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
	// 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
	// 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
	// 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) 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) 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 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 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 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 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"`

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