pub struct LocalDisk {
pub auto_delete: bool,
pub boot: bool,
pub device_name: String,
pub guest_os_features: Vec<RuntimeGuestOsFeature>,
pub index: i32,
pub initialize_params: Option<LocalDiskInitializeParams>,
pub interface: String,
pub kind: String,
pub licenses: Vec<String>,
pub mode: String,
pub source: String,
pub type: String,
}
Expand description
A Local attached disk resource.
Fields§
§auto_delete: bool
Optional. Output only. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
boot: bool
Optional. Output only. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
device_name: String
Optional. Output only. Specifies a unique device name
of your choice that is reflected into the
/dev/disk/by-id/google-*
tree of a Linux operating system running within
the instance. This name can be used to reference the device for mounting,
resizing, and so on, from within the instance.
If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
guest_os_features: Vec<RuntimeGuestOsFeature>
Output only. Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
index: i32
Output only. A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
initialize_params: Option<LocalDiskInitializeParams>
Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.
This property is mutually exclusive with the source property; you can only define one or the other, but not both.
interface: String
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Valid values:
NVME
SCSI
kind: String
Output only. Type of the resource. Always compute#attachedDisk for attached disks.
licenses: Vec<String>
Output only. Any valid publicly visible licenses.
mode: String
The mode in which to attach this disk, either READ_WRITE
or READ_ONLY
.
If not specified, the default is to attach the disk in READ_WRITE
mode.
Valid values:
READ_ONLY
READ_WRITE
source: String
Specifies a valid partial or full URL to an existing Persistent Disk resource.
type: String
Specifies the type of the disk, either SCRATCH
or PERSISTENT
. If not
specified, the default is PERSISTENT
.
Valid values:
PERSISTENT
SCRATCH
Trait Implementations§
source§impl Message for LocalDisk
impl Message for LocalDisk
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 LocalDisk
impl PartialEq for LocalDisk
impl StructuralPartialEq for LocalDisk
Auto Trait Implementations§
impl Freeze for LocalDisk
impl RefUnwindSafe for LocalDisk
impl Send for LocalDisk
impl Sync for LocalDisk
impl Unpin for LocalDisk
impl UnwindSafe for LocalDisk
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