pub struct Volume {Show 36 fields
pub name: String,
pub state: i32,
pub state_details: String,
pub create_time: Option<Timestamp>,
pub share_name: String,
pub psa_range: String,
pub storage_pool: String,
pub network: String,
pub service_level: i32,
pub capacity_gib: i64,
pub export_policy: Option<ExportPolicy>,
pub protocols: Vec<i32>,
pub smb_settings: Vec<i32>,
pub mount_options: Vec<MountOption>,
pub unix_permissions: String,
pub labels: BTreeMap<String, String>,
pub description: String,
pub snapshot_policy: Option<SnapshotPolicy>,
pub snap_reserve: f64,
pub snapshot_directory: bool,
pub used_gib: i64,
pub security_style: i32,
pub kerberos_enabled: bool,
pub ldap_enabled: bool,
pub active_directory: String,
pub restore_parameters: Option<RestoreParameters>,
pub kms_config: String,
pub encryption_type: i32,
pub has_replication: bool,
pub backup_config: Option<BackupConfig>,
pub restricted_actions: Vec<i32>,
pub large_capacity: bool,
pub multiple_endpoints: bool,
pub tiering_policy: Option<TieringPolicy>,
pub replica_zone: String,
pub zone: String,
}
Expand description
Volume provides a filesystem that you can mount.
Fields§
§name: String
Identifier. Name of the volume
state: i32
Output only. State of the volume
state_details: String
Output only. State details of the volume
create_time: Option<Timestamp>
Output only. Create time of the volume
Required. Share name of the volume
psa_range: String
Output only. This field is not implemented. The values provided in this field are ignored.
storage_pool: String
Required. StoragePool name of the volume
network: String
Output only. VPC Network name. Format: projects/{project}/global/networks/{network}
service_level: i32
Output only. Service level of the volume
capacity_gib: i64
Required. Capacity in GIB of the volume
export_policy: Option<ExportPolicy>
Optional. Export policy of the volume
protocols: Vec<i32>
Required. Protocols required for the volume
smb_settings: Vec<i32>
Optional. SMB share settings for the volume.
mount_options: Vec<MountOption>
Output only. Mount options of this volume
unix_permissions: String
Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only.
labels: BTreeMap<String, String>
Optional. Labels as key value pairs
description: String
Optional. Description of the volume
snapshot_policy: Option<SnapshotPolicy>
Optional. SnapshotPolicy for a volume.
snap_reserve: f64
Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent.
snapshot_directory: bool
Optional. Snapshot_directory if enabled (true) the volume will contain a read-only .snapshot directory which provides access to each of the volume’s snapshots.
used_gib: i64
Output only. Used capacity in GIB of the volume. This is computed periodically and it does not represent the realtime usage.
security_style: i32
Optional. Security Style of the Volume
kerberos_enabled: bool
Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p).
ldap_enabled: bool
Output only. Flag indicating if the volume is NFS LDAP enabled or not.
active_directory: String
Output only. Specifies the ActiveDirectory name of a SMB volume.
restore_parameters: Option<RestoreParameters>
Optional. Specifies the source of the volume to be created from.
kms_config: String
Output only. Specifies the KMS config to be used for volume encryption.
encryption_type: i32
Output only. Specified the current volume encryption key source.
has_replication: bool
Output only. Indicates whether the volume is part of a replication relationship.
backup_config: Option<BackupConfig>
BackupConfig of the volume.
restricted_actions: Vec<i32>
Optional. List of actions that are restricted on this volume.
large_capacity: bool
Optional. Flag indicating if the volume will be a large capacity volume or a regular volume.
multiple_endpoints: bool
Optional. Flag indicating if the volume will have an IP address per node for volumes supporting multiple IP endpoints. Only the volume with large_capacity will be allowed to have multiple endpoints.
tiering_policy: Option<TieringPolicy>
Tiering policy for the volume.
replica_zone: String
Output only. Specifies the replica zone for regional volume.
zone: String
Output only. Specifies the active zone for regional volume.
Implementations§
source§impl Volume
impl Volume
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 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 protocols(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Protocols>>
pub fn protocols( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Protocols>>
Returns an iterator which yields the valid enum values contained in protocols
.
sourcepub fn push_protocols(&mut self, value: Protocols)
pub fn push_protocols(&mut self, value: Protocols)
Appends the provided enum value to protocols
.
sourcepub fn smb_settings(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<SmbSettings>>
pub fn smb_settings( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<SmbSettings>>
Returns an iterator which yields the valid enum values contained in smb_settings
.
sourcepub fn push_smb_settings(&mut self, value: SmbSettings)
pub fn push_smb_settings(&mut self, value: SmbSettings)
Appends the provided enum value to smb_settings
.
sourcepub fn security_style(&self) -> SecurityStyle
pub fn security_style(&self) -> SecurityStyle
Returns the enum value of security_style
, or the default if the field is set to an invalid enum value.
sourcepub fn set_security_style(&mut self, value: SecurityStyle)
pub fn set_security_style(&mut self, value: SecurityStyle)
Sets security_style
to the provided 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 restricted_actions(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<RestrictedAction>>
pub fn restricted_actions( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<RestrictedAction>>
Returns an iterator which yields the valid enum values contained in restricted_actions
.
sourcepub fn push_restricted_actions(&mut self, value: RestrictedAction)
pub fn push_restricted_actions(&mut self, value: RestrictedAction)
Appends the provided enum value to restricted_actions
.
Trait Implementations§
source§impl Message for Volume
impl Message for Volume
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 Volume
impl PartialEq for Volume
impl StructuralPartialEq for Volume
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnwindSafe for Volume
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