pub struct PodUpdateInput {
pub container_disk_in_gb: Option<i32>,
pub container_registry_auth_id: Option<String>,
pub docker_entrypoint: Option<Vec<String>>,
pub docker_start_cmd: Option<Vec<String>>,
pub env: Option<EnvVars>,
pub global_networking: Option<bool>,
pub image_name: Option<String>,
pub locked: Option<bool>,
pub name: Option<String>,
pub ports: Option<Vec<String>>,
pub volume_in_gb: Option<i32>,
pub volume_mount_path: Option<String>,
}Expand description
Input parameters for updating an existing Pod.
This struct contains the configuration options that can be modified for an existing Pod. Note that updating a Pod will trigger a reset.
§Examples
use runpod_sdk::model::PodUpdateInput;
let update_input = PodUpdateInput {
name: Some("updated-pod-name".to_string()),
locked: Some(true),
..Default::default()
};Fields§
§container_disk_in_gb: Option<i32>The amount of disk space, in gigabytes (GB), to allocate on the container disk. The data on the container disk is wiped when the Pod restarts.
container_registry_auth_id: Option<String>Registry credentials ID for private container registries.
docker_entrypoint: Option<Vec<String>>If specified, overrides the ENTRYPOINT for the Docker image. If empty, uses the ENTRYPOINT defined in the image.
docker_start_cmd: Option<Vec<String>>If specified, overrides the start CMD for the Docker image. If empty, uses the start CMD defined in the image.
env: Option<EnvVars>Environment variables for the Pod container.
global_networking: Option<bool>Set to true to enable global networking for the Pod. Currently only available for On-Demand GPU Pods on some Secure Cloud data centers.
image_name: Option<String>The image tag for the container run on the Pod.
locked: Option<bool>Set to true to lock the Pod. Locking a Pod disables stopping or resetting it.
name: Option<String>A user-defined name for the Pod. The name does not need to be unique.
ports: Option<Vec<String>>A list of ports exposed on the Pod. Each port is formatted as
[port number]/[protocol]. Protocol can be either http or tcp.
volume_in_gb: Option<i32>The amount of disk space, in gigabytes (GB), to allocate on the Pod volume. The data on the Pod volume is persisted across Pod restarts.
volume_mount_path: Option<String>The absolute path where the network volume will be mounted in the filesystem.
Trait Implementations§
Source§impl Clone for PodUpdateInput
impl Clone for PodUpdateInput
Source§fn clone(&self) -> PodUpdateInput
fn clone(&self) -> PodUpdateInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more