pub struct NetAppClient<T> { /* private fields */ }
Expand description

NetApp Files Google Cloud Service

Implementations§

source§

impl<T> NetAppClient<T>
where T: GrpcService<BoxBody>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,

source

pub fn new(inner: T) -> Self

source

pub fn with_origin(inner: T, origin: Uri) -> Self

source

pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> NetAppClient<InterceptedService<T, F>>
where F: Interceptor, T::ResponseBody: Default, T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>, <T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,

source

pub fn send_compressed(self, encoding: CompressionEncoding) -> Self

Compress requests with the given encoding.

This requires the server to support it otherwise it might respond with an error.

source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

source

pub async fn list_storage_pools( &mut self, request: impl IntoRequest<ListStoragePoolsRequest>, ) -> Result<Response<ListStoragePoolsResponse>, Status>

Returns descriptions of all storage pools owned by the caller.

source

pub async fn create_storage_pool( &mut self, request: impl IntoRequest<CreateStoragePoolRequest>, ) -> Result<Response<Operation>, Status>

Creates a new storage pool.

source

pub async fn get_storage_pool( &mut self, request: impl IntoRequest<GetStoragePoolRequest>, ) -> Result<Response<StoragePool>, Status>

Returns the description of the specified storage pool by poolId.

source

pub async fn update_storage_pool( &mut self, request: impl IntoRequest<UpdateStoragePoolRequest>, ) -> Result<Response<Operation>, Status>

Updates the storage pool properties with the full spec

source

pub async fn delete_storage_pool( &mut self, request: impl IntoRequest<DeleteStoragePoolRequest>, ) -> Result<Response<Operation>, Status>

Warning! This operation will permanently delete the storage pool.

source

pub async fn list_volumes( &mut self, request: impl IntoRequest<ListVolumesRequest>, ) -> Result<Response<ListVolumesResponse>, Status>

Lists Volumes in a given project.

source

pub async fn get_volume( &mut self, request: impl IntoRequest<GetVolumeRequest>, ) -> Result<Response<Volume>, Status>

Gets details of a single Volume.

source

pub async fn create_volume( &mut self, request: impl IntoRequest<CreateVolumeRequest>, ) -> Result<Response<Operation>, Status>

Creates a new Volume in a given project and location.

source

pub async fn update_volume( &mut self, request: impl IntoRequest<UpdateVolumeRequest>, ) -> Result<Response<Operation>, Status>

Updates the parameters of a single Volume.

source

pub async fn delete_volume( &mut self, request: impl IntoRequest<DeleteVolumeRequest>, ) -> Result<Response<Operation>, Status>

Deletes a single Volume.

source

pub async fn revert_volume( &mut self, request: impl IntoRequest<RevertVolumeRequest>, ) -> Result<Response<Operation>, Status>

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

source

pub async fn list_snapshots( &mut self, request: impl IntoRequest<ListSnapshotsRequest>, ) -> Result<Response<ListSnapshotsResponse>, Status>

Returns descriptions of all snapshots for a volume.

source

pub async fn get_snapshot( &mut self, request: impl IntoRequest<GetSnapshotRequest>, ) -> Result<Response<Snapshot>, Status>

Describe a snapshot for a volume.

source

pub async fn create_snapshot( &mut self, request: impl IntoRequest<CreateSnapshotRequest>, ) -> Result<Response<Operation>, Status>

Create a new snapshot for a volume.

source

pub async fn delete_snapshot( &mut self, request: impl IntoRequest<DeleteSnapshotRequest>, ) -> Result<Response<Operation>, Status>

Deletes a snapshot.

source

pub async fn update_snapshot( &mut self, request: impl IntoRequest<UpdateSnapshotRequest>, ) -> Result<Response<Operation>, Status>

Updates the settings of a specific snapshot.

source

pub async fn list_active_directories( &mut self, request: impl IntoRequest<ListActiveDirectoriesRequest>, ) -> Result<Response<ListActiveDirectoriesResponse>, Status>

Lists active directories.

source

pub async fn get_active_directory( &mut self, request: impl IntoRequest<GetActiveDirectoryRequest>, ) -> Result<Response<ActiveDirectory>, Status>

Describes a specified active directory.

source

pub async fn create_active_directory( &mut self, request: impl IntoRequest<CreateActiveDirectoryRequest>, ) -> Result<Response<Operation>, Status>

CreateActiveDirectory Creates the active directory specified in the request.

source

pub async fn update_active_directory( &mut self, request: impl IntoRequest<UpdateActiveDirectoryRequest>, ) -> Result<Response<Operation>, Status>

Update the parameters of an active directories.

source

pub async fn delete_active_directory( &mut self, request: impl IntoRequest<DeleteActiveDirectoryRequest>, ) -> Result<Response<Operation>, Status>

Delete the active directory specified in the request.

source

pub async fn list_kms_configs( &mut self, request: impl IntoRequest<ListKmsConfigsRequest>, ) -> Result<Response<ListKmsConfigsResponse>, Status>

Returns descriptions of all KMS configs owned by the caller.

source

pub async fn create_kms_config( &mut self, request: impl IntoRequest<CreateKmsConfigRequest>, ) -> Result<Response<Operation>, Status>

Creates a new KMS config.

source

pub async fn get_kms_config( &mut self, request: impl IntoRequest<GetKmsConfigRequest>, ) -> Result<Response<KmsConfig>, Status>

Returns the description of the specified KMS config by kms_config_id.

source

pub async fn update_kms_config( &mut self, request: impl IntoRequest<UpdateKmsConfigRequest>, ) -> Result<Response<Operation>, Status>

Updates the Kms config properties with the full spec

source

