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
impl NetApp
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for NetApp.
let client = NetApp::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: NetApp + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
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.
Sourcepub fn list_storage_pools(&self) -> ListStoragePools
pub fn list_storage_pools(&self) -> ListStoragePools
Returns descriptions of all storage pools owned by the caller.
Sourcepub fn create_storage_pool(&self) -> CreateStoragePool
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.
Sourcepub fn get_storage_pool(&self) -> GetStoragePool
pub fn get_storage_pool(&self) -> GetStoragePool
Returns the description of the specified storage pool by poolId.
Sourcepub fn update_storage_pool(&self) -> UpdateStoragePool
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.
Sourcepub fn delete_storage_pool(&self) -> DeleteStoragePool
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.
Sourcepub fn validate_directory_service(&self) -> ValidateDirectoryService
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.
Sourcepub fn switch_active_replica_zone(&self) -> SwitchActiveReplicaZone
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.
Sourcepub fn list_volumes(&self) -> ListVolumes
pub fn list_volumes(&self) -> ListVolumes
Lists Volumes in a given project.
Sourcepub fn get_volume(&self) -> GetVolume
pub fn get_volume(&self) -> GetVolume
Gets details of a single Volume.
Sourcepub fn create_volume(&self) -> CreateVolume
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.
Sourcepub fn update_volume(&self) -> UpdateVolume
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.
Sourcepub fn delete_volume(&self) -> DeleteVolume
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.
Sourcepub fn revert_volume(&self) -> RevertVolume
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.
Sourcepub fn list_snapshots(&self) -> ListSnapshots
pub fn list_snapshots(&self) -> ListSnapshots
Returns descriptions of all snapshots for a volume.
Sourcepub fn get_snapshot(&self) -> GetSnapshot
pub fn get_snapshot(&self) -> GetSnapshot
Describe a snapshot for a volume.
Sourcepub fn create_snapshot(&self) -> CreateSnapshot
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.
Sourcepub fn delete_snapshot(&self) -> DeleteSnapshot
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.
Sourcepub fn update_snapshot(&self) -> UpdateSnapshot
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.
Sourcepub fn list_active_directories(&self) -> ListActiveDirectories
pub fn list_active_directories(&self) -> ListActiveDirectories
Lists active directories.
Sourcepub fn get_active_directory(&self) -> GetActiveDirectory
pub fn get_active_directory(&self) -> GetActiveDirectory
Describes a specified active directory.
Sourcepub fn create_active_directory(&self) -> CreateActiveDirectory
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.
Sourcepub fn update_active_directory(&self) -> UpdateActiveDirectory
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.
Sourcepub fn delete_active_directory(&self) -> DeleteActiveDirectory
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.
Sourcepub fn list_kms_configs(&self) -> ListKmsConfigs
pub fn list_kms_configs(&self) -> ListKmsConfigs
Returns descriptions of all KMS configs owned by the caller.
Sourcepub fn create_kms_config(&self) -> CreateKmsConfig
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.
Sourcepub fn get_kms_config(&self) -> GetKmsConfig
pub fn get_kms_config(&self) -> GetKmsConfig
Returns the description of the specified KMS config by kms_config_id.
Sourcepub fn update_kms_config(&self) -> UpdateKmsConfig
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.
Sourcepub fn encrypt_volumes(&self) -> EncryptVolumes
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.
Sourcepub fn verify_kms_config(&self) -> VerifyKmsConfig
pub fn verify_kms_config(&self) -> VerifyKmsConfig
Verifies KMS config reachability.
Sourcepub fn delete_kms_config(&self) -> DeleteKmsConfig
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.
Sourcepub fn list_replications(&self) -> ListReplications
pub fn list_replications(&self) -> ListReplications
Returns descriptions of all replications for a volume.
Sourcepub fn get_replication(&self) -> GetReplication
pub fn get_replication(&self) -> GetReplication
Describe a replication for a volume.
Sourcepub fn create_replication(&self) -> CreateReplication
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.
Sourcepub fn delete_replication(&self) -> DeleteReplication
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.
Sourcepub fn update_replication(&self) -> UpdateReplication
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.
Sourcepub fn stop_replication(&self) -> StopReplication
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.
Sourcepub fn resume_replication(&self) -> ResumeReplication
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.
Sourcepub fn reverse_replication_direction(&self) -> ReverseReplicationDirection
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.
Sourcepub fn establish_peering(&self) -> EstablishPeering
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.
Sourcepub fn sync_replication(&self) -> SyncReplication
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.
Sourcepub fn create_backup_vault(&self) -> CreateBackupVault
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.
Sourcepub fn get_backup_vault(&self) -> GetBackupVault
pub fn get_backup_vault(&self) -> GetBackupVault
Returns the description of the specified backup vault
Sourcepub fn list_backup_vaults(&self) -> ListBackupVaults
pub fn list_backup_vaults(&self) -> ListBackupVaults
Returns list of all available backup vaults.
Sourcepub fn update_backup_vault(&self) -> UpdateBackupVault
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.
Sourcepub fn delete_backup_vault(&self) -> DeleteBackupVault
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.
Sourcepub fn create_backup(&self) -> CreateBackup
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.
Sourcepub fn get_backup(&self) -> GetBackup
pub fn get_backup(&self) -> GetBackup
Returns the description of the specified backup
Sourcepub fn list_backups(&self) -> ListBackups
pub fn list_backups(&self) -> ListBackups
Returns descriptions of all backups for a backupVault.
Sourcepub fn delete_backup(&self) -> DeleteBackup
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.
Sourcepub fn update_backup(&self) -> UpdateBackup
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.
Sourcepub fn create_backup_policy(&self) -> CreateBackupPolicy
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.
Sourcepub fn get_backup_policy(&self) -> GetBackupPolicy
pub fn get_backup_policy(&self) -> GetBackupPolicy
Returns the description of the specified backup policy by backup_policy_id.
Sourcepub fn list_backup_policies(&self) -> ListBackupPolicies
pub fn list_backup_policies(&self) -> ListBackupPolicies
Returns list of all available backup policies.
Sourcepub fn update_backup_policy(&self) -> UpdateBackupPolicy
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.
Sourcepub fn delete_backup_policy(&self) -> DeleteBackupPolicy
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.
Sourcepub fn list_quota_rules(&self) -> ListQuotaRules
pub fn list_quota_rules(&self) -> ListQuotaRules
Returns list of all quota rules in a location.
Sourcepub fn get_quota_rule(&self) -> GetQuotaRule
pub fn get_quota_rule(&self) -> GetQuotaRule
Returns details of the specified quota rule.
Sourcepub fn create_quota_rule(&self) -> CreateQuotaRule
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.
Sourcepub fn update_quota_rule(&self) -> UpdateQuotaRule
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.
Sourcepub fn delete_quota_rule(&self) -> DeleteQuotaRule
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.
Sourcepub fn list_locations(&self) -> ListLocations
pub fn list_locations(&self) -> ListLocations
Lists information about the supported locations for this service.
Sourcepub fn get_location(&self) -> GetLocation
pub fn get_location(&self) -> GetLocation
Gets information about a location.
Sourcepub fn list_operations(&self) -> ListOperations
pub fn list_operations(&self) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self) -> GetOperation
pub fn get_operation(&self) -> GetOperation
Provides the Operations service functionality in this service.
Sourcepub fn delete_operation(&self) -> DeleteOperation
pub fn delete_operation(&self) -> DeleteOperation
Provides the Operations service functionality in this service.
Sourcepub fn cancel_operation(&self) -> CancelOperation
pub fn cancel_operation(&self) -> CancelOperation
Provides the Operations service functionality in this service.