#[non_exhaustive]
pub struct UpdateOntapVolumeConfiguration { pub junction_path: Option<String>, pub security_style: Option<SecurityStyle>, pub size_in_megabytes: Option<i32>, pub storage_efficiency_enabled: Option<bool>, pub tiering_policy: Option<TieringPolicy>, pub snapshot_policy: Option<String>, pub copy_tags_to_backups: Option<bool>, pub snaplock_configuration: Option<UpdateSnaplockConfiguration>, pub size_in_bytes: Option<i64>, }
Expand description

Used to specify changes to the ONTAP configuration for the volume you are updating.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§junction_path: Option<String>

Specifies the location in the SVM's namespace where the volume is mounted. The JunctionPath must have a leading forward slash, such as /vol3.

§security_style: Option<SecurityStyle>

The security style for the volume, which can be UNIX, NTFS, or MIXED.

§size_in_megabytes: Option<i32>

Specifies the size of the volume in megabytes.

§storage_efficiency_enabled: Option<bool>

Default is false. Set to true to enable the deduplication, compression, and compaction storage efficiency features on the volume.

§tiering_policy: Option<TieringPolicy>

Update the volume's data tiering policy.

§snapshot_policy: Option<String>

Specifies the snapshot policy for the volume. There are three built-in snapshot policies:

  • default: This is the default policy. A maximum of six hourly snapshots taken five minutes past the hour. A maximum of two daily snapshots taken Monday through Saturday at 10 minutes after midnight. A maximum of two weekly snapshots taken every Sunday at 15 minutes after midnight.

  • default-1weekly: This policy is the same as the default policy except that it only retains one snapshot from the weekly schedule.

  • none: This policy does not take any snapshots. This policy can be assigned to volumes to prevent automatic snapshots from being taken.

You can also provide the name of a custom policy that you created with the ONTAP CLI or REST API.

For more information, see Snapshot policies in the Amazon FSx for NetApp ONTAP User Guide.

§copy_tags_to_backups: Option<bool>

A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to false. If it's set to true, all tags for the volume are copied to all automatic and user-initiated backups where the user doesn't specify tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the volume, regardless of this value.

§snaplock_configuration: Option<UpdateSnaplockConfiguration>

The configuration object for updating the SnapLock configuration of an FSx for ONTAP SnapLock volume.

§size_in_bytes: Option<i64>

The configured size of the volume, in bytes.

Implementations§

source§

impl UpdateOntapVolumeConfiguration

source

pub fn junction_path(&self) -> Option<&str>

Specifies the location in the SVM's namespace where the volume is mounted. The JunctionPath must have a leading forward slash, such as /vol3.

source

pub fn security_style(&self) -> Option<&SecurityStyle>

The security style for the volume, which can be UNIX, NTFS, or MIXED.

source

pub fn size_in_megabytes(&self) -> Option<i32>

Specifies the size of the volume in megabytes.

source

pub fn storage_efficiency_enabled(&self) -> Option<bool>

Default is false. Set to true to enable the deduplication, compression, and compaction storage efficiency features on the volume.

source

pub fn tiering_policy(&self) -> Option<&TieringPolicy>

Update the volume's data tiering policy.

source

pub fn snapshot_policy(&self) -> Option<&str>

Specifies the snapshot policy for the volume. There are three built-in snapshot policies:

  • default: This is the default policy. A maximum of six hourly snapshots taken five minutes past the hour. A maximum of two daily snapshots taken Monday through Saturday at 10 minutes after midnight. A maximum of two weekly snapshots taken every Sunday at 15 minutes after midnight.

  • default-1weekly: This policy is the same as the default policy except that it only retains one snapshot from the weekly schedule.

  • none: This policy does not take any snapshots. This policy can be assigned to volumes to prevent automatic snapshots from being taken.

You can also provide the name of a custom policy that you created with the ONTAP CLI or REST API.

For more information, see Snapshot policies in the Amazon FSx for NetApp ONTAP User Guide.

source

pub fn copy_tags_to_backups(&self) -> Option<bool>

A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to false. If it's set to true, all tags for the volume are copied to all automatic and user-initiated backups where the user doesn't specify tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the volume, regardless of this value.

source

pub fn snaplock_configuration(&self) -> Option<&UpdateSnaplockConfiguration>

The configuration object for updating the SnapLock configuration of an FSx for ONTAP SnapLock volume.

source

pub fn size_in_bytes(&self) -> Option<i64>

The configured size of the volume, in bytes.

source§

impl UpdateOntapVolumeConfiguration

source

pub fn builder() -> UpdateOntapVolumeConfigurationBuilder

Creates a new builder-style object to manufacture UpdateOntapVolumeConfiguration.

Trait Implementations§

source§

impl Clone for UpdateOntapVolumeConfiguration

source§

fn clone(&self) -> UpdateOntapVolumeConfiguration

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 UpdateOntapVolumeConfiguration

source§

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

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

impl PartialEq for UpdateOntapVolumeConfiguration

source§

fn eq(&self, other: &UpdateOntapVolumeConfiguration) -> 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 UpdateOntapVolumeConfiguration

Auto Trait Implementations§

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.

source§

impl<T> Instrument for T

source§

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

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

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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
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.
source§

impl<T> WithSubscriber for T

source§

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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