#[non_exhaustive]pub struct SavedDisk {
pub architecture: Option<Architecture>,
pub kind: Option<String>,
pub source_disk: Option<String>,
pub storage_bytes: Option<i64>,
pub storage_bytes_status: Option<StorageBytesStatus>,
/* private fields */
}machine-images only.Expand description
An instance-attached disk resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.architecture: Option<Architecture>Output only. [Output Only] The architecture of the attached disk.
kind: Option<String>Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks.
source_disk: Option<String>Output only. Specifies a URL of the disk attached to the source instance.
storage_bytes: Option<i64>Output only. [Output Only] Size of the individual disk snapshot used by this machine image.
storage_bytes_status: Option<StorageBytesStatus>Output only. [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.
Implementations§
Source§impl SavedDisk
impl SavedDisk
Sourcepub fn set_architecture<T>(self, v: T) -> Selfwhere
T: Into<Architecture>,
pub fn set_architecture<T>(self, v: T) -> Selfwhere
T: Into<Architecture>,
Sets the value of architecture.
§Example
use google_cloud_compute_v1::model::saved_disk::Architecture;
let x0 = SavedDisk::new().set_architecture(Architecture::Arm64);
let x1 = SavedDisk::new().set_architecture(Architecture::X8664);Sourcepub fn set_or_clear_architecture<T>(self, v: Option<T>) -> Selfwhere
T: Into<Architecture>,
pub fn set_or_clear_architecture<T>(self, v: Option<T>) -> Selfwhere
T: Into<Architecture>,
Sets or clears the value of architecture.
§Example
use google_cloud_compute_v1::model::saved_disk::Architecture;
let x0 = SavedDisk::new().set_or_clear_architecture(Some(Architecture::Arm64));
let x1 = SavedDisk::new().set_or_clear_architecture(Some(Architecture::X8664));
let x_none = SavedDisk::new().set_or_clear_architecture(None::<Architecture>);Sourcepub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
Sourcepub fn set_source_disk<T>(self, v: T) -> Self
pub fn set_source_disk<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_source_disk<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_source_disk<T>(self, v: Option<T>) -> Self
Sets or clears the value of source_disk.
§Example
let x = SavedDisk::new().set_or_clear_source_disk(Some("example"));
let x = SavedDisk::new().set_or_clear_source_disk(None::<String>);Sourcepub fn set_storage_bytes<T>(self, v: T) -> Self
pub fn set_storage_bytes<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_storage_bytes<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_storage_bytes<T>(self, v: Option<T>) -> Self
Sets or clears the value of storage_bytes.
§Example
let x = SavedDisk::new().set_or_clear_storage_bytes(Some(42));
let x = SavedDisk::new().set_or_clear_storage_bytes(None::<i32>);Sourcepub fn set_storage_bytes_status<T>(self, v: T) -> Selfwhere
T: Into<StorageBytesStatus>,
pub fn set_storage_bytes_status<T>(self, v: T) -> Selfwhere
T: Into<StorageBytesStatus>,
Sets the value of storage_bytes_status.
§Example
use google_cloud_compute_v1::model::saved_disk::StorageBytesStatus;
let x0 = SavedDisk::new().set_storage_bytes_status(StorageBytesStatus::UpToDate);Sourcepub fn set_or_clear_storage_bytes_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<StorageBytesStatus>,
pub fn set_or_clear_storage_bytes_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<StorageBytesStatus>,
Sets or clears the value of storage_bytes_status.
§Example
use google_cloud_compute_v1::model::saved_disk::StorageBytesStatus;
let x0 = SavedDisk::new().set_or_clear_storage_bytes_status(Some(StorageBytesStatus::UpToDate));
let x_none = SavedDisk::new().set_or_clear_storage_bytes_status(None::<StorageBytesStatus>);Trait Implementations§
impl StructuralPartialEq for SavedDisk
Auto Trait Implementations§
impl Freeze for SavedDisk
impl RefUnwindSafe for SavedDisk
impl Send for SavedDisk
impl Sync for SavedDisk
impl Unpin for SavedDisk
impl UnsafeUnpin for SavedDisk
impl UnwindSafe for SavedDisk
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> 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