pub async fn encrypt_volumes( &mut self, request: impl IntoRequest<EncryptVolumesRequest>, ) -> Result<Response<Operation>, Status>

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

source

pub async fn verify_kms_config( &mut self, request: impl IntoRequest<VerifyKmsConfigRequest>, ) -> Result<Response<VerifyKmsConfigResponse>, Status>

Verifies KMS config reachability.

source

pub async fn delete_kms_config( &mut self, request: impl IntoRequest<DeleteKmsConfigRequest>, ) -> Result<Response<Operation>, Status>

Warning! This operation will permanently delete the Kms config.

source

pub async fn list_replications( &mut self, request: impl IntoRequest<ListReplicationsRequest>, ) -> Result<Response<ListReplicationsResponse>, Status>

Returns descriptions of all replications for a volume.

source

pub async fn get_replication( &mut self, request: impl IntoRequest<GetReplicationRequest>, ) -> Result<Response<Replication>, Status>

Describe a replication for a volume.

source

pub async fn create_replication( &mut self, request: impl IntoRequest<CreateReplicationRequest>, ) -> Result<Response<Operation>, Status>

Create a new replication for a volume.

source

pub async fn delete_replication( &mut self, request: impl IntoRequest<DeleteReplicationRequest>, ) -> Result<Response<Operation>, Status>

Deletes a replication.

source

pub async fn update_replication( &mut self, request: impl IntoRequest<UpdateReplicationRequest>, ) -> Result<Response<Operation>, Status>

Updates the settings of a specific replication.

source

pub async fn stop_replication( &mut self, request: impl IntoRequest<StopReplicationRequest>, ) -> Result<Response<Operation>, Status>

Stop Cross Region Replication.

source

pub async fn resume_replication( &mut self, request: impl IntoRequest<ResumeReplicationRequest>, ) -> Result<Response<Operation>, Status>

Resume Cross Region Replication.

source

pub async fn reverse_replication_direction( &mut self, request: impl IntoRequest<ReverseReplicationDirectionRequest>, ) -> Result<Response<Operation>, Status>

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

source

pub async fn create_backup_vault( &mut self, request: impl IntoRequest<CreateBackupVaultRequest>, ) -> Result<Response<Operation>, Status>

Creates new backup vault

source

pub async fn get_backup_vault( &mut self, request: impl IntoRequest<GetBackupVaultRequest>, ) -> Result<Response<BackupVault>, Status>

Returns the description of the specified backup vault

source

pub async fn list_backup_vaults( &mut self, request: impl IntoRequest<ListBackupVaultsRequest>, ) -> Result<Response<ListBackupVaultsResponse>, Status>

Returns list of all available backup vaults.

source

pub async fn update_backup_vault( &mut self, request: impl IntoRequest<UpdateBackupVaultRequest>, ) -> Result<Response<Operation>, Status>

Updates the settings of a specific backup vault.

source

pub async fn delete_backup_vault( &mut self, request: impl IntoRequest<DeleteBackupVaultRequest>, ) -> Result<Response<Operation>, Status>

Warning! This operation will permanently delete the backup vault.

source

pub async fn create_backup( &mut self, request: impl IntoRequest<CreateBackupRequest>, ) -> Result<Response<Operation>, Status>

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.

source

pub async fn get_backup( &mut self, request: impl IntoRequest<GetBackupRequest>, ) -> Result<Response<Backup>, Status>

Returns the description of the specified backup

source

pub async fn list_backups( &mut self, request: impl IntoRequest<ListBackupsRequest>, ) -> Result<Response<ListBackupsResponse>, Status>

Returns descriptions of all backups for a backupVault.

source

pub async fn delete_backup( &mut self, request: impl IntoRequest<DeleteBackupRequest>, ) -> Result<Response<Operation>, Status>

Warning! This operation will permanently delete the backup.

source

pub async fn update_backup( &mut self, request: impl IntoRequest<UpdateBackupRequest>, ) -> Result<Response<Operation>, Status>

Update backup with full spec.

source

pub async fn create_backup_policy( &mut self, request: impl IntoRequest<CreateBackupPolicyRequest>, ) -> Result<Response<Operation>, Status>

Creates new backup policy

source

pub async fn get_backup_policy( &mut self, request: impl IntoRequest<GetBackupPolicyRequest>, ) -> Result<Response<BackupPolicy>, Status>

Returns the description of the specified backup policy by backup_policy_id.

source

pub async fn list_backup_policies( &mut self, request: impl IntoRequest<ListBackupPoliciesRequest>, ) -> Result<Response<ListBackupPoliciesResponse>, Status>

Returns list of all available backup policies.

source

pub async fn update_backup_policy( &mut self, request: impl IntoRequest<UpdateBackupPolicyRequest>, ) -> Result<Response<Operation>, Status>

Updates settings of a specific backup policy.

source

pub async fn delete_backup_policy( &mut self, request: impl IntoRequest<DeleteBackupPolicyRequest>, ) -> Result<Response<Operation>, Status>

Warning! This operation will permanently delete the backup policy.

Trait Implementations§

source§

impl<T: Clone> Clone for NetAppClient<T>

source§

fn clone(&self) -> NetAppClient<T>

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<T: Debug> Debug for NetAppClient<T>

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> !Freeze for NetAppClient<T>

§

impl<T> RefUnwindSafe for NetAppClient<T>
where T: RefUnwindSafe,

§

impl<T> Send for NetAppClient<T>
where T: Send,

§

impl<T> Sync for NetAppClient<T>
where T: Sync,

§

impl<T> Unpin for NetAppClient<T>
where T: Unpin,

§

impl<T> UnwindSafe for NetAppClient<T>
where T: UnwindSafe,

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