#[non_exhaustive]pub struct BootDisk {
pub disk_size_gb: i64,
pub disk_type: DiskType,
pub disk_encryption: DiskEncryption,
pub kms_key: String,
/* private fields */
}Expand description
The definition of a boot disk.
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_size_gb: i64Optional. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). If not specified, this defaults to the recommended value of 150GB.
disk_type: DiskTypeOptional. Indicates the type of the disk.
disk_encryption: DiskEncryptionOptional. Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
kms_key: StringOptional. Input only. The KMS key used to encrypt the disks, only
applicable if disk_encryption is CMEK. Format:
projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}
Learn more about using your own encryption keys.
Implementations§
Source§impl BootDisk
impl BootDisk
pub fn new() -> Self
Sourcepub fn set_disk_size_gb<T: Into<i64>>(self, v: T) -> Self
pub fn set_disk_size_gb<T: Into<i64>>(self, v: T) -> Self
Sets the value of disk_size_gb.
Sourcepub fn set_disk_type<T: Into<DiskType>>(self, v: T) -> Self
pub fn set_disk_type<T: Into<DiskType>>(self, v: T) -> Self
Sets the value of disk_type.
Sourcepub fn set_disk_encryption<T: Into<DiskEncryption>>(self, v: T) -> Self
pub fn set_disk_encryption<T: Into<DiskEncryption>>(self, v: T) -> Self
Sets the value of disk_encryption.
Sourcepub fn set_kms_key<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key.
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