pub struct BootDisk {
pub disk_size_gb: i64,
pub disk_type: i32,
pub disk_encryption: i32,
pub kms_key: String,
}
Expand description
The definition of a boot disk.
Fields§
§disk_size_gb: i64
Optional. 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: i32
Optional. Indicates the type of the disk.
disk_encryption: i32
Optional. Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
kms_key: String
Optional. 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
sourcepub fn disk_type(&self) -> DiskType
pub fn disk_type(&self) -> DiskType
Returns the enum value of disk_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_disk_type(&mut self, value: DiskType)
pub fn set_disk_type(&mut self, value: DiskType)
Sets disk_type
to the provided enum value.
sourcepub fn disk_encryption(&self) -> DiskEncryption
pub fn disk_encryption(&self) -> DiskEncryption
Returns the enum value of disk_encryption
, or the default if the field is set to an invalid enum value.
sourcepub fn set_disk_encryption(&mut self, value: DiskEncryption)
pub fn set_disk_encryption(&mut self, value: DiskEncryption)
Sets disk_encryption
to the provided enum value.
Trait Implementations§
source§impl Message for BootDisk
impl Message for BootDisk
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for BootDisk
impl PartialEq for BootDisk
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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