pub struct SavedAttachedDisk {Show 16 fields
pub auto_delete: Option<bool>,
pub boot: Option<bool>,
pub device_name: Option<String>,
pub disk_encryption_key: Option<CustomerEncryptionKey>,
pub disk_size_gb: Option<i64>,
pub disk_type: Option<String>,
pub guest_os_features: Option<Vec<GuestOsFeature>>,
pub index: Option<i32>,
pub interface: Option<String>,
pub kind: Option<String>,
pub licenses: Option<Vec<String>>,
pub mode: Option<String>,
pub source: Option<String>,
pub storage_bytes: Option<i64>,
pub storage_bytes_status: Option<String>,
pub type_: Option<String>,
}
Expand description
DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk resource.
This type is not used in any activity, and only used as part of another schema.
Fields§
§auto_delete: Option<bool>
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
boot: Option<bool>
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
device_name: Option<String>
Specifies the name of the disk attached to the source instance.
disk_encryption_key: Option<CustomerEncryptionKey>
The encryption key for the disk.
disk_size_gb: Option<i64>
The size of the disk in base-2 GB.
disk_type: Option<String>
[Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd
guest_os_features: Option<Vec<GuestOsFeature>>
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: Option<i32>
Specifies zero-based index of the disk that is attached to the source instance.
interface: Option<String>
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
kind: Option<String>
[Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
licenses: Option<Vec<String>>
[Output Only] Any valid publicly visible licenses.
mode: Option<String>
The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.
source: Option<String>
Specifies a URL of the disk attached to the source instance.
storage_bytes: Option<i64>
[Output Only] A size of the storage used by the disk’s snapshot by this machine image.
storage_bytes_status: Option<String>
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
type_: Option<String>
Specifies the type of the attached disk, either SCRATCH or PERSISTENT.
Trait Implementations§
Source§impl Clone for SavedAttachedDisk
impl Clone for SavedAttachedDisk
Source§fn clone(&self) -> SavedAttachedDisk
fn clone(&self) -> SavedAttachedDisk
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SavedAttachedDisk
impl Debug for SavedAttachedDisk
Source§impl Default for SavedAttachedDisk
impl Default for SavedAttachedDisk
Source§fn default() -> SavedAttachedDisk
fn default() -> SavedAttachedDisk
Source§impl<'de> Deserialize<'de> for SavedAttachedDisk
impl<'de> Deserialize<'de> for SavedAttachedDisk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for SavedAttachedDisk
impl Serialize for SavedAttachedDisk
impl Part for SavedAttachedDisk
Auto Trait Implementations§
impl Freeze for SavedAttachedDisk
impl RefUnwindSafe for SavedAttachedDisk
impl Send for SavedAttachedDisk
impl Sync for SavedAttachedDisk
impl Unpin for SavedAttachedDisk
impl UnwindSafe for SavedAttachedDisk
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more