#[non_exhaustive]pub struct SlurmLoginNodes {
pub count: i64,
pub zone: String,
pub machine_type: String,
pub startup_script: String,
pub enable_os_login: bool,
pub enable_public_ips: bool,
pub labels: HashMap<String, String>,
pub storage_configs: Vec<StorageConfig>,
pub instances: Vec<ComputeInstance>,
pub boot_disk: Option<BootDisk>,
/* private fields */
}Expand description
Configuration for Slurm login nodes in the cluster. Login nodes are Compute Engine VM instances that allow users to access the cluster over SSH.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.count: i64Required. Number of login node instances to create.
zone: StringRequired. Name of the zone in which login nodes should run, e.g.,
us-central1-a. Must be in the same region as the cluster, and must match
the zone of any other resources specified in the cluster.
machine_type: StringRequired. Name of the Compute Engine machine
type to use for
login nodes, e.g. n2-standard-2.
startup_script: StringOptional. Startup
script
to be run on each login node instance. Max 256KB.
The script must complete within the system-defined default timeout of 5
minutes. For tasks that require more time, consider running them in the
background using methods such as & or nohup.
enable_os_login: boolOptional. Whether OS Login should be enabled on login node instances.
enable_public_ips: boolOptional. Whether login node instances should be assigned external IP addresses.
labels: HashMap<String, String>Optional. Labels that should be applied to each login node instance.
storage_configs: Vec<StorageConfig>Optional. How storage resources should be mounted on each login node.
instances: Vec<ComputeInstance>Output only. Information about the login node instances that were created in Compute Engine.
boot_disk: Option<BootDisk>Optional. Boot disk for the login node.
Implementations§
Source§impl SlurmLoginNodes
impl SlurmLoginNodes
Sourcepub fn set_machine_type<T: Into<String>>(self, v: T) -> Self
pub fn set_machine_type<T: Into<String>>(self, v: T) -> Self
Sets the value of machine_type.
§Example
let x = SlurmLoginNodes::new().set_machine_type("example");Sourcepub fn set_startup_script<T: Into<String>>(self, v: T) -> Self
pub fn set_startup_script<T: Into<String>>(self, v: T) -> Self
Sets the value of startup_script.
§Example
let x = SlurmLoginNodes::new().set_startup_script("example");Sourcepub fn set_enable_os_login<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_os_login<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_os_login.
§Example
let x = SlurmLoginNodes::new().set_enable_os_login(true);Sourcepub fn set_enable_public_ips<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_public_ips<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_public_ips.
§Example
let x = SlurmLoginNodes::new().set_enable_public_ips(true);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_storage_configs<T, V>(self, v: T) -> Self
pub fn set_storage_configs<T, V>(self, v: T) -> Self
Sets the value of storage_configs.
§Example
use google_cloud_hypercomputecluster_v1::model::StorageConfig;
let x = SlurmLoginNodes::new()
.set_storage_configs([
StorageConfig::default()/* use setters */,
StorageConfig::default()/* use (different) setters */,
]);Sourcepub fn set_instances<T, V>(self, v: T) -> Self
pub fn set_instances<T, V>(self, v: T) -> Self
Sourcepub fn set_boot_disk<T>(self, v: T) -> Self
pub fn set_boot_disk<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_boot_disk<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_boot_disk<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for SlurmLoginNodes
impl Clone for SlurmLoginNodes
Source§impl Debug for SlurmLoginNodes
impl Debug for SlurmLoginNodes
Source§impl Default for SlurmLoginNodes
impl Default for SlurmLoginNodes
Source§impl Message for SlurmLoginNodes
impl Message for SlurmLoginNodes
Source§impl PartialEq for SlurmLoginNodes
impl PartialEq for SlurmLoginNodes
impl StructuralPartialEq for SlurmLoginNodes
Auto Trait Implementations§
impl Freeze for SlurmLoginNodes
impl RefUnwindSafe for SlurmLoginNodes
impl Send for SlurmLoginNodes
impl Sync for SlurmLoginNodes
impl Unpin for SlurmLoginNodes
impl UnsafeUnpin for SlurmLoginNodes
impl UnwindSafe for SlurmLoginNodes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request