#[non_exhaustive]pub struct StoragePool {Show 21 fields
pub capacity_provisioning_type: Option<CapacityProvisioningType>,
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub exapool_provisioned_capacity_gb: Option<StoragePoolExapoolProvisionedCapacityGb>,
pub id: Option<u64>,
pub kind: Option<String>,
pub label_fingerprint: Option<Bytes>,
pub labels: HashMap<String, String>,
pub name: Option<String>,
pub params: Option<StoragePoolParams>,
pub performance_provisioning_type: Option<PerformanceProvisioningType>,
pub pool_provisioned_capacity_gb: Option<i64>,
pub pool_provisioned_iops: Option<i64>,
pub pool_provisioned_throughput: Option<i64>,
pub resource_status: Option<StoragePoolResourceStatus>,
pub self_link: Option<String>,
pub self_link_with_id: Option<String>,
pub state: Option<State>,
pub status: Option<StoragePoolResourceStatus>,
pub storage_pool_type: Option<String>,
pub zone: Option<String>,
/* private fields */
}storage-pools only.Expand description
Represents a zonal storage pool 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.capacity_provisioning_type: Option<CapacityProvisioningType>Provisioning type of the byte capacity of the pool.
creation_timestamp: Option<String>Output only. [Output Only] Creation timestamp inRFC3339 text format.
description: Option<String>An optional description of this resource. Provide this property when you create the resource.
exapool_provisioned_capacity_gb: Option<StoragePoolExapoolProvisionedCapacityGb>Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB
id: Option<u64>Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>Output only. [Output Only] Type of the resource. Always compute#storagePool for storage pools.
label_fingerprint: Option<Bytes>A fingerprint for the labels being applied to this storage pool, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error412 conditionNotMet.
To see the latest fingerprint, make a get() request to retrieve a storage pool.
labels: HashMap<String, String>Labels to apply to this storage pool. These can be later modified by the setLabels method.
name: Option<String>Name of the resource. Provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression [a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all
following characters must be a dash, lowercase letter, or digit, except
the last character, which cannot be a dash.
params: Option<StoragePoolParams>Input only. Additional params passed with the request, but not persisted as part of resource payload.
performance_provisioning_type: Option<PerformanceProvisioningType>Provisioning type of the performance-related parameters of the pool, such as throughput and IOPS.
pool_provisioned_capacity_gb: Option<i64>Size of the storage pool in GiB. For more information about the size limits, see https://cloud.google.com/compute/docs/disks/storage-pools.
pool_provisioned_iops: Option<i64>Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk-balanced.
pool_provisioned_throughput: Option<i64>Provisioned throughput of the storage pool in MiB/s. Only relevant if the storage pool type is hyperdisk-balanced or hyperdisk-throughput.
resource_status: Option<StoragePoolResourceStatus>Output only. [Output Only] Status information for the storage pool resource.
self_link: Option<String>Output only. [Output Only] Server-defined fully-qualified URL for this resource.
self_link_with_id: Option<String>Output only. [Output Only] Server-defined URL for this resource’s resource id.
state: Option<State>Output only. [Output Only] The status of storage pool creation.
- CREATING: Storage pool is provisioning.
storagePool.
- FAILED: Storage pool creation failed.
- READY: Storage pool is ready for use.
- DELETING: Storage pool is deleting.status: Option<StoragePoolResourceStatus>Output only. [Output Only] Status information for the storage pool resource.
storage_pool_type: Option<String>Type of the storage pool.
zone: Option<String>Output only. [Output Only] URL of the zone where the storage pool resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
Implementations§
Source§impl StoragePool
impl StoragePool
pub fn new() -> Self
Sourcepub fn set_capacity_provisioning_type<T>(self, v: T) -> Selfwhere
T: Into<CapacityProvisioningType>,
pub fn set_capacity_provisioning_type<T>(self, v: T) -> Selfwhere
T: Into<CapacityProvisioningType>,
Sets the value of capacity_provisioning_type.
§Example
use google_cloud_compute_v1::model::storage_pool::CapacityProvisioningType;
let x0 = StoragePool::new().set_capacity_provisioning_type(CapacityProvisioningType::Standard);
let x1 = StoragePool::new().set_capacity_provisioning_type(CapacityProvisioningType::Unspecified);Sourcepub fn set_or_clear_capacity_provisioning_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<CapacityProvisioningType>,
pub fn set_or_clear_capacity_provisioning_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<CapacityProvisioningType>,
Sets or clears the value of capacity_provisioning_type.
§Example
use google_cloud_compute_v1::model::storage_pool::CapacityProvisioningType;
let x0 = StoragePool::new().set_or_clear_capacity_provisioning_type(Some(CapacityProvisioningType::Standard));
let x1 = StoragePool::new().set_or_clear_capacity_provisioning_type(Some(CapacityProvisioningType::Unspecified));
let x_none = StoragePool::new().set_or_clear_capacity_provisioning_type(None::<CapacityProvisioningType>);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 = StoragePool::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 = StoragePool::new().set_or_clear_creation_timestamp(Some("example"));
let x = StoragePool::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of description.
§Example
let x = StoragePool::new().set_or_clear_description(Some("example"));
let x = StoragePool::new().set_or_clear_description(None::<String>);Sourcepub fn set_exapool_provisioned_capacity_gb<T>(self, v: T) -> Selfwhere
T: Into<StoragePoolExapoolProvisionedCapacityGb>,
pub fn set_exapool_provisioned_capacity_gb<T>(self, v: T) -> Selfwhere
T: Into<StoragePoolExapoolProvisionedCapacityGb>,
Sets the value of exapool_provisioned_capacity_gb.
§Example
use google_cloud_compute_v1::model::StoragePoolExapoolProvisionedCapacityGb;
let x = StoragePool::new().set_exapool_provisioned_capacity_gb(StoragePoolExapoolProvisionedCapacityGb::default()/* use setters */);Sourcepub fn set_or_clear_exapool_provisioned_capacity_gb<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<StoragePoolExapoolProvisionedCapacityGb>,
pub fn set_or_clear_exapool_provisioned_capacity_gb<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<StoragePoolExapoolProvisionedCapacityGb>,
Sets or clears the value of exapool_provisioned_capacity_gb.
§Example
use google_cloud_compute_v1::model::StoragePoolExapoolProvisionedCapacityGb;
let x = StoragePool::new().set_or_clear_exapool_provisioned_capacity_gb(Some(StoragePoolExapoolProvisionedCapacityGb::default()/* use setters */));
let x = StoragePool::new().set_or_clear_exapool_provisioned_capacity_gb(None::<StoragePoolExapoolProvisionedCapacityGb>);Sourcepub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
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_label_fingerprint<T>(self, v: T) -> Self
pub fn set_label_fingerprint<T>(self, v: T) -> Self
Sets the value of label_fingerprint.
§Example
let x = StoragePool::new().set_label_fingerprint(bytes::Bytes::from_static(b"example"));Sourcepub fn set_or_clear_label_fingerprint<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_label_fingerprint<T>(self, v: Option<T>) -> Self
Sets or clears the value of label_fingerprint.
§Example
let x = StoragePool::new().set_or_clear_label_fingerprint(Some(bytes::Bytes::from_static(b"example")));
let x = StoragePool::new().set_or_clear_label_fingerprint(None::<bytes::Bytes>);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: 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_params<T>(self, v: T) -> Selfwhere
T: Into<StoragePoolParams>,
pub fn set_params<T>(self, v: T) -> Selfwhere
T: Into<StoragePoolParams>,
Sourcepub fn set_or_clear_params<T>(self, v: Option<T>) -> Selfwhere
T: Into<StoragePoolParams>,
pub fn set_or_clear_params<T>(self, v: Option<T>) -> Selfwhere
T: Into<StoragePoolParams>,
Sourcepub fn set_performance_provisioning_type<T>(self, v: T) -> Selfwhere
T: Into<PerformanceProvisioningType>,
pub fn set_performance_provisioning_type<T>(self, v: T) -> Selfwhere
T: Into<PerformanceProvisioningType>,
Sets the value of performance_provisioning_type.
§Example
use google_cloud_compute_v1::model::storage_pool::PerformanceProvisioningType;
let x0 = StoragePool::new().set_performance_provisioning_type(PerformanceProvisioningType::Standard);
let x1 = StoragePool::new().set_performance_provisioning_type(PerformanceProvisioningType::Unspecified);Sourcepub fn set_or_clear_performance_provisioning_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<PerformanceProvisioningType>,
pub fn set_or_clear_performance_provisioning_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<PerformanceProvisioningType>,
Sets or clears the value of performance_provisioning_type.
§Example
use google_cloud_compute_v1::model::storage_pool::PerformanceProvisioningType;
let x0 = StoragePool::new().set_or_clear_performance_provisioning_type(Some(PerformanceProvisioningType::Standard));
let x1 = StoragePool::new().set_or_clear_performance_provisioning_type(Some(PerformanceProvisioningType::Unspecified));
let x_none = StoragePool::new().set_or_clear_performance_provisioning_type(None::<PerformanceProvisioningType>);Sourcepub fn set_pool_provisioned_capacity_gb<T>(self, v: T) -> Self
pub fn set_pool_provisioned_capacity_gb<T>(self, v: T) -> Self
Sets the value of pool_provisioned_capacity_gb.
§Example
let x = StoragePool::new().set_pool_provisioned_capacity_gb(42);Sourcepub fn set_or_clear_pool_provisioned_capacity_gb<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_pool_provisioned_capacity_gb<T>(self, v: Option<T>) -> Self
Sets or clears the value of pool_provisioned_capacity_gb.
§Example
let x = StoragePool::new().set_or_clear_pool_provisioned_capacity_gb(Some(42));
let x = StoragePool::new().set_or_clear_pool_provisioned_capacity_gb(None::<i32>);Sourcepub fn set_pool_provisioned_iops<T>(self, v: T) -> Self
pub fn set_pool_provisioned_iops<T>(self, v: T) -> Self
Sets the value of pool_provisioned_iops.
§Example
let x = StoragePool::new().set_pool_provisioned_iops(42);Sourcepub fn set_or_clear_pool_provisioned_iops<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_pool_provisioned_iops<T>(self, v: Option<T>) -> Self
Sets or clears the value of pool_provisioned_iops.
§Example
let x = StoragePool::new().set_or_clear_pool_provisioned_iops(Some(42));
let x = StoragePool::new().set_or_clear_pool_provisioned_iops(None::<i32>);Sourcepub fn set_pool_provisioned_throughput<T>(self, v: T) -> Self
pub fn set_pool_provisioned_throughput<T>(self, v: T) -> Self
Sets the value of pool_provisioned_throughput.
§Example
let x = StoragePool::new().set_pool_provisioned_throughput(42);Sourcepub fn set_or_clear_pool_provisioned_throughput<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_pool_provisioned_throughput<T>(self, v: Option<T>) -> Self
Sets or clears the value of pool_provisioned_throughput.
§Example
let x = StoragePool::new().set_or_clear_pool_provisioned_throughput(Some(42));
let x = StoragePool::new().set_or_clear_pool_provisioned_throughput(None::<i32>);Sourcepub fn set_resource_status<T>(self, v: T) -> Selfwhere
T: Into<StoragePoolResourceStatus>,
pub fn set_resource_status<T>(self, v: T) -> Selfwhere
T: Into<StoragePoolResourceStatus>,
Sets the value of resource_status.
§Example
use google_cloud_compute_v1::model::StoragePoolResourceStatus;
let x = StoragePool::new().set_resource_status(StoragePoolResourceStatus::default()/* use setters */);Sourcepub fn set_or_clear_resource_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<StoragePoolResourceStatus>,
pub fn set_or_clear_resource_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<StoragePoolResourceStatus>,
Sets or clears the value of resource_status.
§Example
use google_cloud_compute_v1::model::StoragePoolResourceStatus;
let x = StoragePool::new().set_or_clear_resource_status(Some(StoragePoolResourceStatus::default()/* use setters */));
let x = StoragePool::new().set_or_clear_resource_status(None::<StoragePoolResourceStatus>);Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
Sourcepub fn set_self_link_with_id<T>(self, v: T) -> Self
pub fn set_self_link_with_id<T>(self, v: T) -> Self
Sets the value of self_link_with_id.
§Example
let x = StoragePool::new().set_self_link_with_id("example");Sourcepub fn set_or_clear_self_link_with_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link_with_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of self_link_with_id.
§Example
let x = StoragePool::new().set_or_clear_self_link_with_id(Some("example"));
let x = StoragePool::new().set_or_clear_self_link_with_id(None::<String>);Sourcepub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
Sets or clears the value of state.
§Example
use google_cloud_compute_v1::model::storage_pool::State;
let x0 = StoragePool::new().set_or_clear_state(Some(State::Deleting));
let x1 = StoragePool::new().set_or_clear_state(Some(State::Failed));
let x2 = StoragePool::new().set_or_clear_state(Some(State::Ready));
let x_none = StoragePool::new().set_or_clear_state(None::<State>);Sourcepub fn set_status<T>(self, v: T) -> Selfwhere
T: Into<StoragePoolResourceStatus>,
pub fn set_status<T>(self, v: T) -> Selfwhere
T: Into<StoragePoolResourceStatus>,
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<StoragePoolResourceStatus>,
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<StoragePoolResourceStatus>,
Sets or clears the value of status.
§Example
use google_cloud_compute_v1::model::StoragePoolResourceStatus;
let x = StoragePool::new().set_or_clear_status(Some(StoragePoolResourceStatus::default()/* use setters */));
let x = StoragePool::new().set_or_clear_status(None::<StoragePoolResourceStatus>);Sourcepub fn set_storage_pool_type<T>(self, v: T) -> Self
pub fn set_storage_pool_type<T>(self, v: T) -> Self
Sets the value of storage_pool_type.
§Example
let x = StoragePool::new().set_storage_pool_type("example");Sourcepub fn set_or_clear_storage_pool_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_storage_pool_type<T>(self, v: Option<T>) -> Self
Sets or clears the value of storage_pool_type.
§Example
let x = StoragePool::new().set_or_clear_storage_pool_type(Some("example"));
let x = StoragePool::new().set_or_clear_storage_pool_type(None::<String>);Trait Implementations§
Source§impl Clone for StoragePool
impl Clone for StoragePool
Source§fn clone(&self) -> StoragePool
fn clone(&self) -> StoragePool
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more