NetApp

Struct NetApp 

Source
pub struct NetApp { /* private fields */ }
Expand description

Implements a client for the NetApp API.

§Example

let client = NetApp::builder().build().await?;
// use `client` to make requests to the NetApp API.

§Service Description

NetApp Files Google Cloud Service

§Configuration

To configure NetApp use the with_* methods in the type returned by builder(). The default configuration should work for most applications. Common configuration changes include

  • with_endpoint(): by default this client uses the global default endpoint (https://netapp.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default.
  • with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.

§Pooling and Cloning

NetApp holds a connection pool internally, it is advised to create one and the reuse it. You do not need to wrap NetApp in an Rc or Arc to reuse it, because it already uses an Arc internally.

Implementations§

Source§

impl NetApp

Source

pub fn builder() -> ClientBuilder

Returns a builder for NetApp.

let client = NetApp::builder().build().await?;
Source

pub fn from_stub<T>(stub: T) -> Self
where T: NetApp + 'static,

Creates a new client from the provided stub.

The most common case for calling this function is in tests mocking the client’s behavior.

Source

pub fn list_storage_pools(&self) -> ListStoragePools

Returns descriptions of all storage pools owned by the caller.

Source

pub fn create_storage_pool(&self) -> CreateStoragePool

Creates a new storage pool.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn get_storage_pool(&self) -> GetStoragePool

Returns the description of the specified storage pool by poolId.

Source

pub fn update_storage_pool(&self) -> UpdateStoragePool

Updates the storage pool properties with the full spec

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn delete_storage_pool(&self) -> DeleteStoragePool

Warning! This operation will permanently delete the storage pool.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn validate_directory_service(&self) -> ValidateDirectoryService

ValidateDirectoryService does a connectivity check for a directory service policy attached to the storage pool.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn switch_active_replica_zone(&self) -> SwitchActiveReplicaZone

This operation will switch the active/replica zone for a regional storagePool.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn list_volumes(&self) -> ListVolumes

Lists Volumes in a given project.

Source

pub fn get_volume(&self) -> GetVolume

Gets details of a single Volume.

Source

pub fn create_volume(&self) -> CreateVolume

Creates a new Volume in a given project and location.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn update_volume(&self) -> UpdateVolume

Updates the parameters of a single Volume.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn delete_volume(&self) -> DeleteVolume

Deletes a single Volume.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn revert_volume(&self) -> RevertVolume

Revert an existing volume to a specified snapshot. Warning! This operation will permanently revert all changes made after the snapshot was created.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn list_snapshots(&self) -> ListSnapshots

Returns descriptions of all snapshots for a volume.

Source

pub fn get_snapshot(&self) -> GetSnapshot

Describe a snapshot for a volume.

Source

pub fn create_snapshot(&self) -> CreateSnapshot

Create a new snapshot for a volume.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn delete_snapshot(&self) -> DeleteSnapshot

Deletes a snapshot.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn update_snapshot(&self) -> UpdateSnapshot

Updates the settings of a specific snapshot.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn list_active_directories(&self) -> ListActiveDirectories

Lists active directories.

Source

pub fn get_active_directory(&self) -> GetActiveDirectory

Describes a specified active directory.

Source

pub fn create_active_directory(&self) -> CreateActiveDirectory

CreateActiveDirectory Creates the active directory specified in the request.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn update_active_directory(&self) -> UpdateActiveDirectory

Update the parameters of an active directories.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn delete_active_directory(&self) -> DeleteActiveDirectory

Delete the active directory specified in the request.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn list_kms_configs(&self) -> ListKmsConfigs

Returns descriptions of all KMS configs owned by the caller.

Source

pub fn create_kms_config(&self) -> CreateKmsConfig

Creates a new KMS config.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn get_kms_config(&self) -> GetKmsConfig

Returns the description of the specified KMS config by kms_config_id.

Source

pub fn update_kms_config(&self) -> UpdateKmsConfig

Updates the Kms config properties with the full spec

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn encrypt_volumes(&self) -> EncryptVolumes

Encrypt the existing volumes without CMEK encryption with the desired the KMS config for the whole region.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn verify_kms_config(&self) -> VerifyKmsConfig

Verifies KMS config reachability.

Source

pub fn delete_kms_config(&self) -> DeleteKmsConfig

Warning! This operation will permanently delete the Kms config.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn list_replications(&self) -> ListReplications

Returns descriptions of all replications for a volume.

Source

pub fn get_replication(&self) -> GetReplication

Describe a replication for a volume.

Source

pub fn create_replication(&self) -> CreateReplication

Create a new replication for a volume.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn delete_replication(&self) -> DeleteReplication

Deletes a replication.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn update_replication(&self) -> UpdateReplication

Updates the settings of a specific replication.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn stop_replication(&self) -> StopReplication

Stop Cross Region Replication.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn resume_replication(&self) -> ResumeReplication

Resume Cross Region Replication.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn reverse_replication_direction(&self) -> ReverseReplicationDirection

Reverses direction of replication. Source becomes destination and destination becomes source.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn establish_peering(&self) -> EstablishPeering

Establish replication peering.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn sync_replication(&self) -> SyncReplication

Syncs the replication. This will invoke one time volume data transfer from source to destination.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn create_backup_vault(&self) -> CreateBackupVault

Creates new backup vault

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn get_backup_vault(&self) -> GetBackupVault

Returns the description of the specified backup vault

Source

pub fn list_backup_vaults(&self) -> ListBackupVaults

Returns list of all available backup vaults.

Source

pub fn update_backup_vault(&self) -> UpdateBackupVault

Updates the settings of a specific backup vault.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn delete_backup_vault(&self) -> DeleteBackupVault

Warning! This operation will permanently delete the backup vault.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn create_backup(&self) -> CreateBackup

Creates a backup from the volume specified in the request The backup can be created from the given snapshot if specified in the request. If no snapshot specified, there’ll be a new snapshot taken to initiate the backup creation.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn get_backup(&self) -> GetBackup

Returns the description of the specified backup

Source

pub fn list_backups(&self) -> ListBackups

Returns descriptions of all backups for a backupVault.

Source

pub fn delete_backup(&self) -> DeleteBackup

Warning! This operation will permanently delete the backup.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn update_backup(&self) -> UpdateBackup

Update backup with full spec.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn create_backup_policy(&self) -> CreateBackupPolicy

Creates new backup policy

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn get_backup_policy(&self) -> GetBackupPolicy

Returns the description of the specified backup policy by backup_policy_id.

Source

pub fn list_backup_policies(&self) -> ListBackupPolicies

Returns list of all available backup policies.

Source

pub fn update_backup_policy(&self) -> UpdateBackupPolicy

Updates settings of a specific backup policy.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn delete_backup_policy(&self) -> DeleteBackupPolicy

Warning! This operation will permanently delete the backup policy.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn list_quota_rules(&self) -> ListQuotaRules

Returns list of all quota rules in a location.

Source

pub fn get_quota_rule(&self) -> GetQuotaRule

Returns details of the specified quota rule.

Source

pub fn create_quota_rule(&self) -> CreateQuotaRule

Creates a new quota rule.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn update_quota_rule(&self) -> UpdateQuotaRule

Updates a quota rule.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn delete_quota_rule(&self) -> DeleteQuotaRule

Deletes a quota rule.

§Long running operations

This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.

Source

pub fn list_locations(&self) -> ListLocations

Lists information about the supported locations for this service.

Source

pub fn get_location(&self) -> GetLocation

Gets information about a location.

Source

pub fn list_operations(&self) -> ListOperations

Provides the Operations service functionality in this service.

Source

pub fn get_operation(&self) -> GetOperation

Provides the Operations service functionality in this service.

Source

pub fn delete_operation(&self) -> DeleteOperation

Provides the Operations service functionality in this service.

Source

pub fn cancel_operation(&self) -> CancelOperation

Provides the Operations service functionality in this service.

Trait Implementations§

Source§

impl Clone for NetApp

Source§

fn clone(&self) -> NetApp

Returns a duplicate 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 NetApp

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for NetApp

§

impl !RefUnwindSafe for NetApp

§

impl Send for NetApp

§

impl Sync for NetApp

§

impl Unpin for NetApp

§

impl !UnwindSafe for NetApp

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

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

Source§

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>,

Source§

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>,

Source§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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