#[non_exhaustive]pub struct StoragePoolDisk {
pub attached_instances: Vec<String>,
pub creation_timestamp: Option<String>,
pub disk: Option<String>,
pub name: Option<String>,
pub provisioned_iops: Option<i64>,
pub provisioned_throughput: Option<i64>,
pub resource_policies: Vec<String>,
pub size_gb: Option<i64>,
pub status: Option<Status>,
pub type: Option<String>,
pub used_bytes: Option<i64>,
/* private fields */
}storage-pools only.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.attached_instances: Vec<String>Output only. [Output Only] Instances this disk is attached to.
creation_timestamp: Option<String>Output only. [Output Only] Creation timestamp inRFC3339 text format.
disk: Option<String>Output only. [Output Only] The URL of the disk.
name: Option<String>Output only. [Output Only] The name of the disk.
provisioned_iops: Option<i64>Output only. [Output Only] The number of IOPS provisioned for the disk.
provisioned_throughput: Option<i64>Output only. [Output Only] The throughput provisioned for the disk.
resource_policies: Vec<String>Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations.
size_gb: Option<i64>Output only. [Output Only] The disk size, in GB.
status: Option<Status>Output only. [Output Only] The disk status.
type: Option<String>Output only. [Output Only] The disk type.
used_bytes: Option<i64>Output only. [Output Only] Amount of disk space used.
Implementations§
Source§impl StoragePoolDisk
impl StoragePoolDisk
Sourcepub fn set_attached_instances<T, V>(self, v: T) -> Self
pub fn set_attached_instances<T, V>(self, v: T) -> Self
Sets the value of attached_instances.
§Example
let x = StoragePoolDisk::new().set_attached_instances(["a", "b", "c"]);Sourcepub fn set_creation_timestamp<T>(self, v: T) -> Self
pub fn set_creation_timestamp<T>(self, v: T) -> Self
Sets the value of creation_timestamp.
§Example
let x = StoragePoolDisk::new().set_creation_timestamp("example");Sourcepub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of creation_timestamp.
§Example
let x = StoragePoolDisk::new().set_or_clear_creation_timestamp(Some("example"));
let x = StoragePoolDisk::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_or_clear_disk<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_disk<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_provisioned_iops<T>(self, v: T) -> Self
pub fn set_provisioned_iops<T>(self, v: T) -> Self
Sets the value of provisioned_iops.
§Example
let x = StoragePoolDisk::new().set_provisioned_iops(42);Sourcepub fn set_or_clear_provisioned_iops<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_provisioned_iops<T>(self, v: Option<T>) -> Self
Sets or clears the value of provisioned_iops.
§Example
let x = StoragePoolDisk::new().set_or_clear_provisioned_iops(Some(42));
let x = StoragePoolDisk::new().set_or_clear_provisioned_iops(None::<i32>);Sourcepub fn set_provisioned_throughput<T>(self, v: T) -> Self
pub fn set_provisioned_throughput<T>(self, v: T) -> Self
Sets the value of provisioned_throughput.
§Example
let x = StoragePoolDisk::new().set_provisioned_throughput(42);Sourcepub fn set_or_clear_provisioned_throughput<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_provisioned_throughput<T>(self, v: Option<T>) -> Self
Sets or clears the value of provisioned_throughput.
§Example
let x = StoragePoolDisk::new().set_or_clear_provisioned_throughput(Some(42));
let x = StoragePoolDisk::new().set_or_clear_provisioned_throughput(None::<i32>);Sourcepub fn set_resource_policies<T, V>(self, v: T) -> Self
pub fn set_resource_policies<T, V>(self, v: T) -> Self
Sets the value of resource_policies.
§Example
let x = StoragePoolDisk::new().set_resource_policies(["a", "b", "c"]);Sourcepub fn set_size_gb<T>(self, v: T) -> Self
pub fn set_size_gb<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_size_gb<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_size_gb<T>(self, v: Option<T>) -> Self
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Sets or clears the value of status.
§Example
use google_cloud_compute_v1::model::storage_pool_disk::Status;
let x0 = StoragePoolDisk::new().set_or_clear_status(Some(Status::Deleting));
let x1 = StoragePoolDisk::new().set_or_clear_status(Some(Status::Failed));
let x2 = StoragePoolDisk::new().set_or_clear_status(Some(Status::Ready));
let x_none = StoragePoolDisk::new().set_or_clear_status(None::<Status>);Sourcepub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
Sourcepub fn set_used_bytes<T>(self, v: T) -> Self
pub fn set_used_bytes<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_used_bytes<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_used_bytes<T>(self, v: Option<T>) -> Self
Sets or clears the value of used_bytes.
§Example
let x = StoragePoolDisk::new().set_or_clear_used_bytes(Some(42));
let x = StoragePoolDisk::new().set_or_clear_used_bytes(None::<i32>);Trait Implementations§
Source§impl Clone for StoragePoolDisk
impl Clone for StoragePoolDisk
Source§fn clone(&self) -> StoragePoolDisk
fn clone(&self) -> StoragePoolDisk
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StoragePoolDisk
impl Debug for StoragePoolDisk
Source§impl Default for StoragePoolDisk
impl Default for StoragePoolDisk
Source§fn default() -> StoragePoolDisk
fn default() -> StoragePoolDisk
Source§impl Message for StoragePoolDisk
impl Message for StoragePoolDisk
Source§impl PartialEq for StoragePoolDisk
impl PartialEq for StoragePoolDisk
impl StructuralPartialEq for StoragePoolDisk
Auto Trait Implementations§
impl Freeze for StoragePoolDisk
impl RefUnwindSafe for StoragePoolDisk
impl Send for StoragePoolDisk
impl Sync for StoragePoolDisk
impl Unpin for StoragePoolDisk
impl UnsafeUnpin for StoragePoolDisk
impl UnwindSafe for StoragePoolDisk
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