#[non_exhaustive]pub struct DiskConfig {
pub boot_disk_type: String,
pub boot_disk_size_gb: i32,
pub num_local_ssds: i32,
pub local_ssd_interface: String,
pub boot_disk_provisioned_iops: Option<i64>,
pub boot_disk_provisioned_throughput: Option<i64>,
pub attached_disk_configs: Vec<AttachedDiskConfig>,
/* private fields */
}Expand description
Specifies the config of boot disk and attached disk options for a group of VM instances.
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.boot_disk_type: StringOptional. Type of the boot disk (default is pd-standard).
Valid values: pd-balanced (Persistent Disk Balanced Solid State Drive),
pd-ssd (Persistent Disk Solid State Drive),
or pd-standard (Persistent Disk Hard Disk Drive).
See Disk types.
boot_disk_size_gb: i32Optional. Size in GB of the boot disk (default is 500GB).
num_local_ssds: i32Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
Note: Local SSD options may vary by machine type and number of vCPUs selected.
local_ssd_interface: StringOptional. Interface type of local SSDs (default is scsi).
Valid values: scsi (Small Computer System Interface),
nvme (Non-Volatile Memory Express).
See local SSD
performance.
boot_disk_provisioned_iops: Option<i64>Optional. Indicates how many IOPS to provision for the disk. This sets the
number of I/O operations per second that the disk can handle.
This field is supported only if
boot_disk_type is
hyperdisk-balanced.
boot_disk_provisioned_throughput: Option<i64>Optional. Indicates how much throughput to provision for the disk. This
sets the number of throughput mb per second that the disk can handle.
Values must be greater than or equal to 1. This field is supported only
if boot_disk_type is
hyperdisk-balanced.
attached_disk_configs: Vec<AttachedDiskConfig>Optional. A list of attached disk configs for a group of VM instances.
Implementations§
Source§impl DiskConfig
impl DiskConfig
Sourcepub fn set_boot_disk_type<T: Into<String>>(self, v: T) -> Self
pub fn set_boot_disk_type<T: Into<String>>(self, v: T) -> Self
Sets the value of boot_disk_type.
§Example
let x = DiskConfig::new().set_boot_disk_type("example");Sourcepub fn set_boot_disk_size_gb<T: Into<i32>>(self, v: T) -> Self
pub fn set_boot_disk_size_gb<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_num_local_ssds<T: Into<i32>>(self, v: T) -> Self
pub fn set_num_local_ssds<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_local_ssd_interface<T: Into<String>>(self, v: T) -> Self
pub fn set_local_ssd_interface<T: Into<String>>(self, v: T) -> Self
Sets the value of local_ssd_interface.
§Example
let x = DiskConfig::new().set_local_ssd_interface("example");Sourcepub fn set_boot_disk_provisioned_iops<T>(self, v: T) -> Self
pub fn set_boot_disk_provisioned_iops<T>(self, v: T) -> Self
Sets the value of boot_disk_provisioned_iops.
§Example
let x = DiskConfig::new().set_boot_disk_provisioned_iops(42);Sourcepub fn set_or_clear_boot_disk_provisioned_iops<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_boot_disk_provisioned_iops<T>(self, v: Option<T>) -> Self
Sets or clears the value of boot_disk_provisioned_iops.
§Example
let x = DiskConfig::new().set_or_clear_boot_disk_provisioned_iops(Some(42));
let x = DiskConfig::new().set_or_clear_boot_disk_provisioned_iops(None::<i32>);Sourcepub fn set_boot_disk_provisioned_throughput<T>(self, v: T) -> Self
pub fn set_boot_disk_provisioned_throughput<T>(self, v: T) -> Self
Sets the value of boot_disk_provisioned_throughput.
§Example
let x = DiskConfig::new().set_boot_disk_provisioned_throughput(42);Sourcepub fn set_or_clear_boot_disk_provisioned_throughput<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_boot_disk_provisioned_throughput<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of boot_disk_provisioned_throughput.
§Example
let x = DiskConfig::new().set_or_clear_boot_disk_provisioned_throughput(Some(42));
let x = DiskConfig::new().set_or_clear_boot_disk_provisioned_throughput(None::<i32>);Sourcepub fn set_attached_disk_configs<T, V>(self, v: T) -> Self
pub fn set_attached_disk_configs<T, V>(self, v: T) -> Self
Sets the value of attached_disk_configs.
§Example
use google_cloud_dataproc_v1::model::AttachedDiskConfig;
let x = DiskConfig::new()
.set_attached_disk_configs([
AttachedDiskConfig::default()/* use setters */,
AttachedDiskConfig::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for DiskConfig
impl Clone for DiskConfig
Source§fn clone(&self) -> DiskConfig
fn clone(&self) -> DiskConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DiskConfig
impl Debug for DiskConfig
Source§impl Default for DiskConfig
impl Default for DiskConfig
Source§fn default() -> DiskConfig
fn default() -> DiskConfig
Source§impl PartialEq for DiskConfig
impl PartialEq for DiskConfig
impl StructuralPartialEq for DiskConfig
Auto Trait Implementations§
impl Freeze for DiskConfig
impl RefUnwindSafe for DiskConfig
impl Send for DiskConfig
impl Sync for DiskConfig
impl Unpin for DiskConfig
impl UnsafeUnpin for DiskConfig
impl UnwindSafe for DiskConfig
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