#[non_exhaustive]pub struct BootDisk {
pub disk_type: String,
pub size_gb: i64,
pub provisioned_iops: i64,
pub provisioned_throughput: i64,
/* private fields */
}Expand description
BootDisk specifies the boot disk configuration for nodepools.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.disk_type: StringDisk type of the boot disk. (i.e. Hyperdisk-Balanced, PD-Balanced, etc.)
size_gb: i64Disk size in GB. Replaces NodeConfig.disk_size_gb
provisioned_iops: i64For Hyperdisk-Balanced only, the provisioned IOPS config value.
provisioned_throughput: i64For Hyperdisk-Balanced only, the provisioned throughput config value.
Implementations§
Source§impl BootDisk
impl BootDisk
pub fn new() -> Self
Sourcepub fn set_disk_type<T: Into<String>>(self, v: T) -> Self
pub fn set_disk_type<T: Into<String>>(self, v: T) -> Self
Sets the value of disk_type.
Sourcepub fn set_size_gb<T: Into<i64>>(self, v: T) -> Self
pub fn set_size_gb<T: Into<i64>>(self, v: T) -> Self
Sets the value of size_gb.
Sourcepub fn set_provisioned_iops<T: Into<i64>>(self, v: T) -> Self
pub fn set_provisioned_iops<T: Into<i64>>(self, v: T) -> Self
Sets the value of provisioned_iops.
Sourcepub fn set_provisioned_throughput<T: Into<i64>>(self, v: T) -> Self
pub fn set_provisioned_throughput<T: Into<i64>>(self, v: T) -> Self
Sets the value of provisioned_throughput.
Trait Implementations§
impl StructuralPartialEq for BootDisk
Auto Trait Implementations§
impl Freeze for BootDisk
impl RefUnwindSafe for BootDisk
impl Send for BootDisk
impl Sync for BootDisk
impl Unpin for BootDisk
impl UnwindSafe for BootDisk
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
Mutably borrows from an owned value. Read more