#[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
pub fn new() -> Self
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more