Struct google_api_proto::google::cloud::netapp::v1::Volume

source ·
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

§share_name: String

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

source

pub fn state(&self) -> State

Returns the enum value of state, or the default if the field is set to an invalid enum value.

source

pub fn set_state(&mut self, value: State)

Sets state to the provided enum value.

source

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.

source

pub fn set_service_level(&mut self, value: ServiceLevel)

Sets service_level to the provided enum value.

source

pub fn protocols( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Protocols>>

Returns an iterator which yields the valid enum values contained in protocols.

source

pub fn push_protocols(&mut self, value: Protocols)

Appends the provided enum value to protocols.

source

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.

source

pub fn push_smb_settings(&mut self, value: SmbSettings)

Appends the provided enum value to smb_settings.

source

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.

source

pub fn set_security_style(&mut self, value: SecurityStyle)

Sets security_style to the provided enum value.

source

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.

source

pub fn set_encryption_type(&mut self, value: EncryptionType)

Sets encryption_type to the provided enum value.

source

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.

source

pub fn push_restricted_actions(&mut self, value: RestrictedAction)

Appends the provided enum value to restricted_actions.

Trait Implementations§

source§

impl Clone for Volume

source§

fn clone(&self) -> Volume

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Volume

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Volume

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Message for Volume

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for Volume

source§

fn eq(&self, other: &Volume) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more