Struct google_api_proto::google::cloud::netapp::v1::StoragePool
source · pub struct StoragePool {Show 19 fields
pub name: String,
pub service_level: i32,
pub capacity_gib: i64,
pub volume_capacity_gib: i64,
pub volume_count: i32,
pub state: i32,
pub state_details: String,
pub create_time: Option<Timestamp>,
pub description: String,
pub labels: BTreeMap<String, String>,
pub network: String,
pub active_directory: String,
pub kms_config: String,
pub ldap_enabled: bool,
pub psa_range: String,
pub encryption_type: i32,
pub global_access_allowed: Option<bool>,
pub replica_zone: String,
pub zone: String,
}
Expand description
StoragePool is a container for volumes with a service level and capacity. Volumes can be created in a pool of sufficient available capacity. StoragePool capacity is what you are billed for.
Fields§
§name: String
Identifier. Name of the storage pool
service_level: i32
Required. Service level of the storage pool
capacity_gib: i64
Required. Capacity in GIB of the pool
volume_capacity_gib: i64
Output only. Allocated size of all volumes in GIB in the storage pool
volume_count: i32
Output only. Volume count of the storage pool
state: i32
Output only. State of the storage pool
state_details: String
Output only. State details of the storage pool
create_time: Option<Timestamp>
Output only. Create time of the storage pool
description: String
Optional. Description of the storage pool
labels: BTreeMap<String, String>
Optional. Labels as key value pairs
network: String
Required. VPC Network name. Format: projects/{project}/global/networks/{network}
active_directory: String
Optional. Specifies the Active Directory to be used for creating a SMB volume.
kms_config: String
Optional. Specifies the KMS config to be used for volume encryption.
ldap_enabled: bool
Optional. Flag indicating if the pool is NFS LDAP enabled or not.
psa_range: String
Optional. This field is not implemented. The values provided in this field are ignored.
encryption_type: i32
Output only. Specifies the current pool encryption key source.
global_access_allowed: Option<bool>
Deprecated. Used to allow SO pool to access AD or DNS server from other regions.
replica_zone: String
Optional. Specifies the replica zone for regional storagePool.
zone: String
Optional. Specifies the active zone for regional storagePool.
Implementations§
source§impl StoragePool
impl StoragePool
sourcepub fn service_level(&self) -> ServiceLevel
pub fn service_level(&self) -> ServiceLevel
Returns the enum value of service_level
, or the default if the field is set to an invalid enum value.
sourcepub fn set_service_level(&mut self, value: ServiceLevel)
pub fn set_service_level(&mut self, value: ServiceLevel)
Sets service_level
to the provided enum value.
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn encryption_type(&self) -> EncryptionType
pub fn encryption_type(&self) -> EncryptionType
Returns the enum value of encryption_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_encryption_type(&mut self, value: EncryptionType)
pub fn set_encryption_type(&mut self, value: EncryptionType)
Sets encryption_type
to the provided enum value.
sourcepub fn global_access_allowed(&self) -> bool
pub fn global_access_allowed(&self) -> bool
Returns the value of global_access_allowed
, or the default value if global_access_allowed
is unset.
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 moresource§impl Debug for StoragePool
impl Debug for StoragePool
source§impl Default for StoragePool
impl Default for StoragePool
source§impl Message for StoragePool
impl Message for StoragePool
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for StoragePool
impl PartialEq for StoragePool
source§fn eq(&self, other: &StoragePool) -> bool
fn eq(&self, other: &StoragePool) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StoragePool
Auto Trait Implementations§
impl Freeze for StoragePool
impl RefUnwindSafe for StoragePool
impl Send for StoragePool
impl Sync for StoragePool
impl Unpin for StoragePool
impl UnwindSafe for StoragePool
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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