NetApp v1 API - Class NetAppClient (1.4.0)

public abstract class NetAppClient

Reference documentation and code samples for the NetApp v1 API class NetAppClient.

NetApp client wrapper, for convenient use.

Inheritance

object > NetAppClient

Derived Types

Namespace

Google.Cloud.NetApp.V1

Assembly

Google.Cloud.NetApp.V1.dll

Remarks

NetApp Files Google Cloud Service

Properties

CreateActiveDirectoryOperationsClient

public virtual OperationsClient CreateActiveDirectoryOperationsClient { get; }

The long-running operations client for CreateActiveDirectory.

Property Value
Type Description
OperationsClient

CreateBackupOperationsClient

public virtual OperationsClient CreateBackupOperationsClient { get; }

The long-running operations client for CreateBackup.

Property Value
Type Description
OperationsClient

CreateBackupPolicyOperationsClient

public virtual OperationsClient CreateBackupPolicyOperationsClient { get; }

The long-running operations client for CreateBackupPolicy.

Property Value
Type Description
OperationsClient

CreateBackupVaultOperationsClient

public virtual OperationsClient CreateBackupVaultOperationsClient { get; }

The long-running operations client for CreateBackupVault.

Property Value
Type Description
OperationsClient

CreateKmsConfigOperationsClient

public virtual OperationsClient CreateKmsConfigOperationsClient { get; }

The long-running operations client for CreateKmsConfig.

Property Value
Type Description
OperationsClient

CreateReplicationOperationsClient

public virtual OperationsClient CreateReplicationOperationsClient { get; }

The long-running operations client for CreateReplication.

Property Value
Type Description
OperationsClient

CreateSnapshotOperationsClient

public virtual OperationsClient CreateSnapshotOperationsClient { get; }

The long-running operations client for CreateSnapshot.

Property Value
Type Description
OperationsClient

CreateStoragePoolOperationsClient

public virtual OperationsClient CreateStoragePoolOperationsClient { get; }

The long-running operations client for CreateStoragePool.

Property Value
Type Description
OperationsClient

CreateVolumeOperationsClient

public virtual OperationsClient CreateVolumeOperationsClient { get; }

The long-running operations client for CreateVolume.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the NetApp service, which is a host of "netapp.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default NetApp scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default NetApp scopes are:

DeleteActiveDirectoryOperationsClient

public virtual OperationsClient DeleteActiveDirectoryOperationsClient { get; }

The long-running operations client for DeleteActiveDirectory.

Property Value
Type Description
OperationsClient

DeleteBackupOperationsClient

public virtual OperationsClient DeleteBackupOperationsClient { get; }

The long-running operations client for DeleteBackup.

Property Value
Type Description
OperationsClient

DeleteBackupPolicyOperationsClient

public virtual OperationsClient DeleteBackupPolicyOperationsClient { get; }

The long-running operations client for DeleteBackupPolicy.

Property Value
Type Description
OperationsClient

DeleteBackupVaultOperationsClient

public virtual OperationsClient DeleteBackupVaultOperationsClient { get; }

The long-running operations client for DeleteBackupVault.

Property Value
Type Description
OperationsClient

DeleteKmsConfigOperationsClient

public virtual OperationsClient DeleteKmsConfigOperationsClient { get; }

The long-running operations client for DeleteKmsConfig.

Property Value
Type Description
OperationsClient

DeleteReplicationOperationsClient

public virtual OperationsClient DeleteReplicationOperationsClient { get; }

The long-running operations client for DeleteReplication.

Property Value
Type Description
OperationsClient

DeleteSnapshotOperationsClient

public virtual OperationsClient DeleteSnapshotOperationsClient { get; }

The long-running operations client for DeleteSnapshot.

Property Value
Type Description
OperationsClient

DeleteStoragePoolOperationsClient

public virtual OperationsClient DeleteStoragePoolOperationsClient { get; }

The long-running operations client for DeleteStoragePool.

Property Value
Type Description
OperationsClient

DeleteVolumeOperationsClient

public virtual OperationsClient DeleteVolumeOperationsClient { get; }

The long-running operations client for DeleteVolume.

Property Value
Type Description
OperationsClient

EncryptVolumesOperationsClient

public virtual OperationsClient EncryptVolumesOperationsClient { get; }

The long-running operations client for EncryptVolumes.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual NetApp.NetAppClient GrpcClient { get; }

The underlying gRPC NetApp client

Property Value
Type Description
NetAppNetAppClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ResumeReplicationOperationsClient

public virtual OperationsClient ResumeReplicationOperationsClient { get; }

The long-running operations client for ResumeReplication.

Property Value
Type Description
OperationsClient

ReverseReplicationDirectionOperationsClient

public virtual OperationsClient ReverseReplicationDirectionOperationsClient { get; }

The long-running operations client for ReverseReplicationDirection.

Property Value
Type Description
OperationsClient

RevertVolumeOperationsClient

public virtual OperationsClient RevertVolumeOperationsClient { get; }

The long-running operations client for RevertVolume.

Property Value
Type Description
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

StopReplicationOperationsClient

public virtual OperationsClient StopReplicationOperationsClient { get; }

The long-running operations client for StopReplication.

Property Value
Type Description
OperationsClient

UpdateActiveDirectoryOperationsClient

public virtual OperationsClient UpdateActiveDirectoryOperationsClient { get; }

The long-running operations client for UpdateActiveDirectory.

Property Value
Type Description
OperationsClient

UpdateBackupOperationsClient

public virtual OperationsClient UpdateBackupOperationsClient { get; }

The long-running operations client for UpdateBackup.

Property Value
Type Description
OperationsClient

UpdateBackupPolicyOperationsClient

public virtual OperationsClient UpdateBackupPolicyOperationsClient { get; }

The long-running operations client for UpdateBackupPolicy.

Property Value
Type Description
OperationsClient

UpdateBackupVaultOperationsClient

public virtual OperationsClient UpdateBackupVaultOperationsClient { get; }

The long-running operations client for UpdateBackupVault.

Property Value
Type Description
OperationsClient

UpdateKmsConfigOperationsClient

public virtual OperationsClient UpdateKmsConfigOperationsClient { get; }

The long-running operations client for UpdateKmsConfig.

Property Value
Type Description
OperationsClient

UpdateReplicationOperationsClient

public virtual OperationsClient UpdateReplicationOperationsClient { get; }

The long-running operations client for UpdateReplication.

Property Value
Type Description
OperationsClient

UpdateSnapshotOperationsClient

public virtual OperationsClient UpdateSnapshotOperationsClient { get; }

The long-running operations client for UpdateSnapshot.

Property Value
Type Description
OperationsClient

UpdateStoragePoolOperationsClient

public virtual OperationsClient UpdateStoragePoolOperationsClient { get; }

The long-running operations client for UpdateStoragePool.

Property Value
Type Description
OperationsClient

UpdateVolumeOperationsClient

public virtual OperationsClient UpdateVolumeOperationsClient { get; }

The long-running operations client for UpdateVolume.

Property Value
Type Description
OperationsClient

Methods

Create()

public static NetAppClient Create()

Synchronously creates a NetAppClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NetAppClientBuilder.

Returns
Type Description
NetAppClient

The created NetAppClient.

CreateActiveDirectory(LocationName, ActiveDirectory, string, CallSettings)

public virtual Operation<ActiveDirectory, OperationMetadata> CreateActiveDirectory(LocationName parent, ActiveDirectory activeDirectory, string activeDirectoryId, CallSettings callSettings = null)

CreateActiveDirectory Creates the active directory specified in the request.

Parameters
Name Description
parent LocationName

Required. Value for parent.

activeDirectory ActiveDirectory

Required. Fields of the to be created active directory.

activeDirectoryId string

Required. ID of the active directory to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationActiveDirectoryOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ActiveDirectory activeDirectory = new ActiveDirectory();
string activeDirectoryId = "";
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = netAppClient.CreateActiveDirectory(parent, activeDirectory, activeDirectoryId);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateActiveDirectory(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

CreateActiveDirectory(CreateActiveDirectoryRequest, CallSettings)

public virtual Operation<ActiveDirectory, OperationMetadata> CreateActiveDirectory(CreateActiveDirectoryRequest request, CallSettings callSettings = null)

CreateActiveDirectory Creates the active directory specified in the request.

Parameters
Name Description
request CreateActiveDirectoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationActiveDirectoryOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
CreateActiveDirectoryRequest request = new CreateActiveDirectoryRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ActiveDirectory = new ActiveDirectory(),
    ActiveDirectoryId = "",
};
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = netAppClient.CreateActiveDirectory(request);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateActiveDirectory(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

CreateActiveDirectory(string, ActiveDirectory, string, CallSettings)

public virtual Operation<ActiveDirectory, OperationMetadata> CreateActiveDirectory(string parent, ActiveDirectory activeDirectory, string activeDirectoryId, CallSettings callSettings = null)

CreateActiveDirectory Creates the active directory specified in the request.

Parameters
Name Description
parent string

Required. Value for parent.

activeDirectory ActiveDirectory

Required. Fields of the to be created active directory.

activeDirectoryId string

Required. ID of the active directory to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationActiveDirectoryOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ActiveDirectory activeDirectory = new ActiveDirectory();
string activeDirectoryId = "";
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = netAppClient.CreateActiveDirectory(parent, activeDirectory, activeDirectoryId);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateActiveDirectory(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

CreateActiveDirectoryAsync(LocationName, ActiveDirectory, string, CallSettings)

public virtual Task<Operation<ActiveDirectory, OperationMetadata>> CreateActiveDirectoryAsync(LocationName parent, ActiveDirectory activeDirectory, string activeDirectoryId, CallSettings callSettings = null)

CreateActiveDirectory Creates the active directory specified in the request.

Parameters
Name Description
parent LocationName

Required. Value for parent.

activeDirectory ActiveDirectory

Required. Fields of the to be created active directory.

activeDirectoryId string

Required. ID of the active directory to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationActiveDirectoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ActiveDirectory activeDirectory = new ActiveDirectory();
string activeDirectoryId = "";
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = await netAppClient.CreateActiveDirectoryAsync(parent, activeDirectory, activeDirectoryId);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

CreateActiveDirectoryAsync(LocationName, ActiveDirectory, string, CancellationToken)

public virtual Task<Operation<ActiveDirectory, OperationMetadata>> CreateActiveDirectoryAsync(LocationName parent, ActiveDirectory activeDirectory, string activeDirectoryId, CancellationToken cancellationToken)

CreateActiveDirectory Creates the active directory specified in the request.

Parameters
Name Description
parent LocationName

Required. Value for parent.

activeDirectory ActiveDirectory

Required. Fields of the to be created active directory.

activeDirectoryId string

Required. ID of the active directory to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationActiveDirectoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ActiveDirectory activeDirectory = new ActiveDirectory();
string activeDirectoryId = "";
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = await netAppClient.CreateActiveDirectoryAsync(parent, activeDirectory, activeDirectoryId);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

CreateActiveDirectoryAsync(CreateActiveDirectoryRequest, CallSettings)

public virtual Task<Operation<ActiveDirectory, OperationMetadata>> CreateActiveDirectoryAsync(CreateActiveDirectoryRequest request, CallSettings callSettings = null)

CreateActiveDirectory Creates the active directory specified in the request.

Parameters
Name Description
request CreateActiveDirectoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationActiveDirectoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateActiveDirectoryRequest request = new CreateActiveDirectoryRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ActiveDirectory = new ActiveDirectory(),
    ActiveDirectoryId = "",
};
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = await netAppClient.CreateActiveDirectoryAsync(request);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

CreateActiveDirectoryAsync(CreateActiveDirectoryRequest, CancellationToken)

public virtual Task<Operation<ActiveDirectory, OperationMetadata>> CreateActiveDirectoryAsync(CreateActiveDirectoryRequest request, CancellationToken cancellationToken)

CreateActiveDirectory Creates the active directory specified in the request.

Parameters
Name Description
request CreateActiveDirectoryRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationActiveDirectoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateActiveDirectoryRequest request = new CreateActiveDirectoryRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ActiveDirectory = new ActiveDirectory(),
    ActiveDirectoryId = "",
};
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = await netAppClient.CreateActiveDirectoryAsync(request);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

CreateActiveDirectoryAsync(string, ActiveDirectory, string, CallSettings)

public virtual Task<Operation<ActiveDirectory, OperationMetadata>> CreateActiveDirectoryAsync(string parent, ActiveDirectory activeDirectory, string activeDirectoryId, CallSettings callSettings = null)

CreateActiveDirectory Creates the active directory specified in the request.

Parameters
Name Description
parent string

Required. Value for parent.

activeDirectory ActiveDirectory

Required. Fields of the to be created active directory.

activeDirectoryId string

Required. ID of the active directory to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationActiveDirectoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ActiveDirectory activeDirectory = new ActiveDirectory();
string activeDirectoryId = "";
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = await netAppClient.CreateActiveDirectoryAsync(parent, activeDirectory, activeDirectoryId);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

CreateActiveDirectoryAsync(string, ActiveDirectory, string, CancellationToken)

public virtual Task<Operation<ActiveDirectory, OperationMetadata>> CreateActiveDirectoryAsync(string parent, ActiveDirectory activeDirectory, string activeDirectoryId, CancellationToken cancellationToken)

CreateActiveDirectory Creates the active directory specified in the request.

Parameters
Name Description
parent string

Required. Value for parent.

activeDirectory ActiveDirectory

Required. Fields of the to be created active directory.

activeDirectoryId string

Required. ID of the active directory to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationActiveDirectoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ActiveDirectory activeDirectory = new ActiveDirectory();
string activeDirectoryId = "";
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = await netAppClient.CreateActiveDirectoryAsync(parent, activeDirectory, activeDirectoryId);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

CreateAsync(CancellationToken)

public static Task<NetAppClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a NetAppClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NetAppClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskNetAppClient

The task representing the created NetAppClient.

CreateBackup(BackupVaultName, Backup, string, CallSettings)

public virtual Operation<Backup, OperationMetadata> CreateBackup(BackupVaultName parent, Backup backup, string backupId, CallSettings callSettings = null)

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.

Parameters
Name Description
parent BackupVaultName

Required. The NetApp backupVault to create the backups of, in the format projects/*/locations/*/backupVaults/{backup_vault_id}

backup Backup

Required. A backup resource

backupId string

Required. The ID to use for the backup. The ID must be unique within the specified backupVault. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
BackupVaultName parent = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]");
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = netAppClient.CreateBackup(parent, backup, backupId);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateBackup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackup(CreateBackupRequest, CallSettings)

public virtual Operation<Backup, OperationMetadata> CreateBackup(CreateBackupRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request CreateBackupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
CreateBackupRequest request = new CreateBackupRequest
{
    ParentAsBackupVaultName = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]"),
    BackupId = "",
    Backup = new Backup(),
};
// Make the request
Operation<Backup, OperationMetadata> response = netAppClient.CreateBackup(request);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateBackup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackup(string, Backup, string, CallSettings)

public virtual Operation<Backup, OperationMetadata> CreateBackup(string parent, Backup backup, string backupId, CallSettings callSettings = null)

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.

Parameters
Name Description
parent string

Required. The NetApp backupVault to create the backups of, in the format projects/*/locations/*/backupVaults/{backup_vault_id}

backup Backup

Required. A backup resource

backupId string

Required. The ID to use for the backup. The ID must be unique within the specified backupVault. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]";
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = netAppClient.CreateBackup(parent, backup, backupId);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateBackup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackupAsync(BackupVaultName, Backup, string, CallSettings)

public virtual Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(BackupVaultName parent, Backup backup, string backupId, CallSettings callSettings = null)

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.

Parameters
Name Description
parent BackupVaultName

Required. The NetApp backupVault to create the backups of, in the format projects/*/locations/*/backupVaults/{backup_vault_id}

backup Backup

Required. A backup resource

backupId string

Required. The ID to use for the backup. The ID must be unique within the specified backupVault. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupVaultName parent = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]");
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = await netAppClient.CreateBackupAsync(parent, backup, backupId);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackupAsync(BackupVaultName, Backup, string, CancellationToken)

public virtual Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(BackupVaultName parent, Backup backup, string backupId, CancellationToken cancellationToken)

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.

Parameters
Name Description
parent BackupVaultName

Required. The NetApp backupVault to create the backups of, in the format projects/*/locations/*/backupVaults/{backup_vault_id}

backup Backup

Required. A backup resource

backupId string

Required. The ID to use for the backup. The ID must be unique within the specified backupVault. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupVaultName parent = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]");
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = await netAppClient.CreateBackupAsync(parent, backup, backupId);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackupAsync(CreateBackupRequest, CallSettings)

public virtual Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(CreateBackupRequest request, CallSettings callSettings = null)

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.

Parameters
Name Description
request CreateBackupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateBackupRequest request = new CreateBackupRequest
{
    ParentAsBackupVaultName = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]"),
    BackupId = "",
    Backup = new Backup(),
};
// Make the request
Operation<Backup, OperationMetadata> response = await netAppClient.CreateBackupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackupAsync(CreateBackupRequest, CancellationToken)

public virtual Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(CreateBackupRequest request, CancellationToken cancellationToken)

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.

Parameters
Name Description
request CreateBackupRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateBackupRequest request = new CreateBackupRequest
{
    ParentAsBackupVaultName = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]"),
    BackupId = "",
    Backup = new Backup(),
};
// Make the request
Operation<Backup, OperationMetadata> response = await netAppClient.CreateBackupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackupAsync(string, Backup, string, CallSettings)

public virtual Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(string parent, Backup backup, string backupId, CallSettings callSettings = null)

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.

Parameters
Name Description
parent string

Required. The NetApp backupVault to create the backups of, in the format projects/*/locations/*/backupVaults/{backup_vault_id}

backup Backup

Required. A backup resource

backupId string

Required. The ID to use for the backup. The ID must be unique within the specified backupVault. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]";
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = await netAppClient.CreateBackupAsync(parent, backup, backupId);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackupAsync(string, Backup, string, CancellationToken)

public virtual Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(string parent, Backup backup, string backupId, CancellationToken cancellationToken)

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.

Parameters
Name Description
parent string

Required. The NetApp backupVault to create the backups of, in the format projects/*/locations/*/backupVaults/{backup_vault_id}

backup Backup

Required. A backup resource

backupId string

Required. The ID to use for the backup. The ID must be unique within the specified backupVault. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]";
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = await netAppClient.CreateBackupAsync(parent, backup, backupId);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackupPolicy(LocationName, BackupPolicy, string, CallSettings)

public virtual Operation<BackupPolicy, OperationMetadata> CreateBackupPolicy(LocationName parent, BackupPolicy backupPolicy, string backupPolicyId, CallSettings callSettings = null)

Creates new backup policy

Parameters
Name Description
parent LocationName

Required. The location to create the backup policies of, in the format projects/{project_id}/locations/{location}

backupPolicy BackupPolicy

Required. A backupPolicy resource

backupPolicyId string

Required. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupPolicyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackupPolicy backupPolicy = new BackupPolicy();
string backupPolicyId = "";
// Make the request
Operation<BackupPolicy, OperationMetadata> response = netAppClient.CreateBackupPolicy(parent, backupPolicy, backupPolicyId);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateBackupPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

CreateBackupPolicy(CreateBackupPolicyRequest, CallSettings)

public virtual Operation<BackupPolicy, OperationMetadata> CreateBackupPolicy(CreateBackupPolicyRequest request, CallSettings callSettings = null)

Creates new backup policy

Parameters
Name Description
request CreateBackupPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupPolicyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
CreateBackupPolicyRequest request = new CreateBackupPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BackupPolicy = new BackupPolicy(),
    BackupPolicyId = "",
};
// Make the request
Operation<BackupPolicy, OperationMetadata> response = netAppClient.CreateBackupPolicy(request);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateBackupPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

CreateBackupPolicy(string, BackupPolicy, string, CallSettings)

public virtual Operation<BackupPolicy, OperationMetadata> CreateBackupPolicy(string parent, BackupPolicy backupPolicy, string backupPolicyId, CallSettings callSettings = null)

Creates new backup policy

Parameters
Name Description
parent string

Required. The location to create the backup policies of, in the format projects/{project_id}/locations/{location}

backupPolicy BackupPolicy

Required. A backupPolicy resource

backupPolicyId string

Required. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupPolicyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackupPolicy backupPolicy = new BackupPolicy();
string backupPolicyId = "";
// Make the request
Operation<BackupPolicy, OperationMetadata> response = netAppClient.CreateBackupPolicy(parent, backupPolicy, backupPolicyId);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateBackupPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

CreateBackupPolicyAsync(LocationName, BackupPolicy, string, CallSettings)

public virtual Task<Operation<BackupPolicy, OperationMetadata>> CreateBackupPolicyAsync(LocationName parent, BackupPolicy backupPolicy, string backupPolicyId, CallSettings callSettings = null)

Creates new backup policy

Parameters
Name Description
parent LocationName

Required. The location to create the backup policies of, in the format projects/{project_id}/locations/{location}

backupPolicy BackupPolicy

Required. A backupPolicy resource

backupPolicyId string

Required. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackupPolicy backupPolicy = new BackupPolicy();
string backupPolicyId = "";
// Make the request
Operation<BackupPolicy, OperationMetadata> response = await netAppClient.CreateBackupPolicyAsync(parent, backupPolicy, backupPolicyId);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

CreateBackupPolicyAsync(LocationName, BackupPolicy, string, CancellationToken)

public virtual Task<Operation<BackupPolicy, OperationMetadata>> CreateBackupPolicyAsync(LocationName parent, BackupPolicy backupPolicy, string backupPolicyId, CancellationToken cancellationToken)

Creates new backup policy

Parameters
Name Description
parent LocationName

Required. The location to create the backup policies of, in the format projects/{project_id}/locations/{location}

backupPolicy BackupPolicy

Required. A backupPolicy resource

backupPolicyId string

Required. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackupPolicy backupPolicy = new BackupPolicy();
string backupPolicyId = "";
// Make the request
Operation<BackupPolicy, OperationMetadata> response = await netAppClient.CreateBackupPolicyAsync(parent, backupPolicy, backupPolicyId);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

CreateBackupPolicyAsync(CreateBackupPolicyRequest, CallSettings)

public virtual Task<Operation<BackupPolicy, OperationMetadata>> CreateBackupPolicyAsync(CreateBackupPolicyRequest request, CallSettings callSettings = null)

Creates new backup policy

Parameters
Name Description
request CreateBackupPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateBackupPolicyRequest request = new CreateBackupPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BackupPolicy = new BackupPolicy(),
    BackupPolicyId = "",
};
// Make the request
Operation<BackupPolicy, OperationMetadata> response = await netAppClient.CreateBackupPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

CreateBackupPolicyAsync(CreateBackupPolicyRequest, CancellationToken)

public virtual Task<Operation<BackupPolicy, OperationMetadata>> CreateBackupPolicyAsync(CreateBackupPolicyRequest request, CancellationToken cancellationToken)

Creates new backup policy

Parameters
Name Description
request CreateBackupPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateBackupPolicyRequest request = new CreateBackupPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BackupPolicy = new BackupPolicy(),
    BackupPolicyId = "",
};
// Make the request
Operation<BackupPolicy, OperationMetadata> response = await netAppClient.CreateBackupPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

CreateBackupPolicyAsync(string, BackupPolicy, string, CallSettings)

public virtual Task<Operation<BackupPolicy, OperationMetadata>> CreateBackupPolicyAsync(string parent, BackupPolicy backupPolicy, string backupPolicyId, CallSettings callSettings = null)

Creates new backup policy

Parameters
Name Description
parent string

Required. The location to create the backup policies of, in the format projects/{project_id}/locations/{location}

backupPolicy BackupPolicy

Required. A backupPolicy resource

backupPolicyId string

Required. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackupPolicy backupPolicy = new BackupPolicy();
string backupPolicyId = "";
// Make the request
Operation<BackupPolicy, OperationMetadata> response = await netAppClient.CreateBackupPolicyAsync(parent, backupPolicy, backupPolicyId);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

CreateBackupPolicyAsync(string, BackupPolicy, string, CancellationToken)

public virtual Task<Operation<BackupPolicy, OperationMetadata>> CreateBackupPolicyAsync(string parent, BackupPolicy backupPolicy, string backupPolicyId, CancellationToken cancellationToken)

Creates new backup policy

Parameters
Name Description
parent string

Required. The location to create the backup policies of, in the format projects/{project_id}/locations/{location}

backupPolicy BackupPolicy

Required. A backupPolicy resource

backupPolicyId string

Required. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackupPolicy backupPolicy = new BackupPolicy();
string backupPolicyId = "";
// Make the request
Operation<BackupPolicy, OperationMetadata> response = await netAppClient.CreateBackupPolicyAsync(parent, backupPolicy, backupPolicyId);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

CreateBackupVault(LocationName, BackupVault, string, CallSettings)

public virtual Operation<BackupVault, OperationMetadata> CreateBackupVault(LocationName parent, BackupVault backupVault, string backupVaultId, CallSettings callSettings = null)

Creates new backup vault

Parameters
Name Description
parent LocationName

Required. The location to create the backup vaults, in the format projects/{project_id}/locations/{location}

backupVault BackupVault

Required. A backupVault resource

backupVaultId string

Required. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupVaultOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackupVault backupVault = new BackupVault();
string backupVaultId = "";
// Make the request
Operation<BackupVault, OperationMetadata> response = netAppClient.CreateBackupVault(parent, backupVault, backupVaultId);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateBackupVault(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

CreateBackupVault(CreateBackupVaultRequest, CallSettings)

public virtual Operation<BackupVault, OperationMetadata> CreateBackupVault(CreateBackupVaultRequest request, CallSettings callSettings = null)

Creates new backup vault

Parameters
Name Description
request CreateBackupVaultRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupVaultOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
CreateBackupVaultRequest request = new CreateBackupVaultRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BackupVaultId = "",
    BackupVault = new BackupVault(),
};
// Make the request
Operation<BackupVault, OperationMetadata> response = netAppClient.CreateBackupVault(request);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateBackupVault(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

CreateBackupVault(string, BackupVault, string, CallSettings)

public virtual Operation<BackupVault, OperationMetadata> CreateBackupVault(string parent, BackupVault backupVault, string backupVaultId, CallSettings callSettings = null)

Creates new backup vault

Parameters
Name Description
parent string

Required. The location to create the backup vaults, in the format projects/{project_id}/locations/{location}

backupVault BackupVault

Required. A backupVault resource

backupVaultId string

Required. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupVaultOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackupVault backupVault = new BackupVault();
string backupVaultId = "";
// Make the request
Operation<BackupVault, OperationMetadata> response = netAppClient.CreateBackupVault(parent, backupVault, backupVaultId);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateBackupVault(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

CreateBackupVaultAsync(LocationName, BackupVault, string, CallSettings)

public virtual Task<Operation<BackupVault, OperationMetadata>> CreateBackupVaultAsync(LocationName parent, BackupVault backupVault, string backupVaultId, CallSettings callSettings = null)

Creates new backup vault

Parameters
Name Description
parent LocationName

Required. The location to create the backup vaults, in the format projects/{project_id}/locations/{location}

backupVault BackupVault

Required. A backupVault resource

backupVaultId string

Required. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupVaultOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackupVault backupVault = new BackupVault();
string backupVaultId = "";
// Make the request
Operation<BackupVault, OperationMetadata> response = await netAppClient.CreateBackupVaultAsync(parent, backupVault, backupVaultId);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

CreateBackupVaultAsync(LocationName, BackupVault, string, CancellationToken)

public virtual Task<Operation<BackupVault, OperationMetadata>> CreateBackupVaultAsync(LocationName parent, BackupVault backupVault, string backupVaultId, CancellationToken cancellationToken)

Creates new backup vault

Parameters
Name Description
parent LocationName

Required. The location to create the backup vaults, in the format projects/{project_id}/locations/{location}

backupVault BackupVault

Required. A backupVault resource

backupVaultId string

Required. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupVaultOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackupVault backupVault = new BackupVault();
string backupVaultId = "";
// Make the request
Operation<BackupVault, OperationMetadata> response = await netAppClient.CreateBackupVaultAsync(parent, backupVault, backupVaultId);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

CreateBackupVaultAsync(CreateBackupVaultRequest, CallSettings)

public virtual Task<Operation<BackupVault, OperationMetadata>> CreateBackupVaultAsync(CreateBackupVaultRequest request, CallSettings callSettings = null)

Creates new backup vault

Parameters
Name Description
request CreateBackupVaultRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupVaultOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateBackupVaultRequest request = new CreateBackupVaultRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BackupVaultId = "",
    BackupVault = new BackupVault(),
};
// Make the request
Operation<BackupVault, OperationMetadata> response = await netAppClient.CreateBackupVaultAsync(request);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

CreateBackupVaultAsync(CreateBackupVaultRequest, CancellationToken)

public virtual Task<Operation<BackupVault, OperationMetadata>> CreateBackupVaultAsync(CreateBackupVaultRequest request, CancellationToken cancellationToken)

Creates new backup vault

Parameters
Name Description
request CreateBackupVaultRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupVaultOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateBackupVaultRequest request = new CreateBackupVaultRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    BackupVaultId = "",
    BackupVault = new BackupVault(),
};
// Make the request
Operation<BackupVault, OperationMetadata> response = await netAppClient.CreateBackupVaultAsync(request);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

CreateBackupVaultAsync(string, BackupVault, string, CallSettings)

public virtual Task<Operation<BackupVault, OperationMetadata>> CreateBackupVaultAsync(string parent, BackupVault backupVault, string backupVaultId, CallSettings callSettings = null)

Creates new backup vault

Parameters
Name Description
parent string

Required. The location to create the backup vaults, in the format projects/{project_id}/locations/{location}

backupVault BackupVault

Required. A backupVault resource

backupVaultId string

Required. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupVaultOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackupVault backupVault = new BackupVault();
string backupVaultId = "";
// Make the request
Operation<BackupVault, OperationMetadata> response = await netAppClient.CreateBackupVaultAsync(parent, backupVault, backupVaultId);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

CreateBackupVaultAsync(string, BackupVault, string, CancellationToken)

public virtual Task<Operation<BackupVault, OperationMetadata>> CreateBackupVaultAsync(string parent, BackupVault backupVault, string backupVaultId, CancellationToken cancellationToken)

Creates new backup vault

Parameters
Name Description
parent string

Required. The location to create the backup vaults, in the format projects/{project_id}/locations/{location}

backupVault BackupVault

Required. A backupVault resource

backupVaultId string

Required. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupVaultOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackupVault backupVault = new BackupVault();
string backupVaultId = "";
// Make the request
Operation<BackupVault, OperationMetadata> response = await netAppClient.CreateBackupVaultAsync(parent, backupVault, backupVaultId);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

CreateKmsConfig(LocationName, KmsConfig, string, CallSettings)

public virtual Operation<KmsConfig, OperationMetadata> CreateKmsConfig(LocationName parent, KmsConfig kmsConfig, string kmsConfigId, CallSettings callSettings = null)

Creates a new KMS config.

Parameters
Name Description
parent LocationName

Required. Value for parent.

kmsConfig KmsConfig

Required. The required parameters to create a new KmsConfig.

kmsConfigId string

Required. Id of the requesting KmsConfig. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationKmsConfigOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
KmsConfig kmsConfig = new KmsConfig();
string kmsConfigId = "";
// Make the request
Operation<KmsConfig, OperationMetadata> response = netAppClient.CreateKmsConfig(parent, kmsConfig, kmsConfigId);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateKmsConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

CreateKmsConfig(CreateKmsConfigRequest, CallSettings)

public virtual Operation<KmsConfig, OperationMetadata> CreateKmsConfig(CreateKmsConfigRequest request, CallSettings callSettings = null)

Creates a new KMS config.

Parameters
Name Description
request CreateKmsConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationKmsConfigOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
CreateKmsConfigRequest request = new CreateKmsConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    KmsConfigId = "",
    KmsConfig = new KmsConfig(),
};
// Make the request
Operation<KmsConfig, OperationMetadata> response = netAppClient.CreateKmsConfig(request);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateKmsConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

CreateKmsConfig(string, KmsConfig, string, CallSettings)

public virtual Operation<KmsConfig, OperationMetadata> CreateKmsConfig(string parent, KmsConfig kmsConfig, string kmsConfigId, CallSettings callSettings = null)

Creates a new KMS config.

Parameters
Name Description
parent string

Required. Value for parent.

kmsConfig KmsConfig

Required. The required parameters to create a new KmsConfig.

kmsConfigId string

Required. Id of the requesting KmsConfig. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationKmsConfigOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
KmsConfig kmsConfig = new KmsConfig();
string kmsConfigId = "";
// Make the request
Operation<KmsConfig, OperationMetadata> response = netAppClient.CreateKmsConfig(parent, kmsConfig, kmsConfigId);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateKmsConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

CreateKmsConfigAsync(LocationName, KmsConfig, string, CallSettings)

public virtual Task<Operation<KmsConfig, OperationMetadata>> CreateKmsConfigAsync(LocationName parent, KmsConfig kmsConfig, string kmsConfigId, CallSettings callSettings = null)

Creates a new KMS config.

Parameters
Name Description
parent LocationName

Required. Value for parent.

kmsConfig KmsConfig

Required. The required parameters to create a new KmsConfig.

kmsConfigId string

Required. Id of the requesting KmsConfig. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
KmsConfig kmsConfig = new KmsConfig();
string kmsConfigId = "";
// Make the request
Operation<KmsConfig, OperationMetadata> response = await netAppClient.CreateKmsConfigAsync(parent, kmsConfig, kmsConfigId);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

CreateKmsConfigAsync(LocationName, KmsConfig, string, CancellationToken)

public virtual Task<Operation<KmsConfig, OperationMetadata>> CreateKmsConfigAsync(LocationName parent, KmsConfig kmsConfig, string kmsConfigId, CancellationToken cancellationToken)

Creates a new KMS config.

Parameters
Name Description
parent LocationName

Required. Value for parent.

kmsConfig KmsConfig

Required. The required parameters to create a new KmsConfig.

kmsConfigId string

Required. Id of the requesting KmsConfig. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
KmsConfig kmsConfig = new KmsConfig();
string kmsConfigId = "";
// Make the request
Operation<KmsConfig, OperationMetadata> response = await netAppClient.CreateKmsConfigAsync(parent, kmsConfig, kmsConfigId);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

CreateKmsConfigAsync(CreateKmsConfigRequest, CallSettings)

public virtual Task<Operation<KmsConfig, OperationMetadata>> CreateKmsConfigAsync(CreateKmsConfigRequest request, CallSettings callSettings = null)

Creates a new KMS config.

Parameters
Name Description
request CreateKmsConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateKmsConfigRequest request = new CreateKmsConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    KmsConfigId = "",
    KmsConfig = new KmsConfig(),
};
// Make the request
Operation<KmsConfig, OperationMetadata> response = await netAppClient.CreateKmsConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

CreateKmsConfigAsync(CreateKmsConfigRequest, CancellationToken)

public virtual Task<Operation<KmsConfig, OperationMetadata>> CreateKmsConfigAsync(CreateKmsConfigRequest request, CancellationToken cancellationToken)

Creates a new KMS config.

Parameters
Name Description
request CreateKmsConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateKmsConfigRequest request = new CreateKmsConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    KmsConfigId = "",
    KmsConfig = new KmsConfig(),
};
// Make the request
Operation<KmsConfig, OperationMetadata> response = await netAppClient.CreateKmsConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

CreateKmsConfigAsync(string, KmsConfig, string, CallSettings)

public virtual Task<Operation<KmsConfig, OperationMetadata>> CreateKmsConfigAsync(string parent, KmsConfig kmsConfig, string kmsConfigId, CallSettings callSettings = null)

Creates a new KMS config.

Parameters
Name Description
parent string

Required. Value for parent.

kmsConfig KmsConfig

Required. The required parameters to create a new KmsConfig.

kmsConfigId string

Required. Id of the requesting KmsConfig. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
KmsConfig kmsConfig = new KmsConfig();
string kmsConfigId = "";
// Make the request
Operation<KmsConfig, OperationMetadata> response = await netAppClient.CreateKmsConfigAsync(parent, kmsConfig, kmsConfigId);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

CreateKmsConfigAsync(string, KmsConfig, string, CancellationToken)

public virtual Task<Operation<KmsConfig, OperationMetadata>> CreateKmsConfigAsync(string parent, KmsConfig kmsConfig, string kmsConfigId, CancellationToken cancellationToken)

Creates a new KMS config.

Parameters
Name Description
parent string

Required. Value for parent.

kmsConfig KmsConfig

Required. The required parameters to create a new KmsConfig.

kmsConfigId string

Required. Id of the requesting KmsConfig. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
KmsConfig kmsConfig = new KmsConfig();
string kmsConfigId = "";
// Make the request
Operation<KmsConfig, OperationMetadata> response = await netAppClient.CreateKmsConfigAsync(parent, kmsConfig, kmsConfigId);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

CreateReplication(CreateReplicationRequest, CallSettings)

public virtual Operation<Replication, OperationMetadata> CreateReplication(CreateReplicationRequest request, CallSettings callSettings = null)

Create a new replication for a volume.

Parameters
Name Description
request CreateReplicationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplicationOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
CreateReplicationRequest request = new CreateReplicationRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    Replication = new Replication(),
    ReplicationId = "",
};
// Make the request
Operation<Replication, OperationMetadata> response = netAppClient.CreateReplication(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateReplication(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

CreateReplication(VolumeName, Replication, string, CallSettings)

public virtual Operation<Replication, OperationMetadata> CreateReplication(VolumeName parent, Replication replication, string replicationId, CallSettings callSettings = null)

Create a new replication for a volume.

Parameters
Name Description
parent VolumeName

Required. The NetApp volume to create the replications of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

replication Replication

Required. A replication resource

replicationId string

Required. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplicationOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
Replication replication = new Replication();
string replicationId = "";
// Make the request
Operation<Replication, OperationMetadata> response = netAppClient.CreateReplication(parent, replication, replicationId);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateReplication(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

CreateReplication(string, Replication, string, CallSettings)

public virtual Operation<Replication, OperationMetadata> CreateReplication(string parent, Replication replication, string replicationId, CallSettings callSettings = null)

Create a new replication for a volume.

Parameters
Name Description
parent string

Required. The NetApp volume to create the replications of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

replication Replication

Required. A replication resource

replicationId string

Required. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplicationOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
Replication replication = new Replication();
string replicationId = "";
// Make the request
Operation<Replication, OperationMetadata> response = netAppClient.CreateReplication(parent, replication, replicationId);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateReplication(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

CreateReplicationAsync(CreateReplicationRequest, CallSettings)

public virtual Task<Operation<Replication, OperationMetadata>> CreateReplicationAsync(CreateReplicationRequest request, CallSettings callSettings = null)

Create a new replication for a volume.

Parameters
Name Description
request CreateReplicationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateReplicationRequest request = new CreateReplicationRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    Replication = new Replication(),
    ReplicationId = "",
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.CreateReplicationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

CreateReplicationAsync(CreateReplicationRequest, CancellationToken)

public virtual Task<Operation<Replication, OperationMetadata>> CreateReplicationAsync(CreateReplicationRequest request, CancellationToken cancellationToken)

Create a new replication for a volume.

Parameters
Name Description
request CreateReplicationRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateReplicationRequest request = new CreateReplicationRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    Replication = new Replication(),
    ReplicationId = "",
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.CreateReplicationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

CreateReplicationAsync(VolumeName, Replication, string, CallSettings)

public virtual Task<Operation<Replication, OperationMetadata>> CreateReplicationAsync(VolumeName parent, Replication replication, string replicationId, CallSettings callSettings = null)

Create a new replication for a volume.

Parameters
Name Description
parent VolumeName

Required. The NetApp volume to create the replications of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

replication Replication

Required. A replication resource

replicationId string

Required. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
Replication replication = new Replication();
string replicationId = "";
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.CreateReplicationAsync(parent, replication, replicationId);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

CreateReplicationAsync(VolumeName, Replication, string, CancellationToken)

public virtual Task<Operation<Replication, OperationMetadata>> CreateReplicationAsync(VolumeName parent, Replication replication, string replicationId, CancellationToken cancellationToken)

Create a new replication for a volume.

Parameters
Name Description
parent VolumeName

Required. The NetApp volume to create the replications of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

replication Replication

Required. A replication resource

replicationId string

Required. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
Replication replication = new Replication();
string replicationId = "";
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.CreateReplicationAsync(parent, replication, replicationId);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

CreateReplicationAsync(string, Replication, string, CallSettings)

public virtual Task<Operation<Replication, OperationMetadata>> CreateReplicationAsync(string parent, Replication replication, string replicationId, CallSettings callSettings = null)

Create a new replication for a volume.

Parameters
Name Description
parent string

Required. The NetApp volume to create the replications of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

replication Replication

Required. A replication resource

replicationId string

Required. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
Replication replication = new Replication();
string replicationId = "";
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.CreateReplicationAsync(parent, replication, replicationId);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

CreateReplicationAsync(string, Replication, string, CancellationToken)

public virtual Task<Operation<Replication, OperationMetadata>> CreateReplicationAsync(string parent, Replication replication, string replicationId, CancellationToken cancellationToken)

Create a new replication for a volume.

Parameters
Name Description
parent string

Required. The NetApp volume to create the replications of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

replication Replication

Required. A replication resource

replicationId string

Required. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
Replication replication = new Replication();
string replicationId = "";
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.CreateReplicationAsync(parent, replication, replicationId);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

CreateSnapshot(CreateSnapshotRequest, CallSettings)

public virtual Operation<Snapshot, OperationMetadata> CreateSnapshot(CreateSnapshotRequest request, CallSettings callSettings = null)

Create a new snapshot for a volume.

Parameters
Name Description
request CreateSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSnapshotOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
CreateSnapshotRequest request = new CreateSnapshotRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    Snapshot = new Snapshot(),
    SnapshotId = "",
};
// Make the request
Operation<Snapshot, OperationMetadata> response = netAppClient.CreateSnapshot(request);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateSnapshot(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

CreateSnapshot(VolumeName, Snapshot, string, CallSettings)

public virtual Operation<Snapshot, OperationMetadata> CreateSnapshot(VolumeName parent, Snapshot snapshot, string snapshotId, CallSettings callSettings = null)

Create a new snapshot for a volume.

Parameters
Name Description
parent VolumeName

Required. The NetApp volume to create the snapshots of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

snapshot Snapshot

Required. A snapshot resource

snapshotId string

Required. ID of the snapshot to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSnapshotOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
Snapshot snapshot = new Snapshot();
string snapshotId = "";
// Make the request
Operation<Snapshot, OperationMetadata> response = netAppClient.CreateSnapshot(parent, snapshot, snapshotId);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateSnapshot(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

CreateSnapshot(string, Snapshot, string, CallSettings)

public virtual Operation<Snapshot, OperationMetadata> CreateSnapshot(string parent, Snapshot snapshot, string snapshotId, CallSettings callSettings = null)

Create a new snapshot for a volume.

Parameters
Name Description
parent string

Required. The NetApp volume to create the snapshots of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

snapshot Snapshot

Required. A snapshot resource

snapshotId string

Required. ID of the snapshot to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSnapshotOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
Snapshot snapshot = new Snapshot();
string snapshotId = "";
// Make the request
Operation<Snapshot, OperationMetadata> response = netAppClient.CreateSnapshot(parent, snapshot, snapshotId);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateSnapshot(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

CreateSnapshotAsync(CreateSnapshotRequest, CallSettings)

public virtual Task<Operation<Snapshot, OperationMetadata>> CreateSnapshotAsync(CreateSnapshotRequest request, CallSettings callSettings = null)

Create a new snapshot for a volume.

Parameters
Name Description
request CreateSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSnapshotOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateSnapshotRequest request = new CreateSnapshotRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    Snapshot = new Snapshot(),
    SnapshotId = "",
};
// Make the request
Operation<Snapshot, OperationMetadata> response = await netAppClient.CreateSnapshotAsync(request);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

CreateSnapshotAsync(CreateSnapshotRequest, CancellationToken)

public virtual Task<Operation<Snapshot, OperationMetadata>> CreateSnapshotAsync(CreateSnapshotRequest request, CancellationToken cancellationToken)

Create a new snapshot for a volume.

Parameters
Name Description
request CreateSnapshotRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSnapshotOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateSnapshotRequest request = new CreateSnapshotRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    Snapshot = new Snapshot(),
    SnapshotId = "",
};
// Make the request
Operation<Snapshot, OperationMetadata> response = await netAppClient.CreateSnapshotAsync(request);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

CreateSnapshotAsync(VolumeName, Snapshot, string, CallSettings)

public virtual Task<Operation<Snapshot, OperationMetadata>> CreateSnapshotAsync(VolumeName parent, Snapshot snapshot, string snapshotId, CallSettings callSettings = null)

Create a new snapshot for a volume.

Parameters
Name Description
parent VolumeName

Required. The NetApp volume to create the snapshots of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

snapshot Snapshot

Required. A snapshot resource

snapshotId string

Required. ID of the snapshot to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSnapshotOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
Snapshot snapshot = new Snapshot();
string snapshotId = "";
// Make the request
Operation<Snapshot, OperationMetadata> response = await netAppClient.CreateSnapshotAsync(parent, snapshot, snapshotId);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

CreateSnapshotAsync(VolumeName, Snapshot, string, CancellationToken)

public virtual Task<Operation<Snapshot, OperationMetadata>> CreateSnapshotAsync(VolumeName parent, Snapshot snapshot, string snapshotId, CancellationToken cancellationToken)

Create a new snapshot for a volume.

Parameters
Name Description
parent VolumeName

Required. The NetApp volume to create the snapshots of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

snapshot Snapshot

Required. A snapshot resource

snapshotId string

Required. ID of the snapshot to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSnapshotOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
Snapshot snapshot = new Snapshot();
string snapshotId = "";
// Make the request
Operation<Snapshot, OperationMetadata> response = await netAppClient.CreateSnapshotAsync(parent, snapshot, snapshotId);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

CreateSnapshotAsync(string, Snapshot, string, CallSettings)

public virtual Task<Operation<Snapshot, OperationMetadata>> CreateSnapshotAsync(string parent, Snapshot snapshot, string snapshotId, CallSettings callSettings = null)

Create a new snapshot for a volume.

Parameters
Name Description
parent string

Required. The NetApp volume to create the snapshots of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

snapshot Snapshot

Required. A snapshot resource

snapshotId string

Required. ID of the snapshot to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSnapshotOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
Snapshot snapshot = new Snapshot();
string snapshotId = "";
// Make the request
Operation<Snapshot, OperationMetadata> response = await netAppClient.CreateSnapshotAsync(parent, snapshot, snapshotId);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

CreateSnapshotAsync(string, Snapshot, string, CancellationToken)

public virtual Task<Operation<Snapshot, OperationMetadata>> CreateSnapshotAsync(string parent, Snapshot snapshot, string snapshotId, CancellationToken cancellationToken)

Create a new snapshot for a volume.

Parameters
Name Description
parent string

Required. The NetApp volume to create the snapshots of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

snapshot Snapshot

Required. A snapshot resource

snapshotId string

Required. ID of the snapshot to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSnapshotOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
Snapshot snapshot = new Snapshot();
string snapshotId = "";
// Make the request
Operation<Snapshot, OperationMetadata> response = await netAppClient.CreateSnapshotAsync(parent, snapshot, snapshotId);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

CreateStoragePool(LocationName, StoragePool, string, CallSettings)

public virtual Operation<StoragePool, OperationMetadata> CreateStoragePool(LocationName parent, StoragePool storagePool, string storagePoolId, CallSettings callSettings = null)

Creates a new storage pool.

Parameters
Name Description
parent LocationName

Required. Value for parent.

storagePool StoragePool

Required. The required parameters to create a new storage pool.

storagePoolId string

Required. Id of the requesting storage pool. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationStoragePoolOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
StoragePool storagePool = new StoragePool();
string storagePoolId = "";
// Make the request
Operation<StoragePool, OperationMetadata> response = netAppClient.CreateStoragePool(parent, storagePool, storagePoolId);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateStoragePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

CreateStoragePool(CreateStoragePoolRequest, CallSettings)

public virtual Operation<StoragePool, OperationMetadata> CreateStoragePool(CreateStoragePoolRequest request, CallSettings callSettings = null)

Creates a new storage pool.

Parameters
Name Description
request CreateStoragePoolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationStoragePoolOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
CreateStoragePoolRequest request = new CreateStoragePoolRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    StoragePoolId = "",
    StoragePool = new StoragePool(),
};
// Make the request
Operation<StoragePool, OperationMetadata> response = netAppClient.CreateStoragePool(request);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateStoragePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

CreateStoragePool(string, StoragePool, string, CallSettings)

public virtual Operation<StoragePool, OperationMetadata> CreateStoragePool(string parent, StoragePool storagePool, string storagePoolId, CallSettings callSettings = null)

Creates a new storage pool.

Parameters
Name Description
parent string

Required. Value for parent.

storagePool StoragePool

Required. The required parameters to create a new storage pool.

storagePoolId string

Required. Id of the requesting storage pool. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationStoragePoolOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
StoragePool storagePool = new StoragePool();
string storagePoolId = "";
// Make the request
Operation<StoragePool, OperationMetadata> response = netAppClient.CreateStoragePool(parent, storagePool, storagePoolId);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateStoragePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

CreateStoragePoolAsync(LocationName, StoragePool, string, CallSettings)

public virtual Task<Operation<StoragePool, OperationMetadata>> CreateStoragePoolAsync(LocationName parent, StoragePool storagePool, string storagePoolId, CallSettings callSettings = null)

Creates a new storage pool.

Parameters
Name Description
parent LocationName

Required. Value for parent.

storagePool StoragePool

Required. The required parameters to create a new storage pool.

storagePoolId string

Required. Id of the requesting storage pool. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationStoragePoolOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
StoragePool storagePool = new StoragePool();
string storagePoolId = "";
// Make the request
Operation<StoragePool, OperationMetadata> response = await netAppClient.CreateStoragePoolAsync(parent, storagePool, storagePoolId);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

CreateStoragePoolAsync(LocationName, StoragePool, string, CancellationToken)

public virtual Task<Operation<StoragePool, OperationMetadata>> CreateStoragePoolAsync(LocationName parent, StoragePool storagePool, string storagePoolId, CancellationToken cancellationToken)

Creates a new storage pool.

Parameters
Name Description
parent LocationName

Required. Value for parent.

storagePool StoragePool

Required. The required parameters to create a new storage pool.

storagePoolId string

Required. Id of the requesting storage pool. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationStoragePoolOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
StoragePool storagePool = new StoragePool();
string storagePoolId = "";
// Make the request
Operation<StoragePool, OperationMetadata> response = await netAppClient.CreateStoragePoolAsync(parent, storagePool, storagePoolId);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

CreateStoragePoolAsync(CreateStoragePoolRequest, CallSettings)

public virtual Task<Operation<StoragePool, OperationMetadata>> CreateStoragePoolAsync(CreateStoragePoolRequest request, CallSettings callSettings = null)

Creates a new storage pool.

Parameters
Name Description
request CreateStoragePoolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationStoragePoolOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateStoragePoolRequest request = new CreateStoragePoolRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    StoragePoolId = "",
    StoragePool = new StoragePool(),
};
// Make the request
Operation<StoragePool, OperationMetadata> response = await netAppClient.CreateStoragePoolAsync(request);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

CreateStoragePoolAsync(CreateStoragePoolRequest, CancellationToken)

public virtual Task<Operation<StoragePool, OperationMetadata>> CreateStoragePoolAsync(CreateStoragePoolRequest request, CancellationToken cancellationToken)

Creates a new storage pool.

Parameters
Name Description
request CreateStoragePoolRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationStoragePoolOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateStoragePoolRequest request = new CreateStoragePoolRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    StoragePoolId = "",
    StoragePool = new StoragePool(),
};
// Make the request
Operation<StoragePool, OperationMetadata> response = await netAppClient.CreateStoragePoolAsync(request);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

CreateStoragePoolAsync(string, StoragePool, string, CallSettings)

public virtual Task<Operation<StoragePool, OperationMetadata>> CreateStoragePoolAsync(string parent, StoragePool storagePool, string storagePoolId, CallSettings callSettings = null)

Creates a new storage pool.

Parameters
Name Description
parent string

Required. Value for parent.

storagePool StoragePool

Required. The required parameters to create a new storage pool.

storagePoolId string

Required. Id of the requesting storage pool. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationStoragePoolOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
StoragePool storagePool = new StoragePool();
string storagePoolId = "";
// Make the request
Operation<StoragePool, OperationMetadata> response = await netAppClient.CreateStoragePoolAsync(parent, storagePool, storagePoolId);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

CreateStoragePoolAsync(string, StoragePool, string, CancellationToken)

public virtual Task<Operation<StoragePool, OperationMetadata>> CreateStoragePoolAsync(string parent, StoragePool storagePool, string storagePoolId, CancellationToken cancellationToken)

Creates a new storage pool.

Parameters
Name Description
parent string

Required. Value for parent.

storagePool StoragePool

Required. The required parameters to create a new storage pool.

storagePoolId string

Required. Id of the requesting storage pool. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationStoragePoolOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
StoragePool storagePool = new StoragePool();
string storagePoolId = "";
// Make the request
Operation<StoragePool, OperationMetadata> response = await netAppClient.CreateStoragePoolAsync(parent, storagePool, storagePoolId);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

CreateVolume(LocationName, Volume, string, CallSettings)

public virtual Operation<Volume, OperationMetadata> CreateVolume(LocationName parent, Volume volume, string volumeId, CallSettings callSettings = null)

Creates a new Volume in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

volume Volume

Required. The volume being created.

volumeId string

Required. Id of the requesting volume. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationVolumeOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Volume volume = new Volume();
string volumeId = "";
// Make the request
Operation<Volume, OperationMetadata> response = netAppClient.CreateVolume(parent, volume, volumeId);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

CreateVolume(CreateVolumeRequest, CallSettings)

public virtual Operation<Volume, OperationMetadata> CreateVolume(CreateVolumeRequest request, CallSettings callSettings = null)

Creates a new Volume in a given project and location.

Parameters
Name Description
request CreateVolumeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationVolumeOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
CreateVolumeRequest request = new CreateVolumeRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    VolumeId = "",
    Volume = new Volume(),
};
// Make the request
Operation<Volume, OperationMetadata> response = netAppClient.CreateVolume(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

CreateVolume(string, Volume, string, CallSettings)

public virtual Operation<Volume, OperationMetadata> CreateVolume(string parent, Volume volume, string volumeId, CallSettings callSettings = null)

Creates a new Volume in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

volume Volume

Required. The volume being created.

volumeId string

Required. Id of the requesting volume. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationVolumeOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Volume volume = new Volume();
string volumeId = "";
// Make the request
Operation<Volume, OperationMetadata> response = netAppClient.CreateVolume(parent, volume, volumeId);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

CreateVolumeAsync(LocationName, Volume, string, CallSettings)

public virtual Task<Operation<Volume, OperationMetadata>> CreateVolumeAsync(LocationName parent, Volume volume, string volumeId, CallSettings callSettings = null)

Creates a new Volume in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

volume Volume

Required. The volume being created.

volumeId string

Required. Id of the requesting volume. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Volume volume = new Volume();
string volumeId = "";
// Make the request
Operation<Volume, OperationMetadata> response = await netAppClient.CreateVolumeAsync(parent, volume, volumeId);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

CreateVolumeAsync(LocationName, Volume, string, CancellationToken)

public virtual Task<Operation<Volume, OperationMetadata>> CreateVolumeAsync(LocationName parent, Volume volume, string volumeId, CancellationToken cancellationToken)

Creates a new Volume in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

volume Volume

Required. The volume being created.

volumeId string

Required. Id of the requesting volume. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Volume volume = new Volume();
string volumeId = "";
// Make the request
Operation<Volume, OperationMetadata> response = await netAppClient.CreateVolumeAsync(parent, volume, volumeId);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

CreateVolumeAsync(CreateVolumeRequest, CallSettings)

public virtual Task<Operation<Volume, OperationMetadata>> CreateVolumeAsync(CreateVolumeRequest request, CallSettings callSettings = null)

Creates a new Volume in a given project and location.

Parameters
Name Description
request CreateVolumeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateVolumeRequest request = new CreateVolumeRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    VolumeId = "",
    Volume = new Volume(),
};
// Make the request
Operation<Volume, OperationMetadata> response = await netAppClient.CreateVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

CreateVolumeAsync(CreateVolumeRequest, CancellationToken)

public virtual Task<Operation<Volume, OperationMetadata>> CreateVolumeAsync(CreateVolumeRequest request, CancellationToken cancellationToken)

Creates a new Volume in a given project and location.

Parameters
Name Description
request CreateVolumeRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateVolumeRequest request = new CreateVolumeRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    VolumeId = "",
    Volume = new Volume(),
};
// Make the request
Operation<Volume, OperationMetadata> response = await netAppClient.CreateVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

CreateVolumeAsync(string, Volume, string, CallSettings)

public virtual Task<Operation<Volume, OperationMetadata>> CreateVolumeAsync(string parent, Volume volume, string volumeId, CallSettings callSettings = null)

Creates a new Volume in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

volume Volume

Required. The volume being created.

volumeId string

Required. Id of the requesting volume. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Volume volume = new Volume();
string volumeId = "";
// Make the request
Operation<Volume, OperationMetadata> response = await netAppClient.CreateVolumeAsync(parent, volume, volumeId);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

CreateVolumeAsync(string, Volume, string, CancellationToken)

public virtual Task<Operation<Volume, OperationMetadata>> CreateVolumeAsync(string parent, Volume volume, string volumeId, CancellationToken cancellationToken)

Creates a new Volume in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

volume Volume

Required. The volume being created.

volumeId string

Required. Id of the requesting volume. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Volume volume = new Volume();
string volumeId = "";
// Make the request
Operation<Volume, OperationMetadata> response = await netAppClient.CreateVolumeAsync(parent, volume, volumeId);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

DeleteActiveDirectory(ActiveDirectoryName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteActiveDirectory(ActiveDirectoryName name, CallSettings callSettings = null)

Delete the active directory specified in the request.

Parameters
Name Description
name ActiveDirectoryName

Required. Name of the active directory.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ActiveDirectoryName name = ActiveDirectoryName.FromProjectLocationActiveDirectory("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]");
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteActiveDirectory(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteActiveDirectory(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteActiveDirectory(DeleteActiveDirectoryRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteActiveDirectory(DeleteActiveDirectoryRequest request, CallSettings callSettings = null)

Delete the active directory specified in the request.

Parameters
Name Description
request DeleteActiveDirectoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
DeleteActiveDirectoryRequest request = new DeleteActiveDirectoryRequest
{
    ActiveDirectoryName = ActiveDirectoryName.FromProjectLocationActiveDirectory("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteActiveDirectory(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteActiveDirectory(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteActiveDirectory(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteActiveDirectory(string name, CallSettings callSettings = null)

Delete the active directory specified in the request.

Parameters
Name Description
name string

Required. Name of the active directory.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/activeDirectories/[ACTIVE_DIRECTORY]";
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteActiveDirectory(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteActiveDirectory(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteActiveDirectoryAsync(ActiveDirectoryName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteActiveDirectoryAsync(ActiveDirectoryName name, CallSettings callSettings = null)

Delete the active directory specified in the request.

Parameters
Name Description
name ActiveDirectoryName

Required. Name of the active directory.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ActiveDirectoryName name = ActiveDirectoryName.FromProjectLocationActiveDirectory("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteActiveDirectoryAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteActiveDirectoryAsync(ActiveDirectoryName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteActiveDirectoryAsync(ActiveDirectoryName name, CancellationToken cancellationToken)

Delete the active directory specified in the request.

Parameters
Name Description
name ActiveDirectoryName

Required. Name of the active directory.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ActiveDirectoryName name = ActiveDirectoryName.FromProjectLocationActiveDirectory("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteActiveDirectoryAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteActiveDirectoryAsync(DeleteActiveDirectoryRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteActiveDirectoryAsync(DeleteActiveDirectoryRequest request, CallSettings callSettings = null)

Delete the active directory specified in the request.

Parameters
Name Description
request DeleteActiveDirectoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteActiveDirectoryRequest request = new DeleteActiveDirectoryRequest
{
    ActiveDirectoryName = ActiveDirectoryName.FromProjectLocationActiveDirectory("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteActiveDirectoryAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteActiveDirectoryAsync(DeleteActiveDirectoryRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteActiveDirectoryAsync(DeleteActiveDirectoryRequest request, CancellationToken cancellationToken)

Delete the active directory specified in the request.

Parameters
Name Description
request DeleteActiveDirectoryRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteActiveDirectoryRequest request = new DeleteActiveDirectoryRequest
{
    ActiveDirectoryName = ActiveDirectoryName.FromProjectLocationActiveDirectory("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteActiveDirectoryAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteActiveDirectoryAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteActiveDirectoryAsync(string name, CallSettings callSettings = null)

Delete the active directory specified in the request.

Parameters
Name Description
name string

Required. Name of the active directory.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/activeDirectories/[ACTIVE_DIRECTORY]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteActiveDirectoryAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteActiveDirectoryAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteActiveDirectoryAsync(string name, CancellationToken cancellationToken)

Delete the active directory specified in the request.

Parameters
Name Description
name string

Required. Name of the active directory.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/activeDirectories/[ACTIVE_DIRECTORY]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteActiveDirectoryAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackup(BackupName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteBackup(BackupName name, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup.

Parameters
Name Description
name BackupName

Required. The backup resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
BackupName name = BackupName.FromProjectLocationBackupVaultBackup("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]", "[BACKUP]");
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteBackup(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteBackup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackup(DeleteBackupRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteBackup(DeleteBackupRequest request, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup.

Parameters
Name Description
request DeleteBackupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
DeleteBackupRequest request = new DeleteBackupRequest
{
    BackupName = BackupName.FromProjectLocationBackupVaultBackup("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]", "[BACKUP]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteBackup(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteBackup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackup(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteBackup(string name, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup.

Parameters
Name Description
name string

Required. The backup resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]/backups/[BACKUP]";
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteBackup(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteBackup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupAsync(BackupName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupAsync(BackupName name, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup.

Parameters
Name Description
name BackupName

Required. The backup resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupName name = BackupName.FromProjectLocationBackupVaultBackup("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]", "[BACKUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupAsync(BackupName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupAsync(BackupName name, CancellationToken cancellationToken)

Warning! This operation will permanently delete the backup.

Parameters
Name Description
name BackupName

Required. The backup resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupName name = BackupName.FromProjectLocationBackupVaultBackup("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]", "[BACKUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupAsync(DeleteBackupRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupAsync(DeleteBackupRequest request, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup.

Parameters
Name Description
request DeleteBackupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteBackupRequest request = new DeleteBackupRequest
{
    BackupName = BackupName.FromProjectLocationBackupVaultBackup("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]", "[BACKUP]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupAsync(DeleteBackupRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupAsync(DeleteBackupRequest request, CancellationToken cancellationToken)

Warning! This operation will permanently delete the backup.

Parameters
Name Description
request DeleteBackupRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteBackupRequest request = new DeleteBackupRequest
{
    BackupName = BackupName.FromProjectLocationBackupVaultBackup("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]", "[BACKUP]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupAsync(string name, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup.

Parameters
Name Description
name string

Required. The backup resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]/backups/[BACKUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupAsync(string name, CancellationToken cancellationToken)

Warning! This operation will permanently delete the backup.

Parameters
Name Description
name string

Required. The backup resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]/backups/[BACKUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupPolicy(BackupPolicyName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteBackupPolicy(BackupPolicyName name, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup policy.

Parameters
Name Description
name BackupPolicyName

Required. The backup policy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
BackupPolicyName name = BackupPolicyName.FromProjectLocationBackupPolicy("[PROJECT]", "[LOCATION]", "[BACKUP_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteBackupPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteBackupPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupPolicy(DeleteBackupPolicyRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteBackupPolicy(DeleteBackupPolicyRequest request, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup policy.

Parameters
Name Description
request DeleteBackupPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
DeleteBackupPolicyRequest request = new DeleteBackupPolicyRequest
{
    BackupPolicyName = BackupPolicyName.FromProjectLocationBackupPolicy("[PROJECT]", "[LOCATION]", "[BACKUP_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteBackupPolicy(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteBackupPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteBackupPolicy(string name, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup policy.

Parameters
Name Description
name string

Required. The backup policy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPolicies/[BACKUP_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteBackupPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteBackupPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupPolicyAsync(BackupPolicyName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupPolicyAsync(BackupPolicyName name, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup policy.

Parameters
Name Description
name BackupPolicyName

Required. The backup policy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupPolicyName name = BackupPolicyName.FromProjectLocationBackupPolicy("[PROJECT]", "[LOCATION]", "[BACKUP_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupPolicyAsync(BackupPolicyName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupPolicyAsync(BackupPolicyName name, CancellationToken cancellationToken)

Warning! This operation will permanently delete the backup policy.

Parameters
Name Description
name BackupPolicyName

Required. The backup policy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupPolicyName name = BackupPolicyName.FromProjectLocationBackupPolicy("[PROJECT]", "[LOCATION]", "[BACKUP_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupPolicyAsync(DeleteBackupPolicyRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupPolicyAsync(DeleteBackupPolicyRequest request, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup policy.

Parameters
Name Description
request DeleteBackupPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteBackupPolicyRequest request = new DeleteBackupPolicyRequest
{
    BackupPolicyName = BackupPolicyName.FromProjectLocationBackupPolicy("[PROJECT]", "[LOCATION]", "[BACKUP_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupPolicyAsync(DeleteBackupPolicyRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupPolicyAsync(DeleteBackupPolicyRequest request, CancellationToken cancellationToken)

Warning! This operation will permanently delete the backup policy.

Parameters
Name Description
request DeleteBackupPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteBackupPolicyRequest request = new DeleteBackupPolicyRequest
{
    BackupPolicyName = BackupPolicyName.FromProjectLocationBackupPolicy("[PROJECT]", "[LOCATION]", "[BACKUP_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupPolicyAsync(string name, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup policy.

Parameters
Name Description
name string

Required. The backup policy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPolicies/[BACKUP_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupPolicyAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupPolicyAsync(string name, CancellationToken cancellationToken)

Warning! This operation will permanently delete the backup policy.

Parameters
Name Description
name string

Required. The backup policy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPolicies/[BACKUP_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupVault(BackupVaultName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteBackupVault(BackupVaultName name, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup vault.

Parameters
Name Description
name BackupVaultName

Required. The backupVault resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
BackupVaultName name = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]");
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteBackupVault(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteBackupVault(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupVault(DeleteBackupVaultRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteBackupVault(DeleteBackupVaultRequest request, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup vault.

Parameters
Name Description
request DeleteBackupVaultRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
DeleteBackupVaultRequest request = new DeleteBackupVaultRequest
{
    BackupVaultName = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteBackupVault(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteBackupVault(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupVault(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteBackupVault(string name, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup vault.

Parameters
Name Description
name string

Required. The backupVault resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]";
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteBackupVault(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteBackupVault(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupVaultAsync(BackupVaultName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupVaultAsync(BackupVaultName name, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup vault.

Parameters
Name Description
name BackupVaultName

Required. The backupVault resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupVaultName name = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupVaultAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupVaultAsync(BackupVaultName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupVaultAsync(BackupVaultName name, CancellationToken cancellationToken)

Warning! This operation will permanently delete the backup vault.

Parameters
Name Description
name BackupVaultName

Required. The backupVault resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupVaultName name = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupVaultAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupVaultAsync(DeleteBackupVaultRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupVaultAsync(DeleteBackupVaultRequest request, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup vault.

Parameters
Name Description
request DeleteBackupVaultRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteBackupVaultRequest request = new DeleteBackupVaultRequest
{
    BackupVaultName = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupVaultAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupVaultAsync(DeleteBackupVaultRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupVaultAsync(DeleteBackupVaultRequest request, CancellationToken cancellationToken)

Warning! This operation will permanently delete the backup vault.

Parameters
Name Description
request DeleteBackupVaultRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteBackupVaultRequest request = new DeleteBackupVaultRequest
{
    BackupVaultName = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupVaultAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupVaultAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupVaultAsync(string name, CallSettings callSettings = null)

Warning! This operation will permanently delete the backup vault.

Parameters
Name Description
name string

Required. The backupVault resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupVaultAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteBackupVaultAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupVaultAsync(string name, CancellationToken cancellationToken)

Warning! This operation will permanently delete the backup vault.

Parameters
Name Description
name string

Required. The backupVault resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteBackupVaultAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteKmsConfig(DeleteKmsConfigRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteKmsConfig(DeleteKmsConfigRequest request, CallSettings callSettings = null)

Warning! This operation will permanently delete the Kms config.

Parameters
Name Description
request DeleteKmsConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
DeleteKmsConfigRequest request = new DeleteKmsConfigRequest
{
    KmsConfigName = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteKmsConfig(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteKmsConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteKmsConfig(KmsConfigName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteKmsConfig(KmsConfigName name, CallSettings callSettings = null)

Warning! This operation will permanently delete the Kms config.

Parameters
Name Description
name KmsConfigName

Required. Name of the KmsConfig.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
KmsConfigName name = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteKmsConfig(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteKmsConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteKmsConfig(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteKmsConfig(string name, CallSettings callSettings = null)

Warning! This operation will permanently delete the Kms config.

Parameters
Name Description
name string

Required. Name of the KmsConfig.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/kmsConfigs/[KMS_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteKmsConfig(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteKmsConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteKmsConfigAsync(DeleteKmsConfigRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteKmsConfigAsync(DeleteKmsConfigRequest request, CallSettings callSettings = null)

Warning! This operation will permanently delete the Kms config.

Parameters
Name Description
request DeleteKmsConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteKmsConfigRequest request = new DeleteKmsConfigRequest
{
    KmsConfigName = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteKmsConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteKmsConfigAsync(DeleteKmsConfigRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteKmsConfigAsync(DeleteKmsConfigRequest request, CancellationToken cancellationToken)

Warning! This operation will permanently delete the Kms config.

Parameters
Name Description
request DeleteKmsConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteKmsConfigRequest request = new DeleteKmsConfigRequest
{
    KmsConfigName = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteKmsConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteKmsConfigAsync(KmsConfigName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteKmsConfigAsync(KmsConfigName name, CallSettings callSettings = null)

Warning! This operation will permanently delete the Kms config.

Parameters
Name Description
name KmsConfigName

Required. Name of the KmsConfig.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
KmsConfigName name = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteKmsConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteKmsConfigAsync(KmsConfigName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteKmsConfigAsync(KmsConfigName name, CancellationToken cancellationToken)

Warning! This operation will permanently delete the Kms config.

Parameters
Name Description
name KmsConfigName

Required. Name of the KmsConfig.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
KmsConfigName name = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteKmsConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteKmsConfigAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteKmsConfigAsync(string name, CallSettings callSettings = null)

Warning! This operation will permanently delete the Kms config.

Parameters
Name Description
name string

Required. Name of the KmsConfig.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/kmsConfigs/[KMS_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteKmsConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteKmsConfigAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteKmsConfigAsync(string name, CancellationToken cancellationToken)

Warning! This operation will permanently delete the Kms config.

Parameters
Name Description
name string

Required. Name of the KmsConfig.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/kmsConfigs/[KMS_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteKmsConfigAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteReplication(DeleteReplicationRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteReplication(DeleteReplicationRequest request, CallSettings callSettings = null)

Deletes a replication.

Parameters
Name Description
request DeleteReplicationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
DeleteReplicationRequest request = new DeleteReplicationRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteReplication(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteReplication(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteReplication(ReplicationName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteReplication(ReplicationName name, CallSettings callSettings = null)

Deletes a replication.

Parameters
Name Description
name ReplicationName

Required. The replication resource name, in the format projects/*/locations/*/volumes/*/replications/{replication_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ReplicationName name = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]");
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteReplication(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteReplication(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteReplication(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteReplication(string name, CallSettings callSettings = null)

Deletes a replication.

Parameters
Name Description
name string

Required. The replication resource name, in the format projects/*/locations/*/volumes/*/replications/{replication_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/replications/[REPLICATION]";
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteReplication(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteReplication(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteReplicationAsync(DeleteReplicationRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReplicationAsync(DeleteReplicationRequest request, CallSettings callSettings = null)

Deletes a replication.

Parameters
Name Description
request DeleteReplicationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteReplicationRequest request = new DeleteReplicationRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteReplicationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteReplicationAsync(DeleteReplicationRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReplicationAsync(DeleteReplicationRequest request, CancellationToken cancellationToken)

Deletes a replication.

Parameters
Name Description
request DeleteReplicationRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteReplicationRequest request = new DeleteReplicationRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteReplicationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteReplicationAsync(ReplicationName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReplicationAsync(ReplicationName name, CallSettings callSettings = null)

Deletes a replication.

Parameters
Name Description
name ReplicationName

Required. The replication resource name, in the format projects/*/locations/*/volumes/*/replications/{replication_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ReplicationName name = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteReplicationAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteReplicationAsync(ReplicationName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReplicationAsync(ReplicationName name, CancellationToken cancellationToken)

Deletes a replication.

Parameters
Name Description
name ReplicationName

Required. The replication resource name, in the format projects/*/locations/*/volumes/*/replications/{replication_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ReplicationName name = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteReplicationAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteReplicationAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReplicationAsync(string name, CallSettings callSettings = null)

Deletes a replication.

Parameters
Name Description
name string

Required. The replication resource name, in the format projects/*/locations/*/volumes/*/replications/{replication_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/replications/[REPLICATION]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteReplicationAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteReplicationAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReplicationAsync(string name, CancellationToken cancellationToken)

Deletes a replication.

Parameters
Name Description
name string

Required. The replication resource name, in the format projects/*/locations/*/volumes/*/replications/{replication_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/replications/[REPLICATION]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteReplicationAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSnapshot(DeleteSnapshotRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSnapshot(DeleteSnapshotRequest request, CallSettings callSettings = null)

Deletes a snapshot.

Parameters
Name Description
request DeleteSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
DeleteSnapshotRequest request = new DeleteSnapshotRequest
{
    SnapshotName = SnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteSnapshot(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteSnapshot(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSnapshot(SnapshotName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSnapshot(SnapshotName name, CallSettings callSettings = null)

Deletes a snapshot.

Parameters
Name Description
name SnapshotName

Required. The snapshot resource name, in the format projects/*/locations/*/volumes/*/snapshots/{snapshot_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
SnapshotName name = SnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteSnapshot(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteSnapshot(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSnapshot(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSnapshot(string name, CallSettings callSettings = null)

Deletes a snapshot.

Parameters
Name Description
name string

Required. The snapshot resource name, in the format projects/*/locations/*/volumes/*/snapshots/{snapshot_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteSnapshot(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteSnapshot(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSnapshotAsync(DeleteSnapshotRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSnapshotAsync(DeleteSnapshotRequest request, CallSettings callSettings = null)

Deletes a snapshot.

Parameters
Name Description
request DeleteSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteSnapshotRequest request = new DeleteSnapshotRequest
{
    SnapshotName = SnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteSnapshotAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSnapshotAsync(DeleteSnapshotRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSnapshotAsync(DeleteSnapshotRequest request, CancellationToken cancellationToken)

Deletes a snapshot.

Parameters
Name Description
request DeleteSnapshotRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteSnapshotRequest request = new DeleteSnapshotRequest
{
    SnapshotName = SnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteSnapshotAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSnapshotAsync(SnapshotName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSnapshotAsync(SnapshotName name, CallSettings callSettings = null)

Deletes a snapshot.

Parameters
Name Description
name SnapshotName

Required. The snapshot resource name, in the format projects/*/locations/*/volumes/*/snapshots/{snapshot_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
SnapshotName name = SnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteSnapshotAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSnapshotAsync(SnapshotName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSnapshotAsync(SnapshotName name, CancellationToken cancellationToken)

Deletes a snapshot.

Parameters
Name Description
name SnapshotName

Required. The snapshot resource name, in the format projects/*/locations/*/volumes/*/snapshots/{snapshot_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
SnapshotName name = SnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteSnapshotAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSnapshotAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSnapshotAsync(string name, CallSettings callSettings = null)

Deletes a snapshot.

Parameters
Name Description
name string

Required. The snapshot resource name, in the format projects/*/locations/*/volumes/*/snapshots/{snapshot_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteSnapshotAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSnapshotAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSnapshotAsync(string name, CancellationToken cancellationToken)

Deletes a snapshot.

Parameters
Name Description
name string

Required. The snapshot resource name, in the format projects/*/locations/*/volumes/*/snapshots/{snapshot_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteSnapshotAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteStoragePool(DeleteStoragePoolRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteStoragePool(DeleteStoragePoolRequest request, CallSettings callSettings = null)

Warning! This operation will permanently delete the storage pool.

Parameters
Name Description
request DeleteStoragePoolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
DeleteStoragePoolRequest request = new DeleteStoragePoolRequest
{
    StoragePoolName = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteStoragePool(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteStoragePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteStoragePool(StoragePoolName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteStoragePool(StoragePoolName name, CallSettings callSettings = null)

Warning! This operation will permanently delete the storage pool.

Parameters
Name Description
name StoragePoolName

Required. Name of the storage pool

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
StoragePoolName name = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]");
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteStoragePool(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteStoragePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteStoragePool(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteStoragePool(string name, CallSettings callSettings = null)

Warning! This operation will permanently delete the storage pool.

Parameters
Name Description
name string

Required. Name of the storage pool

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/storagePools/[STORAGE_POOL]";
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteStoragePool(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteStoragePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteStoragePoolAsync(DeleteStoragePoolRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteStoragePoolAsync(DeleteStoragePoolRequest request, CallSettings callSettings = null)

Warning! This operation will permanently delete the storage pool.

Parameters
Name Description
request DeleteStoragePoolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteStoragePoolRequest request = new DeleteStoragePoolRequest
{
    StoragePoolName = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteStoragePoolAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteStoragePoolAsync(DeleteStoragePoolRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteStoragePoolAsync(DeleteStoragePoolRequest request, CancellationToken cancellationToken)

Warning! This operation will permanently delete the storage pool.

Parameters
Name Description
request DeleteStoragePoolRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteStoragePoolRequest request = new DeleteStoragePoolRequest
{
    StoragePoolName = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteStoragePoolAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteStoragePoolAsync(StoragePoolName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteStoragePoolAsync(StoragePoolName name, CallSettings callSettings = null)

Warning! This operation will permanently delete the storage pool.

Parameters
Name Description
name StoragePoolName

Required. Name of the storage pool

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
StoragePoolName name = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteStoragePoolAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteStoragePoolAsync(StoragePoolName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteStoragePoolAsync(StoragePoolName name, CancellationToken cancellationToken)

Warning! This operation will permanently delete the storage pool.

Parameters
Name Description
name StoragePoolName

Required. Name of the storage pool

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
StoragePoolName name = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteStoragePoolAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteStoragePoolAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteStoragePoolAsync(string name, CallSettings callSettings = null)

Warning! This operation will permanently delete the storage pool.

Parameters
Name Description
name string

Required. Name of the storage pool

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/storagePools/[STORAGE_POOL]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteStoragePoolAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteStoragePoolAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteStoragePoolAsync(string name, CancellationToken cancellationToken)

Warning! This operation will permanently delete the storage pool.

Parameters
Name Description
name string

Required. Name of the storage pool

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/storagePools/[STORAGE_POOL]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteStoragePoolAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteVolume(DeleteVolumeRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteVolume(DeleteVolumeRequest request, CallSettings callSettings = null)

Deletes a single Volume.

Parameters
Name Description
request DeleteVolumeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
DeleteVolumeRequest request = new DeleteVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteVolume(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteVolume(VolumeName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteVolume(VolumeName name, CallSettings callSettings = null)

Deletes a single Volume.

Parameters
Name Description
name VolumeName

Required. Name of the volume

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteVolume(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteVolume(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteVolume(string name, CallSettings callSettings = null)

Deletes a single Volume.

Parameters
Name Description
name string

Required. Name of the volume

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteVolume(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = netAppClient.PollOnceDeleteVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteVolumeAsync(DeleteVolumeRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteVolumeAsync(DeleteVolumeRequest request, CallSettings callSettings = null)

Deletes a single Volume.

Parameters
Name Description
request DeleteVolumeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteVolumeRequest request = new DeleteVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteVolumeAsync(DeleteVolumeRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteVolumeAsync(DeleteVolumeRequest request, CancellationToken cancellationToken)

Deletes a single Volume.

Parameters
Name Description
request DeleteVolumeRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteVolumeRequest request = new DeleteVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteVolumeAsync(VolumeName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteVolumeAsync(VolumeName name, CallSettings callSettings = null)

Deletes a single Volume.

Parameters
Name Description
name VolumeName

Required. Name of the volume

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteVolumeAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteVolumeAsync(VolumeName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteVolumeAsync(VolumeName name, CancellationToken cancellationToken)

Deletes a single Volume.

Parameters
Name Description
name VolumeName

Required. Name of the volume

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteVolumeAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteVolumeAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteVolumeAsync(string name, CallSettings callSettings = null)

Deletes a single Volume.

Parameters
Name Description
name string

Required. Name of the volume

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteVolumeAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteVolumeAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteVolumeAsync(string name, CancellationToken cancellationToken)

Deletes a single Volume.

Parameters
Name Description
name string

Required. Name of the volume

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteVolumeAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await netAppClient.PollOnceDeleteVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

EncryptVolumes(EncryptVolumesRequest, CallSettings)

public virtual Operation<KmsConfig, OperationMetadata> EncryptVolumes(EncryptVolumesRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request EncryptVolumesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationKmsConfigOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
EncryptVolumesRequest request = new EncryptVolumesRequest
{
    KmsConfigName = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]"),
};
// Make the request
Operation<KmsConfig, OperationMetadata> response = netAppClient.EncryptVolumes(request);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = netAppClient.PollOnceEncryptVolumes(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

EncryptVolumesAsync(EncryptVolumesRequest, CallSettings)

public virtual Task<Operation<KmsConfig, OperationMetadata>> EncryptVolumesAsync(EncryptVolumesRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request EncryptVolumesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
EncryptVolumesRequest request = new EncryptVolumesRequest
{
    KmsConfigName = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]"),
};
// Make the request
Operation<KmsConfig, OperationMetadata> response = await netAppClient.EncryptVolumesAsync(request);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = await netAppClient.PollOnceEncryptVolumesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

EncryptVolumesAsync(EncryptVolumesRequest, CancellationToken)

public virtual Task<Operation<KmsConfig, OperationMetadata>> EncryptVolumesAsync(EncryptVolumesRequest request, CancellationToken cancellationToken)

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

Parameters
Name Description
request EncryptVolumesRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
EncryptVolumesRequest request = new EncryptVolumesRequest
{
    KmsConfigName = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]"),
};
// Make the request
Operation<KmsConfig, OperationMetadata> response = await netAppClient.EncryptVolumesAsync(request);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = await netAppClient.PollOnceEncryptVolumesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

GetActiveDirectory(ActiveDirectoryName, CallSettings)

public virtual ActiveDirectory GetActiveDirectory(ActiveDirectoryName name, CallSettings callSettings = null)

Describes a specified active directory.

Parameters
Name Description
name ActiveDirectoryName

Required. Name of the active directory.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ActiveDirectory

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ActiveDirectoryName name = ActiveDirectoryName.FromProjectLocationActiveDirectory("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]");
// Make the request
ActiveDirectory response = netAppClient.GetActiveDirectory(name);

GetActiveDirectory(GetActiveDirectoryRequest, CallSettings)

public virtual ActiveDirectory GetActiveDirectory(GetActiveDirectoryRequest request, CallSettings callSettings = null)

Describes a specified active directory.

Parameters
Name Description
request GetActiveDirectoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ActiveDirectory

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
GetActiveDirectoryRequest request = new GetActiveDirectoryRequest
{
    ActiveDirectoryName = ActiveDirectoryName.FromProjectLocationActiveDirectory("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]"),
};
// Make the request
ActiveDirectory response = netAppClient.GetActiveDirectory(request);

GetActiveDirectory(string, CallSettings)

public virtual ActiveDirectory GetActiveDirectory(string name, CallSettings callSettings = null)

Describes a specified active directory.

Parameters
Name Description
name string

Required. Name of the active directory.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ActiveDirectory

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/activeDirectories/[ACTIVE_DIRECTORY]";
// Make the request
ActiveDirectory response = netAppClient.GetActiveDirectory(name);

GetActiveDirectoryAsync(ActiveDirectoryName, CallSettings)

public virtual Task<ActiveDirectory> GetActiveDirectoryAsync(ActiveDirectoryName name, CallSettings callSettings = null)

Describes a specified active directory.

Parameters
Name Description
name ActiveDirectoryName

Required. Name of the active directory.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskActiveDirectory

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ActiveDirectoryName name = ActiveDirectoryName.FromProjectLocationActiveDirectory("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]");
// Make the request
ActiveDirectory response = await netAppClient.GetActiveDirectoryAsync(name);

GetActiveDirectoryAsync(ActiveDirectoryName, CancellationToken)

public virtual Task<ActiveDirectory> GetActiveDirectoryAsync(ActiveDirectoryName name, CancellationToken cancellationToken)

Describes a specified active directory.

Parameters
Name Description
name ActiveDirectoryName

Required. Name of the active directory.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskActiveDirectory

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ActiveDirectoryName name = ActiveDirectoryName.FromProjectLocationActiveDirectory("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]");
// Make the request
ActiveDirectory response = await netAppClient.GetActiveDirectoryAsync(name);

GetActiveDirectoryAsync(GetActiveDirectoryRequest, CallSettings)

public virtual Task<ActiveDirectory> GetActiveDirectoryAsync(GetActiveDirectoryRequest request, CallSettings callSettings = null)

Describes a specified active directory.

Parameters
Name Description
request GetActiveDirectoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskActiveDirectory

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetActiveDirectoryRequest request = new GetActiveDirectoryRequest
{
    ActiveDirectoryName = ActiveDirectoryName.FromProjectLocationActiveDirectory("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]"),
};
// Make the request
ActiveDirectory response = await netAppClient.GetActiveDirectoryAsync(request);

GetActiveDirectoryAsync(GetActiveDirectoryRequest, CancellationToken)

public virtual Task<ActiveDirectory> GetActiveDirectoryAsync(GetActiveDirectoryRequest request, CancellationToken cancellationToken)

Describes a specified active directory.

Parameters
Name Description
request GetActiveDirectoryRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskActiveDirectory

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetActiveDirectoryRequest request = new GetActiveDirectoryRequest
{
    ActiveDirectoryName = ActiveDirectoryName.FromProjectLocationActiveDirectory("[PROJECT]", "[LOCATION]", "[ACTIVE_DIRECTORY]"),
};
// Make the request
ActiveDirectory response = await netAppClient.GetActiveDirectoryAsync(request);

GetActiveDirectoryAsync(string, CallSettings)

public virtual Task<ActiveDirectory> GetActiveDirectoryAsync(string name, CallSettings callSettings = null)

Describes a specified active directory.

Parameters
Name Description
name string

Required. Name of the active directory.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskActiveDirectory

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/activeDirectories/[ACTIVE_DIRECTORY]";
// Make the request
ActiveDirectory response = await netAppClient.GetActiveDirectoryAsync(name);

GetActiveDirectoryAsync(string, CancellationToken)

public virtual Task<ActiveDirectory> GetActiveDirectoryAsync(string name, CancellationToken cancellationToken)

Describes a specified active directory.

Parameters
Name Description
name string

Required. Name of the active directory.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskActiveDirectory

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/activeDirectories/[ACTIVE_DIRECTORY]";
// Make the request
ActiveDirectory response = await netAppClient.GetActiveDirectoryAsync(name);

GetBackup(BackupName, CallSettings)

public virtual Backup GetBackup(BackupName name, CallSettings callSettings = null)

Returns the description of the specified backup

Parameters
Name Description
name BackupName

Required. The backup resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Backup

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
BackupName name = BackupName.FromProjectLocationBackupVaultBackup("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]", "[BACKUP]");
// Make the request
Backup response = netAppClient.GetBackup(name);

GetBackup(GetBackupRequest, CallSettings)

public virtual Backup GetBackup(GetBackupRequest request, CallSettings callSettings = null)

Returns the description of the specified backup

Parameters
Name Description
request GetBackupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Backup

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
GetBackupRequest request = new GetBackupRequest
{
    BackupName = BackupName.FromProjectLocationBackupVaultBackup("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]", "[BACKUP]"),
};
// Make the request
Backup response = netAppClient.GetBackup(request);

GetBackup(string, CallSettings)

public virtual Backup GetBackup(string name, CallSettings callSettings = null)

Returns the description of the specified backup

Parameters
Name Description
name string

Required. The backup resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Backup

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]/backups/[BACKUP]";
// Make the request
Backup response = netAppClient.GetBackup(name);

GetBackupAsync(BackupName, CallSettings)

public virtual Task<Backup> GetBackupAsync(BackupName name, CallSettings callSettings = null)

Returns the description of the specified backup

Parameters
Name Description
name BackupName

Required. The backup resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBackup

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupName name = BackupName.FromProjectLocationBackupVaultBackup("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]", "[BACKUP]");
// Make the request
Backup response = await netAppClient.GetBackupAsync(name);

GetBackupAsync(BackupName, CancellationToken)

public virtual Task<Backup> GetBackupAsync(BackupName name, CancellationToken cancellationToken)

Returns the description of the specified backup

Parameters
Name Description
name BackupName

Required. The backup resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackup

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupName name = BackupName.FromProjectLocationBackupVaultBackup("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]", "[BACKUP]");
// Make the request
Backup response = await netAppClient.GetBackupAsync(name);

GetBackupAsync(GetBackupRequest, CallSettings)

public virtual Task<Backup> GetBackupAsync(GetBackupRequest request, CallSettings callSettings = null)

Returns the description of the specified backup

Parameters
Name Description
request GetBackupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBackup

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetBackupRequest request = new GetBackupRequest
{
    BackupName = BackupName.FromProjectLocationBackupVaultBackup("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]", "[BACKUP]"),
};
// Make the request
Backup response = await netAppClient.GetBackupAsync(request);

GetBackupAsync(GetBackupRequest, CancellationToken)

public virtual Task<Backup> GetBackupAsync(GetBackupRequest request, CancellationToken cancellationToken)

Returns the description of the specified backup

Parameters
Name Description
request GetBackupRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackup

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetBackupRequest request = new GetBackupRequest
{
    BackupName = BackupName.FromProjectLocationBackupVaultBackup("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]", "[BACKUP]"),
};
// Make the request
Backup response = await netAppClient.GetBackupAsync(request);

GetBackupAsync(string, CallSettings)

public virtual Task<Backup> GetBackupAsync(string name, CallSettings callSettings = null)

Returns the description of the specified backup

Parameters
Name Description
name string

Required. The backup resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBackup

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]/backups/[BACKUP]";
// Make the request
Backup response = await netAppClient.GetBackupAsync(name);

GetBackupAsync(string, CancellationToken)

public virtual Task<Backup> GetBackupAsync(string name, CancellationToken cancellationToken)

Returns the description of the specified backup

Parameters
Name Description
name string

Required. The backup resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackup

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]/backups/[BACKUP]";
// Make the request
Backup response = await netAppClient.GetBackupAsync(name);

GetBackupPolicy(BackupPolicyName, CallSettings)

public virtual BackupPolicy GetBackupPolicy(BackupPolicyName name, CallSettings callSettings = null)

Returns the description of the specified backup policy by backup_policy_id.

Parameters
Name Description
name BackupPolicyName

Required. The backupPolicy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BackupPolicy

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
BackupPolicyName name = BackupPolicyName.FromProjectLocationBackupPolicy("[PROJECT]", "[LOCATION]", "[BACKUP_POLICY]");
// Make the request
BackupPolicy response = netAppClient.GetBackupPolicy(name);

GetBackupPolicy(GetBackupPolicyRequest, CallSettings)

public virtual BackupPolicy GetBackupPolicy(GetBackupPolicyRequest request, CallSettings callSettings = null)

Returns the description of the specified backup policy by backup_policy_id.

Parameters
Name Description
request GetBackupPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BackupPolicy

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
GetBackupPolicyRequest request = new GetBackupPolicyRequest
{
    BackupPolicyName = BackupPolicyName.FromProjectLocationBackupPolicy("[PROJECT]", "[LOCATION]", "[BACKUP_POLICY]"),
};
// Make the request
BackupPolicy response = netAppClient.GetBackupPolicy(request);

GetBackupPolicy(string, CallSettings)

public virtual BackupPolicy GetBackupPolicy(string name, CallSettings callSettings = null)

Returns the description of the specified backup policy by backup_policy_id.

Parameters
Name Description
name string

Required. The backupPolicy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BackupPolicy

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPolicies/[BACKUP_POLICY]";
// Make the request
BackupPolicy response = netAppClient.GetBackupPolicy(name);

GetBackupPolicyAsync(BackupPolicyName, CallSettings)

public virtual Task<BackupPolicy> GetBackupPolicyAsync(BackupPolicyName name, CallSettings callSettings = null)

Returns the description of the specified backup policy by backup_policy_id.

Parameters
Name Description
name BackupPolicyName

Required. The backupPolicy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBackupPolicy

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupPolicyName name = BackupPolicyName.FromProjectLocationBackupPolicy("[PROJECT]", "[LOCATION]", "[BACKUP_POLICY]");
// Make the request
BackupPolicy response = await netAppClient.GetBackupPolicyAsync(name);

GetBackupPolicyAsync(BackupPolicyName, CancellationToken)

public virtual Task<BackupPolicy> GetBackupPolicyAsync(BackupPolicyName name, CancellationToken cancellationToken)

Returns the description of the specified backup policy by backup_policy_id.

Parameters
Name Description
name BackupPolicyName

Required. The backupPolicy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackupPolicy

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupPolicyName name = BackupPolicyName.FromProjectLocationBackupPolicy("[PROJECT]", "[LOCATION]", "[BACKUP_POLICY]");
// Make the request
BackupPolicy response = await netAppClient.GetBackupPolicyAsync(name);

GetBackupPolicyAsync(GetBackupPolicyRequest, CallSettings)

public virtual Task<BackupPolicy> GetBackupPolicyAsync(GetBackupPolicyRequest request, CallSettings callSettings = null)

Returns the description of the specified backup policy by backup_policy_id.

Parameters
Name Description
request GetBackupPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBackupPolicy

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetBackupPolicyRequest request = new GetBackupPolicyRequest
{
    BackupPolicyName = BackupPolicyName.FromProjectLocationBackupPolicy("[PROJECT]", "[LOCATION]", "[BACKUP_POLICY]"),
};
// Make the request
BackupPolicy response = await netAppClient.GetBackupPolicyAsync(request);

GetBackupPolicyAsync(GetBackupPolicyRequest, CancellationToken)

public virtual Task<BackupPolicy> GetBackupPolicyAsync(GetBackupPolicyRequest request, CancellationToken cancellationToken)

Returns the description of the specified backup policy by backup_policy_id.

Parameters
Name Description
request GetBackupPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackupPolicy

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetBackupPolicyRequest request = new GetBackupPolicyRequest
{
    BackupPolicyName = BackupPolicyName.FromProjectLocationBackupPolicy("[PROJECT]", "[LOCATION]", "[BACKUP_POLICY]"),
};
// Make the request
BackupPolicy response = await netAppClient.GetBackupPolicyAsync(request);

GetBackupPolicyAsync(string, CallSettings)

public virtual Task<BackupPolicy> GetBackupPolicyAsync(string name, CallSettings callSettings = null)

Returns the description of the specified backup policy by backup_policy_id.

Parameters
Name Description
name string

Required. The backupPolicy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBackupPolicy

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPolicies/[BACKUP_POLICY]";
// Make the request
BackupPolicy response = await netAppClient.GetBackupPolicyAsync(name);

GetBackupPolicyAsync(string, CancellationToken)

public virtual Task<BackupPolicy> GetBackupPolicyAsync(string name, CancellationToken cancellationToken)

Returns the description of the specified backup policy by backup_policy_id.

Parameters
Name Description
name string

Required. The backupPolicy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackupPolicy

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPolicies/[BACKUP_POLICY]";
// Make the request
BackupPolicy response = await netAppClient.GetBackupPolicyAsync(name);

GetBackupVault(BackupVaultName, CallSettings)

public virtual BackupVault GetBackupVault(BackupVaultName name, CallSettings callSettings = null)

Returns the description of the specified backup vault

Parameters
Name Description
name BackupVaultName

Required. The backupVault resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BackupVault

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
BackupVaultName name = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]");
// Make the request
BackupVault response = netAppClient.GetBackupVault(name);

GetBackupVault(GetBackupVaultRequest, CallSettings)

public virtual BackupVault GetBackupVault(GetBackupVaultRequest request, CallSettings callSettings = null)

Returns the description of the specified backup vault

Parameters
Name Description
request GetBackupVaultRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BackupVault

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
GetBackupVaultRequest request = new GetBackupVaultRequest
{
    BackupVaultName = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]"),
};
// Make the request
BackupVault response = netAppClient.GetBackupVault(request);

GetBackupVault(string, CallSettings)

public virtual BackupVault GetBackupVault(string name, CallSettings callSettings = null)

Returns the description of the specified backup vault

Parameters
Name Description
name string

Required. The backupVault resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BackupVault

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]";
// Make the request
BackupVault response = netAppClient.GetBackupVault(name);

GetBackupVaultAsync(BackupVaultName, CallSettings)

public virtual Task<BackupVault> GetBackupVaultAsync(BackupVaultName name, CallSettings callSettings = null)

Returns the description of the specified backup vault

Parameters
Name Description
name BackupVaultName

Required. The backupVault resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBackupVault

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupVaultName name = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]");
// Make the request
BackupVault response = await netAppClient.GetBackupVaultAsync(name);

GetBackupVaultAsync(BackupVaultName, CancellationToken)

public virtual Task<BackupVault> GetBackupVaultAsync(BackupVaultName name, CancellationToken cancellationToken)

Returns the description of the specified backup vault

Parameters
Name Description
name BackupVaultName

Required. The backupVault resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackupVault

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupVaultName name = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]");
// Make the request
BackupVault response = await netAppClient.GetBackupVaultAsync(name);

GetBackupVaultAsync(GetBackupVaultRequest, CallSettings)

public virtual Task<BackupVault> GetBackupVaultAsync(GetBackupVaultRequest request, CallSettings callSettings = null)

Returns the description of the specified backup vault

Parameters
Name Description
request GetBackupVaultRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBackupVault

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetBackupVaultRequest request = new GetBackupVaultRequest
{
    BackupVaultName = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]"),
};
// Make the request
BackupVault response = await netAppClient.GetBackupVaultAsync(request);

GetBackupVaultAsync(GetBackupVaultRequest, CancellationToken)

public virtual Task<BackupVault> GetBackupVaultAsync(GetBackupVaultRequest request, CancellationToken cancellationToken)

Returns the description of the specified backup vault

Parameters
Name Description
request GetBackupVaultRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackupVault

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetBackupVaultRequest request = new GetBackupVaultRequest
{
    BackupVaultName = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]"),
};
// Make the request
BackupVault response = await netAppClient.GetBackupVaultAsync(request);

GetBackupVaultAsync(string, CallSettings)

public virtual Task<BackupVault> GetBackupVaultAsync(string name, CallSettings callSettings = null)

Returns the description of the specified backup vault

Parameters
Name Description
name string

Required. The backupVault resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBackupVault

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]";
// Make the request
BackupVault response = await netAppClient.GetBackupVaultAsync(name);

GetBackupVaultAsync(string, CancellationToken)

public virtual Task<BackupVault> GetBackupVaultAsync(string name, CancellationToken cancellationToken)

Returns the description of the specified backup vault

Parameters
Name Description
name string

Required. The backupVault resource name, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskBackupVault

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]";
// Make the request
BackupVault response = await netAppClient.GetBackupVaultAsync(name);

GetKmsConfig(GetKmsConfigRequest, CallSettings)

public virtual KmsConfig GetKmsConfig(GetKmsConfigRequest request, CallSettings callSettings = null)

Returns the description of the specified KMS config by kms_config_id.

Parameters
Name Description
request GetKmsConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
KmsConfig

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
GetKmsConfigRequest request = new GetKmsConfigRequest
{
    KmsConfigName = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]"),
};
// Make the request
KmsConfig response = netAppClient.GetKmsConfig(request);

GetKmsConfig(KmsConfigName, CallSettings)

public virtual KmsConfig GetKmsConfig(KmsConfigName name, CallSettings callSettings = null)

Returns the description of the specified KMS config by kms_config_id.

Parameters
Name Description
name KmsConfigName

Required. Name of the KmsConfig

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
KmsConfig

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
KmsConfigName name = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]");
// Make the request
KmsConfig response = netAppClient.GetKmsConfig(name);

GetKmsConfig(string, CallSettings)

public virtual KmsConfig GetKmsConfig(string name, CallSettings callSettings = null)

Returns the description of the specified KMS config by kms_config_id.

Parameters
Name Description
name string

Required. Name of the KmsConfig

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
KmsConfig

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/kmsConfigs/[KMS_CONFIG]";
// Make the request
KmsConfig response = netAppClient.GetKmsConfig(name);

GetKmsConfigAsync(GetKmsConfigRequest, CallSettings)

public virtual Task<KmsConfig> GetKmsConfigAsync(GetKmsConfigRequest request, CallSettings callSettings = null)

Returns the description of the specified KMS config by kms_config_id.

Parameters
Name Description
request GetKmsConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskKmsConfig

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetKmsConfigRequest request = new GetKmsConfigRequest
{
    KmsConfigName = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]"),
};
// Make the request
KmsConfig response = await netAppClient.GetKmsConfigAsync(request);

GetKmsConfigAsync(GetKmsConfigRequest, CancellationToken)

public virtual Task<KmsConfig> GetKmsConfigAsync(GetKmsConfigRequest request, CancellationToken cancellationToken)

Returns the description of the specified KMS config by kms_config_id.

Parameters
Name Description
request GetKmsConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskKmsConfig

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetKmsConfigRequest request = new GetKmsConfigRequest
{
    KmsConfigName = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]"),
};
// Make the request
KmsConfig response = await netAppClient.GetKmsConfigAsync(request);

GetKmsConfigAsync(KmsConfigName, CallSettings)

public virtual Task<KmsConfig> GetKmsConfigAsync(KmsConfigName name, CallSettings callSettings = null)

Returns the description of the specified KMS config by kms_config_id.

Parameters
Name Description
name KmsConfigName

Required. Name of the KmsConfig

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskKmsConfig

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
KmsConfigName name = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]");
// Make the request
KmsConfig response = await netAppClient.GetKmsConfigAsync(name);

GetKmsConfigAsync(KmsConfigName, CancellationToken)

public virtual Task<KmsConfig> GetKmsConfigAsync(KmsConfigName name, CancellationToken cancellationToken)

Returns the description of the specified KMS config by kms_config_id.

Parameters
Name Description
name KmsConfigName

Required. Name of the KmsConfig

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskKmsConfig

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
KmsConfigName name = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]");
// Make the request
KmsConfig response = await netAppClient.GetKmsConfigAsync(name);

GetKmsConfigAsync(string, CallSettings)

public virtual Task<KmsConfig> GetKmsConfigAsync(string name, CallSettings callSettings = null)

Returns the description of the specified KMS config by kms_config_id.

Parameters
Name Description
name string

Required. Name of the KmsConfig

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskKmsConfig

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/kmsConfigs/[KMS_CONFIG]";
// Make the request
KmsConfig response = await netAppClient.GetKmsConfigAsync(name);

GetKmsConfigAsync(string, CancellationToken)

public virtual Task<KmsConfig> GetKmsConfigAsync(string name, CancellationToken cancellationToken)

Returns the description of the specified KMS config by kms_config_id.

Parameters
Name Description
name string

Required. Name of the KmsConfig

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskKmsConfig

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/kmsConfigs/[KMS_CONFIG]";
// Make the request
KmsConfig response = await netAppClient.GetKmsConfigAsync(name);

GetReplication(GetReplicationRequest, CallSettings)

public virtual Replication GetReplication(GetReplicationRequest request, CallSettings callSettings = null)

Describe a replication for a volume.

Parameters
Name Description
request GetReplicationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Replication

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
GetReplicationRequest request = new GetReplicationRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Replication response = netAppClient.GetReplication(request);

GetReplication(ReplicationName, CallSettings)

public virtual Replication GetReplication(ReplicationName name, CallSettings callSettings = null)

Describe a replication for a volume.

Parameters
Name Description
name ReplicationName

Required. The replication resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Replication

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ReplicationName name = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]");
// Make the request
Replication response = netAppClient.GetReplication(name);

GetReplication(string, CallSettings)

public virtual Replication GetReplication(string name, CallSettings callSettings = null)

Describe a replication for a volume.

Parameters
Name Description
name string

Required. The replication resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Replication

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/replications/[REPLICATION]";
// Make the request
Replication response = netAppClient.GetReplication(name);

GetReplicationAsync(GetReplicationRequest, CallSettings)

public virtual Task<Replication> GetReplicationAsync(GetReplicationRequest request, CallSettings callSettings = null)

Describe a replication for a volume.

Parameters
Name Description
request GetReplicationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReplication

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetReplicationRequest request = new GetReplicationRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Replication response = await netAppClient.GetReplicationAsync(request);

GetReplicationAsync(GetReplicationRequest, CancellationToken)

public virtual Task<Replication> GetReplicationAsync(GetReplicationRequest request, CancellationToken cancellationToken)

Describe a replication for a volume.

Parameters
Name Description
request GetReplicationRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReplication

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetReplicationRequest request = new GetReplicationRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Replication response = await netAppClient.GetReplicationAsync(request);

GetReplicationAsync(ReplicationName, CallSettings)

public virtual Task<Replication> GetReplicationAsync(ReplicationName name, CallSettings callSettings = null)

Describe a replication for a volume.

Parameters
Name Description
name ReplicationName

Required. The replication resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReplication

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ReplicationName name = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]");
// Make the request
Replication response = await netAppClient.GetReplicationAsync(name);

GetReplicationAsync(ReplicationName, CancellationToken)

public virtual Task<Replication> GetReplicationAsync(ReplicationName name, CancellationToken cancellationToken)

Describe a replication for a volume.

Parameters
Name Description
name ReplicationName

Required. The replication resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReplication

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ReplicationName name = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]");
// Make the request
Replication response = await netAppClient.GetReplicationAsync(name);

GetReplicationAsync(string, CallSettings)

public virtual Task<Replication> GetReplicationAsync(string name, CallSettings callSettings = null)

Describe a replication for a volume.

Parameters
Name Description
name string

Required. The replication resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskReplication

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/replications/[REPLICATION]";
// Make the request
Replication response = await netAppClient.GetReplicationAsync(name);

GetReplicationAsync(string, CancellationToken)

public virtual Task<Replication> GetReplicationAsync(string name, CancellationToken cancellationToken)

Describe a replication for a volume.

Parameters
Name Description
name string

Required. The replication resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskReplication

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/replications/[REPLICATION]";
// Make the request
Replication response = await netAppClient.GetReplicationAsync(name);

GetSnapshot(GetSnapshotRequest, CallSettings)

public virtual Snapshot GetSnapshot(GetSnapshotRequest request, CallSettings callSettings = null)

Describe a snapshot for a volume.

Parameters
Name Description
request GetSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Snapshot

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
GetSnapshotRequest request = new GetSnapshotRequest
{
    SnapshotName = SnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
Snapshot response = netAppClient.GetSnapshot(request);

GetSnapshot(SnapshotName, CallSettings)

public virtual Snapshot GetSnapshot(SnapshotName name, CallSettings callSettings = null)

Describe a snapshot for a volume.

Parameters
Name Description
name SnapshotName

Required. The snapshot resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Snapshot

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
SnapshotName name = SnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
Snapshot response = netAppClient.GetSnapshot(name);

GetSnapshot(string, CallSettings)

public virtual Snapshot GetSnapshot(string name, CallSettings callSettings = null)

Describe a snapshot for a volume.

Parameters
Name Description
name string

Required. The snapshot resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Snapshot

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
Snapshot response = netAppClient.GetSnapshot(name);

GetSnapshotAsync(GetSnapshotRequest, CallSettings)

public virtual Task<Snapshot> GetSnapshotAsync(GetSnapshotRequest request, CallSettings callSettings = null)

Describe a snapshot for a volume.

Parameters
Name Description
request GetSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSnapshot

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetSnapshotRequest request = new GetSnapshotRequest
{
    SnapshotName = SnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
Snapshot response = await netAppClient.GetSnapshotAsync(request);

GetSnapshotAsync(GetSnapshotRequest, CancellationToken)

public virtual Task<Snapshot> GetSnapshotAsync(GetSnapshotRequest request, CancellationToken cancellationToken)

Describe a snapshot for a volume.

Parameters
Name Description
request GetSnapshotRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSnapshot

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetSnapshotRequest request = new GetSnapshotRequest
{
    SnapshotName = SnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]"),
};
// Make the request
Snapshot response = await netAppClient.GetSnapshotAsync(request);

GetSnapshotAsync(SnapshotName, CallSettings)

public virtual Task<Snapshot> GetSnapshotAsync(SnapshotName name, CallSettings callSettings = null)

Describe a snapshot for a volume.

Parameters
Name Description
name SnapshotName

Required. The snapshot resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSnapshot

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
SnapshotName name = SnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
Snapshot response = await netAppClient.GetSnapshotAsync(name);

GetSnapshotAsync(SnapshotName, CancellationToken)

public virtual Task<Snapshot> GetSnapshotAsync(SnapshotName name, CancellationToken cancellationToken)

Describe a snapshot for a volume.

Parameters
Name Description
name SnapshotName

Required. The snapshot resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSnapshot

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
SnapshotName name = SnapshotName.FromProjectLocationVolumeSnapshot("[PROJECT]", "[LOCATION]", "[VOLUME]", "[SNAPSHOT]");
// Make the request
Snapshot response = await netAppClient.GetSnapshotAsync(name);

GetSnapshotAsync(string, CallSettings)

public virtual Task<Snapshot> GetSnapshotAsync(string name, CallSettings callSettings = null)

Describe a snapshot for a volume.

Parameters
Name Description
name string

Required. The snapshot resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSnapshot

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
Snapshot response = await netAppClient.GetSnapshotAsync(name);

GetSnapshotAsync(string, CancellationToken)

public virtual Task<Snapshot> GetSnapshotAsync(string name, CancellationToken cancellationToken)

Describe a snapshot for a volume.

Parameters
Name Description
name string

Required. The snapshot resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSnapshot

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/snapshots/[SNAPSHOT]";
// Make the request
Snapshot response = await netAppClient.GetSnapshotAsync(name);

GetStoragePool(GetStoragePoolRequest, CallSettings)

public virtual StoragePool GetStoragePool(GetStoragePoolRequest request, CallSettings callSettings = null)

Returns the description of the specified storage pool by poolId.

Parameters
Name Description
request GetStoragePoolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StoragePool

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
GetStoragePoolRequest request = new GetStoragePoolRequest
{
    StoragePoolName = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"),
};
// Make the request
StoragePool response = netAppClient.GetStoragePool(request);

GetStoragePool(StoragePoolName, CallSettings)

public virtual StoragePool GetStoragePool(StoragePoolName name, CallSettings callSettings = null)

Returns the description of the specified storage pool by poolId.

Parameters
Name Description
name StoragePoolName

Required. Name of the storage pool

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StoragePool

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
StoragePoolName name = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]");
// Make the request
StoragePool response = netAppClient.GetStoragePool(name);

GetStoragePool(string, CallSettings)

public virtual StoragePool GetStoragePool(string name, CallSettings callSettings = null)

Returns the description of the specified storage pool by poolId.

Parameters
Name Description
name string

Required. Name of the storage pool

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StoragePool

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/storagePools/[STORAGE_POOL]";
// Make the request
StoragePool response = netAppClient.GetStoragePool(name);

GetStoragePoolAsync(GetStoragePoolRequest, CallSettings)

public virtual Task<StoragePool> GetStoragePoolAsync(GetStoragePoolRequest request, CallSettings callSettings = null)

Returns the description of the specified storage pool by poolId.

Parameters
Name Description
request GetStoragePoolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskStoragePool

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetStoragePoolRequest request = new GetStoragePoolRequest
{
    StoragePoolName = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"),
};
// Make the request
StoragePool response = await netAppClient.GetStoragePoolAsync(request);

GetStoragePoolAsync(GetStoragePoolRequest, CancellationToken)

public virtual Task<StoragePool> GetStoragePoolAsync(GetStoragePoolRequest request, CancellationToken cancellationToken)

Returns the description of the specified storage pool by poolId.

Parameters
Name Description
request GetStoragePoolRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskStoragePool

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetStoragePoolRequest request = new GetStoragePoolRequest
{
    StoragePoolName = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"),
};
// Make the request
StoragePool response = await netAppClient.GetStoragePoolAsync(request);

GetStoragePoolAsync(StoragePoolName, CallSettings)

public virtual Task<StoragePool> GetStoragePoolAsync(StoragePoolName name, CallSettings callSettings = null)

Returns the description of the specified storage pool by poolId.

Parameters
Name Description
name StoragePoolName

Required. Name of the storage pool

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskStoragePool

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
StoragePoolName name = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]");
// Make the request
StoragePool response = await netAppClient.GetStoragePoolAsync(name);

GetStoragePoolAsync(StoragePoolName, CancellationToken)

public virtual Task<StoragePool> GetStoragePoolAsync(StoragePoolName name, CancellationToken cancellationToken)

Returns the description of the specified storage pool by poolId.

Parameters
Name Description
name StoragePoolName

Required. Name of the storage pool

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskStoragePool

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
StoragePoolName name = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]");
// Make the request
StoragePool response = await netAppClient.GetStoragePoolAsync(name);

GetStoragePoolAsync(string, CallSettings)

public virtual Task<StoragePool> GetStoragePoolAsync(string name, CallSettings callSettings = null)

Returns the description of the specified storage pool by poolId.

Parameters
Name Description
name string

Required. Name of the storage pool

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskStoragePool

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/storagePools/[STORAGE_POOL]";
// Make the request
StoragePool response = await netAppClient.GetStoragePoolAsync(name);

GetStoragePoolAsync(string, CancellationToken)

public virtual Task<StoragePool> GetStoragePoolAsync(string name, CancellationToken cancellationToken)

Returns the description of the specified storage pool by poolId.

Parameters
Name Description
name string

Required. Name of the storage pool

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskStoragePool

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/storagePools/[STORAGE_POOL]";
// Make the request
StoragePool response = await netAppClient.GetStoragePoolAsync(name);

GetVolume(GetVolumeRequest, CallSettings)

public virtual Volume GetVolume(GetVolumeRequest request, CallSettings callSettings = null)

Gets details of a single Volume.

Parameters
Name Description
request GetVolumeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Volume

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
GetVolumeRequest request = new GetVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
};
// Make the request
Volume response = netAppClient.GetVolume(request);

GetVolume(VolumeName, CallSettings)

public virtual Volume GetVolume(VolumeName name, CallSettings callSettings = null)

Gets details of a single Volume.

Parameters
Name Description
name VolumeName

Required. Name of the volume

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Volume

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
Volume response = netAppClient.GetVolume(name);

GetVolume(string, CallSettings)

public virtual Volume GetVolume(string name, CallSettings callSettings = null)

Gets details of a single Volume.

Parameters
Name Description
name string

Required. Name of the volume

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Volume

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
Volume response = netAppClient.GetVolume(name);

GetVolumeAsync(GetVolumeRequest, CallSettings)

public virtual Task<Volume> GetVolumeAsync(GetVolumeRequest request, CallSettings callSettings = null)

Gets details of a single Volume.

Parameters
Name Description
request GetVolumeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskVolume

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetVolumeRequest request = new GetVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
};
// Make the request
Volume response = await netAppClient.GetVolumeAsync(request);

GetVolumeAsync(GetVolumeRequest, CancellationToken)

public virtual Task<Volume> GetVolumeAsync(GetVolumeRequest request, CancellationToken cancellationToken)

Gets details of a single Volume.

Parameters
Name Description
request GetVolumeRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskVolume

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetVolumeRequest request = new GetVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
};
// Make the request
Volume response = await netAppClient.GetVolumeAsync(request);

GetVolumeAsync(VolumeName, CallSettings)

public virtual Task<Volume> GetVolumeAsync(VolumeName name, CallSettings callSettings = null)

Gets details of a single Volume.

Parameters
Name Description
name VolumeName

Required. Name of the volume

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskVolume

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
Volume response = await netAppClient.GetVolumeAsync(name);

GetVolumeAsync(VolumeName, CancellationToken)

public virtual Task<Volume> GetVolumeAsync(VolumeName name, CancellationToken cancellationToken)

Gets details of a single Volume.

Parameters
Name Description
name VolumeName

Required. Name of the volume

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskVolume

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VolumeName name = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
Volume response = await netAppClient.GetVolumeAsync(name);

GetVolumeAsync(string, CallSettings)

public virtual Task<Volume> GetVolumeAsync(string name, CallSettings callSettings = null)

Gets details of a single Volume.

Parameters
Name Description
name string

Required. Name of the volume

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskVolume

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
Volume response = await netAppClient.GetVolumeAsync(name);

GetVolumeAsync(string, CancellationToken)

public virtual Task<Volume> GetVolumeAsync(string name, CancellationToken cancellationToken)

Gets details of a single Volume.

Parameters
Name Description
name string

Required. Name of the volume

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskVolume

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
Volume response = await netAppClient.GetVolumeAsync(name);

ListActiveDirectories(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListActiveDirectoriesResponse, ActiveDirectory> ListActiveDirectories(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists active directories.

Parameters
Name Description
parent LocationName

Required. Parent value for ListActiveDirectoriesRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListActiveDirectoriesResponseActiveDirectory

A pageable sequence of ActiveDirectory resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListActiveDirectoriesResponse, ActiveDirectory> response = netAppClient.ListActiveDirectories(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ActiveDirectory item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListActiveDirectoriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ActiveDirectory item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ActiveDirectory> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ActiveDirectory item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListActiveDirectories(ListActiveDirectoriesRequest, CallSettings)

public virtual PagedEnumerable<ListActiveDirectoriesResponse, ActiveDirectory> ListActiveDirectories(ListActiveDirectoriesRequest request, CallSettings callSettings = null)

Lists active directories.

Parameters
Name Description
request ListActiveDirectoriesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListActiveDirectoriesResponseActiveDirectory

A pageable sequence of ActiveDirectory resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ListActiveDirectoriesRequest request = new ListActiveDirectoriesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListActiveDirectoriesResponse, ActiveDirectory> response = netAppClient.ListActiveDirectories(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ActiveDirectory item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListActiveDirectoriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ActiveDirectory item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ActiveDirectory> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ActiveDirectory item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListActiveDirectories(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListActiveDirectoriesResponse, ActiveDirectory> ListActiveDirectories(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists active directories.

Parameters
Name Description
parent string

Required. Parent value for ListActiveDirectoriesRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListActiveDirectoriesResponseActiveDirectory

A pageable sequence of ActiveDirectory resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListActiveDirectoriesResponse, ActiveDirectory> response = netAppClient.ListActiveDirectories(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ActiveDirectory item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListActiveDirectoriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ActiveDirectory item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ActiveDirectory> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ActiveDirectory item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListActiveDirectoriesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListActiveDirectoriesResponse, ActiveDirectory> ListActiveDirectoriesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists active directories.

Parameters
Name Description
parent LocationName

Required. Parent value for ListActiveDirectoriesRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListActiveDirectoriesResponseActiveDirectory

A pageable asynchronous sequence of ActiveDirectory resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListActiveDirectoriesResponse, ActiveDirectory> response = netAppClient.ListActiveDirectoriesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ActiveDirectory item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListActiveDirectoriesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ActiveDirectory item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ActiveDirectory> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ActiveDirectory item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListActiveDirectoriesAsync(ListActiveDirectoriesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListActiveDirectoriesResponse, ActiveDirectory> ListActiveDirectoriesAsync(ListActiveDirectoriesRequest request, CallSettings callSettings = null)

Lists active directories.

Parameters
Name Description
request ListActiveDirectoriesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListActiveDirectoriesResponseActiveDirectory

A pageable asynchronous sequence of ActiveDirectory resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ListActiveDirectoriesRequest request = new ListActiveDirectoriesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListActiveDirectoriesResponse, ActiveDirectory> response = netAppClient.ListActiveDirectoriesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ActiveDirectory item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListActiveDirectoriesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ActiveDirectory item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ActiveDirectory> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ActiveDirectory item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListActiveDirectoriesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListActiveDirectoriesResponse, ActiveDirectory> ListActiveDirectoriesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists active directories.

Parameters
Name Description
parent string

Required. Parent value for ListActiveDirectoriesRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListActiveDirectoriesResponseActiveDirectory

A pageable asynchronous sequence of ActiveDirectory resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListActiveDirectoriesResponse, ActiveDirectory> response = netAppClient.ListActiveDirectoriesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ActiveDirectory item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListActiveDirectoriesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ActiveDirectory item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ActiveDirectory> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ActiveDirectory item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupPolicies(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListBackupPoliciesResponse, BackupPolicy> ListBackupPolicies(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns list of all available backup policies.

Parameters
Name Description
parent LocationName

Required. Parent value for ListBackupPoliciesRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBackupPoliciesResponseBackupPolicy

A pageable sequence of BackupPolicy resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListBackupPoliciesResponse, BackupPolicy> response = netAppClient.ListBackupPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (BackupPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBackupPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackupPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackupPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackupPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupPolicies(ListBackupPoliciesRequest, CallSettings)

public virtual PagedEnumerable<ListBackupPoliciesResponse, BackupPolicy> ListBackupPolicies(ListBackupPoliciesRequest request, CallSettings callSettings = null)

Returns list of all available backup policies.

Parameters
Name Description
request ListBackupPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBackupPoliciesResponseBackupPolicy

A pageable sequence of BackupPolicy resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ListBackupPoliciesRequest request = new ListBackupPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListBackupPoliciesResponse, BackupPolicy> response = netAppClient.ListBackupPolicies(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (BackupPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBackupPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackupPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackupPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackupPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupPolicies(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListBackupPoliciesResponse, BackupPolicy> ListBackupPolicies(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns list of all available backup policies.

Parameters
Name Description
parent string

Required. Parent value for ListBackupPoliciesRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBackupPoliciesResponseBackupPolicy

A pageable sequence of BackupPolicy resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListBackupPoliciesResponse, BackupPolicy> response = netAppClient.ListBackupPolicies(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (BackupPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBackupPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackupPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackupPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackupPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupPoliciesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListBackupPoliciesResponse, BackupPolicy> ListBackupPoliciesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns list of all available backup policies.

Parameters
Name Description
parent LocationName

Required. Parent value for ListBackupPoliciesRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBackupPoliciesResponseBackupPolicy

A pageable asynchronous sequence of BackupPolicy resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListBackupPoliciesResponse, BackupPolicy> response = netAppClient.ListBackupPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupPolicy item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBackupPoliciesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackupPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackupPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackupPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupPoliciesAsync(ListBackupPoliciesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListBackupPoliciesResponse, BackupPolicy> ListBackupPoliciesAsync(ListBackupPoliciesRequest request, CallSettings callSettings = null)

Returns list of all available backup policies.

Parameters
Name Description
request ListBackupPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBackupPoliciesResponseBackupPolicy

A pageable asynchronous sequence of BackupPolicy resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ListBackupPoliciesRequest request = new ListBackupPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListBackupPoliciesResponse, BackupPolicy> response = netAppClient.ListBackupPoliciesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupPolicy item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBackupPoliciesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackupPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackupPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackupPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupPoliciesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListBackupPoliciesResponse, BackupPolicy> ListBackupPoliciesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns list of all available backup policies.

Parameters
Name Description
parent string

Required. Parent value for ListBackupPoliciesRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBackupPoliciesResponseBackupPolicy

A pageable asynchronous sequence of BackupPolicy resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListBackupPoliciesResponse, BackupPolicy> response = netAppClient.ListBackupPoliciesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupPolicy item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBackupPoliciesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackupPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackupPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackupPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupVaults(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListBackupVaultsResponse, BackupVault> ListBackupVaults(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns list of all available backup vaults.

Parameters
Name Description
parent LocationName

Required. The location for which to retrieve backupVault information, in the format projects/{project_id}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBackupVaultsResponseBackupVault

A pageable sequence of BackupVault resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListBackupVaultsResponse, BackupVault> response = netAppClient.ListBackupVaults(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (BackupVault item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBackupVaultsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackupVault item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackupVault> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackupVault item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupVaults(ListBackupVaultsRequest, CallSettings)

public virtual PagedEnumerable<ListBackupVaultsResponse, BackupVault> ListBackupVaults(ListBackupVaultsRequest request, CallSettings callSettings = null)

Returns list of all available backup vaults.

Parameters
Name Description
request ListBackupVaultsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBackupVaultsResponseBackupVault

A pageable sequence of BackupVault resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ListBackupVaultsRequest request = new ListBackupVaultsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedEnumerable<ListBackupVaultsResponse, BackupVault> response = netAppClient.ListBackupVaults(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (BackupVault item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBackupVaultsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackupVault item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackupVault> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackupVault item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupVaults(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListBackupVaultsResponse, BackupVault> ListBackupVaults(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns list of all available backup vaults.

Parameters
Name Description
parent string

Required. The location for which to retrieve backupVault information, in the format projects/{project_id}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBackupVaultsResponseBackupVault

A pageable sequence of BackupVault resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListBackupVaultsResponse, BackupVault> response = netAppClient.ListBackupVaults(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (BackupVault item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBackupVaultsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackupVault item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackupVault> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackupVault item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupVaultsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListBackupVaultsResponse, BackupVault> ListBackupVaultsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns list of all available backup vaults.

Parameters
Name Description
parent LocationName

Required. The location for which to retrieve backupVault information, in the format projects/{project_id}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBackupVaultsResponseBackupVault

A pageable asynchronous sequence of BackupVault resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListBackupVaultsResponse, BackupVault> response = netAppClient.ListBackupVaultsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupVault item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBackupVaultsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackupVault item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackupVault> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackupVault item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupVaultsAsync(ListBackupVaultsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListBackupVaultsResponse, BackupVault> ListBackupVaultsAsync(ListBackupVaultsRequest request, CallSettings callSettings = null)

Returns list of all available backup vaults.

Parameters
Name Description
request ListBackupVaultsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBackupVaultsResponseBackupVault

A pageable asynchronous sequence of BackupVault resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ListBackupVaultsRequest request = new ListBackupVaultsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListBackupVaultsResponse, BackupVault> response = netAppClient.ListBackupVaultsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupVault item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBackupVaultsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackupVault item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackupVault> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackupVault item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupVaultsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListBackupVaultsResponse, BackupVault> ListBackupVaultsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns list of all available backup vaults.

Parameters
Name Description
parent string

Required. The location for which to retrieve backupVault information, in the format projects/{project_id}/locations/{location}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBackupVaultsResponseBackupVault

A pageable asynchronous sequence of BackupVault resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListBackupVaultsResponse, BackupVault> response = netAppClient.ListBackupVaultsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupVault item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBackupVaultsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BackupVault item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<BackupVault> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (BackupVault item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackups(BackupVaultName, string, int?, CallSettings)

public virtual PagedEnumerable<ListBackupsResponse, Backup> ListBackups(BackupVaultName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all backups for a backupVault.

Parameters
Name Description
parent BackupVaultName

Required. The backupVault for which to retrieve backup information, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}. To retrieve backup information for all locations, use "-" for the {location} value. To retrieve backup information for all backupVaults, use "-" for the {backup_vault_id} value. To retrieve backup information for a volume, use "-" for the {backup_vault_id} value and specify volume full name with the filter.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBackupsResponseBackup

A pageable sequence of Backup resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
BackupVaultName parent = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]");
// Make the request
PagedEnumerable<ListBackupsResponse, Backup> response = netAppClient.ListBackups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Backup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBackupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Backup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Backup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Backup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackups(ListBackupsRequest, CallSettings)

public virtual PagedEnumerable<ListBackupsResponse, Backup> ListBackups(ListBackupsRequest request, CallSettings callSettings = null)

Returns descriptions of all backups for a backupVault.

Parameters
Name Description
request ListBackupsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBackupsResponseBackup

A pageable sequence of Backup resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ListBackupsRequest request = new ListBackupsRequest
{
    ParentAsBackupVaultName = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedEnumerable<ListBackupsResponse, Backup> response = netAppClient.ListBackups(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Backup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBackupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Backup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Backup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Backup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackups(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListBackupsResponse, Backup> ListBackups(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all backups for a backupVault.

Parameters
Name Description
parent string

Required. The backupVault for which to retrieve backup information, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}. To retrieve backup information for all locations, use "-" for the {location} value. To retrieve backup information for all backupVaults, use "-" for the {backup_vault_id} value. To retrieve backup information for a volume, use "-" for the {backup_vault_id} value and specify volume full name with the filter.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBackupsResponseBackup

A pageable sequence of Backup resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]";
// Make the request
PagedEnumerable<ListBackupsResponse, Backup> response = netAppClient.ListBackups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Backup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBackupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Backup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Backup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Backup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupsAsync(BackupVaultName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListBackupsResponse, Backup> ListBackupsAsync(BackupVaultName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all backups for a backupVault.

Parameters
Name Description
parent BackupVaultName

Required. The backupVault for which to retrieve backup information, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}. To retrieve backup information for all locations, use "-" for the {location} value. To retrieve backup information for all backupVaults, use "-" for the {backup_vault_id} value. To retrieve backup information for a volume, use "-" for the {backup_vault_id} value and specify volume full name with the filter.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBackupsResponseBackup

A pageable asynchronous sequence of Backup resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupVaultName parent = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]");
// Make the request
PagedAsyncEnumerable<ListBackupsResponse, Backup> response = netAppClient.ListBackupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Backup item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBackupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Backup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Backup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Backup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupsAsync(ListBackupsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListBackupsResponse, Backup> ListBackupsAsync(ListBackupsRequest request, CallSettings callSettings = null)

Returns descriptions of all backups for a backupVault.

Parameters
Name Description
request ListBackupsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBackupsResponseBackup

A pageable asynchronous sequence of Backup resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ListBackupsRequest request = new ListBackupsRequest
{
    ParentAsBackupVaultName = BackupVaultName.FromProjectLocationBackupVault("[PROJECT]", "[LOCATION]", "[BACKUP_VAULT]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListBackupsResponse, Backup> response = netAppClient.ListBackupsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Backup item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBackupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Backup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Backup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Backup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListBackupsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListBackupsResponse, Backup> ListBackupsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all backups for a backupVault.

Parameters
Name Description
parent string

Required. The backupVault for which to retrieve backup information, in the format projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}. To retrieve backup information for all locations, use "-" for the {location} value. To retrieve backup information for all backupVaults, use "-" for the {backup_vault_id} value. To retrieve backup information for a volume, use "-" for the {backup_vault_id} value and specify volume full name with the filter.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBackupsResponseBackup

A pageable asynchronous sequence of Backup resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUP_VAULT]";
// Make the request
PagedAsyncEnumerable<ListBackupsResponse, Backup> response = netAppClient.ListBackupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Backup item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListBackupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Backup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Backup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Backup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListKmsConfigs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListKmsConfigsResponse, KmsConfig> ListKmsConfigs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all KMS configs owned by the caller.

Parameters
Name Description
parent LocationName

Required. Parent value

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListKmsConfigsResponseKmsConfig

A pageable sequence of KmsConfig resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListKmsConfigsResponse, KmsConfig> response = netAppClient.ListKmsConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (KmsConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListKmsConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KmsConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KmsConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KmsConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListKmsConfigs(ListKmsConfigsRequest, CallSettings)

public virtual PagedEnumerable<ListKmsConfigsResponse, KmsConfig> ListKmsConfigs(ListKmsConfigsRequest request, CallSettings callSettings = null)

Returns descriptions of all KMS configs owned by the caller.

Parameters
Name Description
request ListKmsConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListKmsConfigsResponseKmsConfig

A pageable sequence of KmsConfig resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ListKmsConfigsRequest request = new ListKmsConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedEnumerable<ListKmsConfigsResponse, KmsConfig> response = netAppClient.ListKmsConfigs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (KmsConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListKmsConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KmsConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KmsConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KmsConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListKmsConfigs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListKmsConfigsResponse, KmsConfig> ListKmsConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all KMS configs owned by the caller.

Parameters
Name Description
parent string

Required. Parent value

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListKmsConfigsResponseKmsConfig

A pageable sequence of KmsConfig resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListKmsConfigsResponse, KmsConfig> response = netAppClient.ListKmsConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (KmsConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListKmsConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KmsConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KmsConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KmsConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListKmsConfigsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListKmsConfigsResponse, KmsConfig> ListKmsConfigsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all KMS configs owned by the caller.

Parameters
Name Description
parent LocationName

Required. Parent value

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListKmsConfigsResponseKmsConfig

A pageable asynchronous sequence of KmsConfig resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListKmsConfigsResponse, KmsConfig> response = netAppClient.ListKmsConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((KmsConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListKmsConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KmsConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KmsConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KmsConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListKmsConfigsAsync(ListKmsConfigsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListKmsConfigsResponse, KmsConfig> ListKmsConfigsAsync(ListKmsConfigsRequest request, CallSettings callSettings = null)

Returns descriptions of all KMS configs owned by the caller.

Parameters
Name Description
request ListKmsConfigsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListKmsConfigsResponseKmsConfig

A pageable asynchronous sequence of KmsConfig resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ListKmsConfigsRequest request = new ListKmsConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListKmsConfigsResponse, KmsConfig> response = netAppClient.ListKmsConfigsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((KmsConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListKmsConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KmsConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KmsConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KmsConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListKmsConfigsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListKmsConfigsResponse, KmsConfig> ListKmsConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all KMS configs owned by the caller.

Parameters
Name Description
parent string

Required. Parent value

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListKmsConfigsResponseKmsConfig

A pageable asynchronous sequence of KmsConfig resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListKmsConfigsResponse, KmsConfig> response = netAppClient.ListKmsConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((KmsConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListKmsConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KmsConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KmsConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KmsConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReplications(ListReplicationsRequest, CallSettings)

public virtual PagedEnumerable<ListReplicationsResponse, Replication> ListReplications(ListReplicationsRequest request, CallSettings callSettings = null)

Returns descriptions of all replications for a volume.

Parameters
Name Description
request ListReplicationsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListReplicationsResponseReplication

A pageable sequence of Replication resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ListReplicationsRequest request = new ListReplicationsRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedEnumerable<ListReplicationsResponse, Replication> response = netAppClient.ListReplications(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Replication item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReplicationsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Replication item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Replication> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Replication item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReplications(VolumeName, string, int?, CallSettings)

public virtual PagedEnumerable<ListReplicationsResponse, Replication> ListReplications(VolumeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all replications for a volume.

Parameters
Name Description
parent VolumeName

Required. The volume for which to retrieve replication information, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListReplicationsResponseReplication

A pageable sequence of Replication resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
PagedEnumerable<ListReplicationsResponse, Replication> response = netAppClient.ListReplications(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Replication item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReplicationsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Replication item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Replication> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Replication item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReplications(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListReplicationsResponse, Replication> ListReplications(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all replications for a volume.

Parameters
Name Description
parent string

Required. The volume for which to retrieve replication information, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListReplicationsResponseReplication

A pageable sequence of Replication resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
PagedEnumerable<ListReplicationsResponse, Replication> response = netAppClient.ListReplications(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Replication item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListReplicationsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Replication item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Replication> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Replication item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReplicationsAsync(ListReplicationsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListReplicationsResponse, Replication> ListReplicationsAsync(ListReplicationsRequest request, CallSettings callSettings = null)

Returns descriptions of all replications for a volume.

Parameters
Name Description
request ListReplicationsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListReplicationsResponseReplication

A pageable asynchronous sequence of Replication resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ListReplicationsRequest request = new ListReplicationsRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListReplicationsResponse, Replication> response = netAppClient.ListReplicationsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Replication item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReplicationsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Replication item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Replication> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Replication item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReplicationsAsync(VolumeName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListReplicationsResponse, Replication> ListReplicationsAsync(VolumeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all replications for a volume.

Parameters
Name Description
parent VolumeName

Required. The volume for which to retrieve replication information, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListReplicationsResponseReplication

A pageable asynchronous sequence of Replication resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
PagedAsyncEnumerable<ListReplicationsResponse, Replication> response = netAppClient.ListReplicationsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Replication item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReplicationsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Replication item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Replication> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Replication item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListReplicationsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListReplicationsResponse, Replication> ListReplicationsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all replications for a volume.

Parameters
Name Description
parent string

Required. The volume for which to retrieve replication information, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListReplicationsResponseReplication

A pageable asynchronous sequence of Replication resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
PagedAsyncEnumerable<ListReplicationsResponse, Replication> response = netAppClient.ListReplicationsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Replication item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReplicationsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Replication item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Replication> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Replication item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSnapshots(ListSnapshotsRequest, CallSettings)

public virtual PagedEnumerable<ListSnapshotsResponse, Snapshot> ListSnapshots(ListSnapshotsRequest request, CallSettings callSettings = null)

Returns descriptions of all snapshots for a volume.

Parameters
Name Description
request ListSnapshotsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSnapshotsResponseSnapshot

A pageable sequence of Snapshot resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ListSnapshotsRequest request = new ListSnapshotsRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedEnumerable<ListSnapshotsResponse, Snapshot> response = netAppClient.ListSnapshots(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Snapshot item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSnapshotsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Snapshot item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Snapshot> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Snapshot item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSnapshots(VolumeName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSnapshotsResponse, Snapshot> ListSnapshots(VolumeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all snapshots for a volume.

Parameters
Name Description
parent VolumeName

Required. The volume for which to retrieve snapshot information, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSnapshotsResponseSnapshot

A pageable sequence of Snapshot resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
PagedEnumerable<ListSnapshotsResponse, Snapshot> response = netAppClient.ListSnapshots(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Snapshot item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSnapshotsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Snapshot item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Snapshot> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Snapshot item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSnapshots(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListSnapshotsResponse, Snapshot> ListSnapshots(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all snapshots for a volume.

Parameters
Name Description
parent string

Required. The volume for which to retrieve snapshot information, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSnapshotsResponseSnapshot

A pageable sequence of Snapshot resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
PagedEnumerable<ListSnapshotsResponse, Snapshot> response = netAppClient.ListSnapshots(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Snapshot item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListSnapshotsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Snapshot item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Snapshot> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Snapshot item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSnapshotsAsync(ListSnapshotsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListSnapshotsResponse, Snapshot> ListSnapshotsAsync(ListSnapshotsRequest request, CallSettings callSettings = null)

Returns descriptions of all snapshots for a volume.

Parameters
Name Description
request ListSnapshotsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSnapshotsResponseSnapshot

A pageable asynchronous sequence of Snapshot resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ListSnapshotsRequest request = new ListSnapshotsRequest
{
    ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListSnapshotsResponse, Snapshot> response = netAppClient.ListSnapshotsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Snapshot item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSnapshotsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Snapshot item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Snapshot> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Snapshot item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSnapshotsAsync(VolumeName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSnapshotsResponse, Snapshot> ListSnapshotsAsync(VolumeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all snapshots for a volume.

Parameters
Name Description
parent VolumeName

Required. The volume for which to retrieve snapshot information, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSnapshotsResponseSnapshot

A pageable asynchronous sequence of Snapshot resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
PagedAsyncEnumerable<ListSnapshotsResponse, Snapshot> response = netAppClient.ListSnapshotsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Snapshot item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSnapshotsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Snapshot item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Snapshot> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Snapshot item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListSnapshotsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSnapshotsResponse, Snapshot> ListSnapshotsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all snapshots for a volume.

Parameters
Name Description
parent string

Required. The volume for which to retrieve snapshot information, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSnapshotsResponseSnapshot

A pageable asynchronous sequence of Snapshot resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
PagedAsyncEnumerable<ListSnapshotsResponse, Snapshot> response = netAppClient.ListSnapshotsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Snapshot item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSnapshotsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Snapshot item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Snapshot> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Snapshot item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoragePools(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListStoragePoolsResponse, StoragePool> ListStoragePools(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all storage pools owned by the caller.

Parameters
Name Description
parent LocationName

Required. Parent value

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListStoragePoolsResponseStoragePool

A pageable sequence of StoragePool resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListStoragePoolsResponse, StoragePool> response = netAppClient.ListStoragePools(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (StoragePool item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoragePoolsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoragePool item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoragePool> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoragePool item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoragePools(ListStoragePoolsRequest, CallSettings)

public virtual PagedEnumerable<ListStoragePoolsResponse, StoragePool> ListStoragePools(ListStoragePoolsRequest request, CallSettings callSettings = null)

Returns descriptions of all storage pools owned by the caller.

Parameters
Name Description
request ListStoragePoolsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListStoragePoolsResponseStoragePool

A pageable sequence of StoragePool resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ListStoragePoolsRequest request = new ListStoragePoolsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedEnumerable<ListStoragePoolsResponse, StoragePool> response = netAppClient.ListStoragePools(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (StoragePool item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoragePoolsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoragePool item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoragePool> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoragePool item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoragePools(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListStoragePoolsResponse, StoragePool> ListStoragePools(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all storage pools owned by the caller.

Parameters
Name Description
parent string

Required. Parent value

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListStoragePoolsResponseStoragePool

A pageable sequence of StoragePool resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListStoragePoolsResponse, StoragePool> response = netAppClient.ListStoragePools(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (StoragePool item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListStoragePoolsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoragePool item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoragePool> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoragePool item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoragePoolsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListStoragePoolsResponse, StoragePool> ListStoragePoolsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all storage pools owned by the caller.

Parameters
Name Description
parent LocationName

Required. Parent value

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListStoragePoolsResponseStoragePool

A pageable asynchronous sequence of StoragePool resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListStoragePoolsResponse, StoragePool> response = netAppClient.ListStoragePoolsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoragePool item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoragePoolsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoragePool item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoragePool> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoragePool item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoragePoolsAsync(ListStoragePoolsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListStoragePoolsResponse, StoragePool> ListStoragePoolsAsync(ListStoragePoolsRequest request, CallSettings callSettings = null)

Returns descriptions of all storage pools owned by the caller.

Parameters
Name Description
request ListStoragePoolsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListStoragePoolsResponseStoragePool

A pageable asynchronous sequence of StoragePool resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ListStoragePoolsRequest request = new ListStoragePoolsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListStoragePoolsResponse, StoragePool> response = netAppClient.ListStoragePoolsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoragePool item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoragePoolsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoragePool item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoragePool> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoragePool item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListStoragePoolsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListStoragePoolsResponse, StoragePool> ListStoragePoolsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns descriptions of all storage pools owned by the caller.

Parameters
Name Description
parent string

Required. Parent value

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListStoragePoolsResponseStoragePool

A pageable asynchronous sequence of StoragePool resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListStoragePoolsResponse, StoragePool> response = netAppClient.ListStoragePoolsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((StoragePool item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListStoragePoolsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StoragePool item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<StoragePool> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (StoragePool item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListVolumes(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListVolumesResponse, Volume> ListVolumes(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Volumes in a given project.

Parameters
Name Description
parent LocationName

Required. Parent value for ListVolumesRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListVolumesResponseVolume

A pageable sequence of Volume resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListVolumesResponse, Volume> response = netAppClient.ListVolumes(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Volume item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListVolumesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Volume item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Volume> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Volume item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListVolumes(ListVolumesRequest, CallSettings)

public virtual PagedEnumerable<ListVolumesResponse, Volume> ListVolumes(ListVolumesRequest request, CallSettings callSettings = null)

Lists Volumes in a given project.

Parameters
Name Description
request ListVolumesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListVolumesResponseVolume

A pageable sequence of Volume resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ListVolumesRequest request = new ListVolumesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListVolumesResponse, Volume> response = netAppClient.ListVolumes(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Volume item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListVolumesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Volume item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Volume> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Volume item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListVolumes(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListVolumesResponse, Volume> ListVolumes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Volumes in a given project.

Parameters
Name Description
parent string

Required. Parent value for ListVolumesRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListVolumesResponseVolume

A pageable sequence of Volume resources.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListVolumesResponse, Volume> response = netAppClient.ListVolumes(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Volume item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListVolumesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Volume item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Volume> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Volume item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListVolumesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListVolumesResponse, Volume> ListVolumesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Volumes in a given project.

Parameters
Name Description
parent LocationName

Required. Parent value for ListVolumesRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListVolumesResponseVolume

A pageable asynchronous sequence of Volume resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListVolumesResponse, Volume> response = netAppClient.ListVolumesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Volume item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVolumesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Volume item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Volume> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Volume item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListVolumesAsync(ListVolumesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListVolumesResponse, Volume> ListVolumesAsync(ListVolumesRequest request, CallSettings callSettings = null)

Lists Volumes in a given project.

Parameters
Name Description
request ListVolumesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListVolumesResponseVolume

A pageable asynchronous sequence of Volume resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ListVolumesRequest request = new ListVolumesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListVolumesResponse, Volume> response = netAppClient.ListVolumesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Volume item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVolumesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Volume item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Volume> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Volume item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListVolumesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListVolumesResponse, Volume> ListVolumesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Volumes in a given project.

Parameters
Name Description
parent string

Required. Parent value for ListVolumesRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListVolumesResponseVolume

A pageable asynchronous sequence of Volume resources.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListVolumesResponse, Volume> response = netAppClient.ListVolumesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Volume item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVolumesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Volume item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Volume> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Volume item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

PollOnceCreateActiveDirectory(string, CallSettings)

public virtual Operation<ActiveDirectory, OperationMetadata> PollOnceCreateActiveDirectory(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateActiveDirectory .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationActiveDirectoryOperationMetadata

The result of polling the operation.

PollOnceCreateActiveDirectoryAsync(string, CallSettings)

public virtual Task<Operation<ActiveDirectory, OperationMetadata>> PollOnceCreateActiveDirectoryAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateActiveDirectory.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationActiveDirectoryOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateBackup(string, CallSettings)

public virtual Operation<Backup, OperationMetadata> PollOnceCreateBackup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateBackup.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupOperationMetadata

The result of polling the operation.

PollOnceCreateBackupAsync(string, CallSettings)

public virtual Task<Operation<Backup, OperationMetadata>> PollOnceCreateBackupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateBackup.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateBackupPolicy(string, CallSettings)

public virtual Operation<BackupPolicy, OperationMetadata> PollOnceCreateBackupPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateBackupPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupPolicyOperationMetadata

The result of polling the operation.

PollOnceCreateBackupPolicyAsync(string, CallSettings)

public virtual Task<Operation<BackupPolicy, OperationMetadata>> PollOnceCreateBackupPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateBackupPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateBackupVault(string, CallSettings)

public virtual Operation<BackupVault, OperationMetadata> PollOnceCreateBackupVault(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateBackupVault .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupVaultOperationMetadata

The result of polling the operation.

PollOnceCreateBackupVaultAsync(string, CallSettings)

public virtual Task<Operation<BackupVault, OperationMetadata>> PollOnceCreateBackupVaultAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateBackupVault.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupVaultOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateKmsConfig(string, CallSettings)

public virtual Operation<KmsConfig, OperationMetadata> PollOnceCreateKmsConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateKmsConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationKmsConfigOperationMetadata

The result of polling the operation.

PollOnceCreateKmsConfigAsync(string, CallSettings)

public virtual Task<Operation<KmsConfig, OperationMetadata>> PollOnceCreateKmsConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateKmsConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateReplication(string, CallSettings)

public virtual Operation<Replication, OperationMetadata> PollOnceCreateReplication(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateReplication .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplicationOperationMetadata

The result of polling the operation.

PollOnceCreateReplicationAsync(string, CallSettings)

public virtual Task<Operation<Replication, OperationMetadata>> PollOnceCreateReplicationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateReplication.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateSnapshot(string, CallSettings)

public virtual Operation<Snapshot, OperationMetadata> PollOnceCreateSnapshot(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateSnapshot.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSnapshotOperationMetadata

The result of polling the operation.

PollOnceCreateSnapshotAsync(string, CallSettings)

public virtual Task<Operation<Snapshot, OperationMetadata>> PollOnceCreateSnapshotAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateSnapshot.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSnapshotOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateStoragePool(string, CallSettings)

public virtual Operation<StoragePool, OperationMetadata> PollOnceCreateStoragePool(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateStoragePool .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationStoragePoolOperationMetadata

The result of polling the operation.

PollOnceCreateStoragePoolAsync(string, CallSettings)

public virtual Task<Operation<StoragePool, OperationMetadata>> PollOnceCreateStoragePoolAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateStoragePool.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationStoragePoolOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateVolume(string, CallSettings)

public virtual Operation<Volume, OperationMetadata> PollOnceCreateVolume(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateVolume.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationVolumeOperationMetadata

The result of polling the operation.

PollOnceCreateVolumeAsync(string, CallSettings)

public virtual Task<Operation<Volume, OperationMetadata>> PollOnceCreateVolumeAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateVolume.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteActiveDirectory(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteActiveDirectory(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteActiveDirectory .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteActiveDirectoryAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteActiveDirectoryAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteActiveDirectory.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteBackup(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteBackup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteBackup.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteBackupAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteBackupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteBackup.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteBackupPolicy(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteBackupPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteBackupPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteBackupPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteBackupPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteBackupPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteBackupVault(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteBackupVault(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteBackupVault .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteBackupVaultAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteBackupVaultAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteBackupVault.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteKmsConfig(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteKmsConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteKmsConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteKmsConfigAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteKmsConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteKmsConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteReplication(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteReplication(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteReplication .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteReplicationAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteReplicationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteReplication.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteSnapshot(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteSnapshot(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteSnapshot.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteSnapshotAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteSnapshotAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteSnapshot.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteStoragePool(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteStoragePool(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteStoragePool .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteStoragePoolAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteStoragePoolAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteStoragePool.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteVolume(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteVolume(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteVolume.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteVolumeAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteVolumeAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteVolume.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceEncryptVolumes(string, CallSettings)

public virtual Operation<KmsConfig, OperationMetadata> PollOnceEncryptVolumes(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of EncryptVolumes.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationKmsConfigOperationMetadata

The result of polling the operation.

PollOnceEncryptVolumesAsync(string, CallSettings)

public virtual Task<Operation<KmsConfig, OperationMetadata>> PollOnceEncryptVolumesAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of EncryptVolumes.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A task representing the result of polling the operation.

PollOnceResumeReplication(string, CallSettings)

public virtual Operation<Replication, OperationMetadata> PollOnceResumeReplication(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of ResumeReplication .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplicationOperationMetadata

The result of polling the operation.

PollOnceResumeReplicationAsync(string, CallSettings)

public virtual Task<Operation<Replication, OperationMetadata>> PollOnceResumeReplicationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of ResumeReplication.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A task representing the result of polling the operation.

PollOnceReverseReplicationDirection(string, CallSettings)

public virtual Operation<Replication, OperationMetadata> PollOnceReverseReplicationDirection(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of ReverseReplicationDirection.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplicationOperationMetadata

The result of polling the operation.

PollOnceReverseReplicationDirectionAsync(string, CallSettings)

public virtual Task<Operation<Replication, OperationMetadata>> PollOnceReverseReplicationDirectionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of ReverseReplicationDirection.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A task representing the result of polling the operation.

PollOnceRevertVolume(string, CallSettings)

public virtual Operation<Volume, OperationMetadata> PollOnceRevertVolume(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of RevertVolume.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationVolumeOperationMetadata

The result of polling the operation.

PollOnceRevertVolumeAsync(string, CallSettings)

public virtual Task<Operation<Volume, OperationMetadata>> PollOnceRevertVolumeAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of RevertVolume.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A task representing the result of polling the operation.

PollOnceStopReplication(string, CallSettings)

public virtual Operation<Replication, OperationMetadata> PollOnceStopReplication(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of StopReplication.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplicationOperationMetadata

The result of polling the operation.

PollOnceStopReplicationAsync(string, CallSettings)

public virtual Task<Operation<Replication, OperationMetadata>> PollOnceStopReplicationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of StopReplication.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateActiveDirectory(string, CallSettings)

public virtual Operation<ActiveDirectory, OperationMetadata> PollOnceUpdateActiveDirectory(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateActiveDirectory .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationActiveDirectoryOperationMetadata

The result of polling the operation.

PollOnceUpdateActiveDirectoryAsync(string, CallSettings)

public virtual Task<Operation<ActiveDirectory, OperationMetadata>> PollOnceUpdateActiveDirectoryAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateActiveDirectory.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationActiveDirectoryOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateBackup(string, CallSettings)

public virtual Operation<Backup, OperationMetadata> PollOnceUpdateBackup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateBackup.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupOperationMetadata

The result of polling the operation.

PollOnceUpdateBackupAsync(string, CallSettings)

public virtual Task<Operation<Backup, OperationMetadata>> PollOnceUpdateBackupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateBackup.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateBackupPolicy(string, CallSettings)

public virtual Operation<BackupPolicy, OperationMetadata> PollOnceUpdateBackupPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateBackupPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupPolicyOperationMetadata

The result of polling the operation.

PollOnceUpdateBackupPolicyAsync(string, CallSettings)

public virtual Task<Operation<BackupPolicy, OperationMetadata>> PollOnceUpdateBackupPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateBackupPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateBackupVault(string, CallSettings)

public virtual Operation<BackupVault, OperationMetadata> PollOnceUpdateBackupVault(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateBackupVault .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupVaultOperationMetadata

The result of polling the operation.

PollOnceUpdateBackupVaultAsync(string, CallSettings)

public virtual Task<Operation<BackupVault, OperationMetadata>> PollOnceUpdateBackupVaultAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateBackupVault.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupVaultOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateKmsConfig(string, CallSettings)

public virtual Operation<KmsConfig, OperationMetadata> PollOnceUpdateKmsConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateKmsConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationKmsConfigOperationMetadata

The result of polling the operation.

PollOnceUpdateKmsConfigAsync(string, CallSettings)

public virtual Task<Operation<KmsConfig, OperationMetadata>> PollOnceUpdateKmsConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateKmsConfig.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateReplication(string, CallSettings)

public virtual Operation<Replication, OperationMetadata> PollOnceUpdateReplication(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateReplication .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplicationOperationMetadata

The result of polling the operation.

PollOnceUpdateReplicationAsync(string, CallSettings)

public virtual Task<Operation<Replication, OperationMetadata>> PollOnceUpdateReplicationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateReplication.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateSnapshot(string, CallSettings)

public virtual Operation<Snapshot, OperationMetadata> PollOnceUpdateSnapshot(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateSnapshot.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSnapshotOperationMetadata

The result of polling the operation.

PollOnceUpdateSnapshotAsync(string, CallSettings)

public virtual Task<Operation<Snapshot, OperationMetadata>> PollOnceUpdateSnapshotAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateSnapshot.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSnapshotOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateStoragePool(string, CallSettings)

public virtual Operation<StoragePool, OperationMetadata> PollOnceUpdateStoragePool(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateStoragePool .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationStoragePoolOperationMetadata

The result of polling the operation.

PollOnceUpdateStoragePoolAsync(string, CallSettings)

public virtual Task<Operation<StoragePool, OperationMetadata>> PollOnceUpdateStoragePoolAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateStoragePool.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationStoragePoolOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateVolume(string, CallSettings)

public virtual Operation<Volume, OperationMetadata> PollOnceUpdateVolume(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateVolume.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationVolumeOperationMetadata

The result of polling the operation.

PollOnceUpdateVolumeAsync(string, CallSettings)

public virtual Task<Operation<Volume, OperationMetadata>> PollOnceUpdateVolumeAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateVolume.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A task representing the result of polling the operation.

ResumeReplication(ResumeReplicationRequest, CallSettings)

public virtual Operation<Replication, OperationMetadata> ResumeReplication(ResumeReplicationRequest request, CallSettings callSettings = null)

Resume Cross Region Replication.

Parameters
Name Description
request ResumeReplicationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplicationOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ResumeReplicationRequest request = new ResumeReplicationRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Operation<Replication, OperationMetadata> response = netAppClient.ResumeReplication(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = netAppClient.PollOnceResumeReplication(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

ResumeReplicationAsync(ResumeReplicationRequest, CallSettings)

public virtual Task<Operation<Replication, OperationMetadata>> ResumeReplicationAsync(ResumeReplicationRequest request, CallSettings callSettings = null)

Resume Cross Region Replication.

Parameters
Name Description
request ResumeReplicationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ResumeReplicationRequest request = new ResumeReplicationRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.ResumeReplicationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceResumeReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

ResumeReplicationAsync(ResumeReplicationRequest, CancellationToken)

public virtual Task<Operation<Replication, OperationMetadata>> ResumeReplicationAsync(ResumeReplicationRequest request, CancellationToken cancellationToken)

Resume Cross Region Replication.

Parameters
Name Description
request ResumeReplicationRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ResumeReplicationRequest request = new ResumeReplicationRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.ResumeReplicationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceResumeReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

ReverseReplicationDirection(ReverseReplicationDirectionRequest, CallSettings)

public virtual Operation<Replication, OperationMetadata> ReverseReplicationDirection(ReverseReplicationDirectionRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ReverseReplicationDirectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplicationOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ReverseReplicationDirectionRequest request = new ReverseReplicationDirectionRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Operation<Replication, OperationMetadata> response = netAppClient.ReverseReplicationDirection(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = netAppClient.PollOnceReverseReplicationDirection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

ReverseReplicationDirectionAsync(ReverseReplicationDirectionRequest, CallSettings)

public virtual Task<Operation<Replication, OperationMetadata>> ReverseReplicationDirectionAsync(ReverseReplicationDirectionRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ReverseReplicationDirectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ReverseReplicationDirectionRequest request = new ReverseReplicationDirectionRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.ReverseReplicationDirectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceReverseReplicationDirectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

ReverseReplicationDirectionAsync(ReverseReplicationDirectionRequest, CancellationToken)

public virtual Task<Operation<Replication, OperationMetadata>> ReverseReplicationDirectionAsync(ReverseReplicationDirectionRequest request, CancellationToken cancellationToken)

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

Parameters
Name Description
request ReverseReplicationDirectionRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ReverseReplicationDirectionRequest request = new ReverseReplicationDirectionRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.ReverseReplicationDirectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceReverseReplicationDirectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

RevertVolume(RevertVolumeRequest, CallSettings)

public virtual Operation<Volume, OperationMetadata> RevertVolume(RevertVolumeRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request RevertVolumeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationVolumeOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
RevertVolumeRequest request = new RevertVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    SnapshotId = "",
};
// Make the request
Operation<Volume, OperationMetadata> response = netAppClient.RevertVolume(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = netAppClient.PollOnceRevertVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

RevertVolumeAsync(RevertVolumeRequest, CallSettings)

public virtual Task<Operation<Volume, OperationMetadata>> RevertVolumeAsync(RevertVolumeRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request RevertVolumeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
RevertVolumeRequest request = new RevertVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    SnapshotId = "",
};
// Make the request
Operation<Volume, OperationMetadata> response = await netAppClient.RevertVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await netAppClient.PollOnceRevertVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

RevertVolumeAsync(RevertVolumeRequest, CancellationToken)

public virtual Task<Operation<Volume, OperationMetadata>> RevertVolumeAsync(RevertVolumeRequest request, CancellationToken cancellationToken)

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

Parameters
Name Description
request RevertVolumeRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
RevertVolumeRequest request = new RevertVolumeRequest
{
    VolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
    SnapshotId = "",
};
// Make the request
Operation<Volume, OperationMetadata> response = await netAppClient.RevertVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await netAppClient.PollOnceRevertVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

StopReplication(StopReplicationRequest, CallSettings)

public virtual Operation<Replication, OperationMetadata> StopReplication(StopReplicationRequest request, CallSettings callSettings = null)

Stop Cross Region Replication.

Parameters
Name Description
request StopReplicationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplicationOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
StopReplicationRequest request = new StopReplicationRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
    Force = false,
};
// Make the request
Operation<Replication, OperationMetadata> response = netAppClient.StopReplication(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = netAppClient.PollOnceStopReplication(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

StopReplicationAsync(StopReplicationRequest, CallSettings)

public virtual Task<Operation<Replication, OperationMetadata>> StopReplicationAsync(StopReplicationRequest request, CallSettings callSettings = null)

Stop Cross Region Replication.

Parameters
Name Description
request StopReplicationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
StopReplicationRequest request = new StopReplicationRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
    Force = false,
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.StopReplicationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceStopReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

StopReplicationAsync(StopReplicationRequest, CancellationToken)

public virtual Task<Operation<Replication, OperationMetadata>> StopReplicationAsync(StopReplicationRequest request, CancellationToken cancellationToken)

Stop Cross Region Replication.

Parameters
Name Description
request StopReplicationRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
StopReplicationRequest request = new StopReplicationRequest
{
    ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
    Force = false,
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.StopReplicationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceStopReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

UpdateActiveDirectory(ActiveDirectory, FieldMask, CallSettings)

public virtual Operation<ActiveDirectory, OperationMetadata> UpdateActiveDirectory(ActiveDirectory activeDirectory, FieldMask updateMask, CallSettings callSettings = null)

Update the parameters of an active directories.

Parameters
Name Description
activeDirectory ActiveDirectory

Required. The volume being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Active Directory resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationActiveDirectoryOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ActiveDirectory activeDirectory = new ActiveDirectory();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = netAppClient.UpdateActiveDirectory(activeDirectory, updateMask);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateActiveDirectory(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

UpdateActiveDirectory(UpdateActiveDirectoryRequest, CallSettings)

public virtual Operation<ActiveDirectory, OperationMetadata> UpdateActiveDirectory(UpdateActiveDirectoryRequest request, CallSettings callSettings = null)

Update the parameters of an active directories.

Parameters
Name Description
request UpdateActiveDirectoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationActiveDirectoryOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
UpdateActiveDirectoryRequest request = new UpdateActiveDirectoryRequest
{
    UpdateMask = new FieldMask(),
    ActiveDirectory = new ActiveDirectory(),
};
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = netAppClient.UpdateActiveDirectory(request);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateActiveDirectory(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

UpdateActiveDirectoryAsync(ActiveDirectory, FieldMask, CallSettings)

public virtual Task<Operation<ActiveDirectory, OperationMetadata>> UpdateActiveDirectoryAsync(ActiveDirectory activeDirectory, FieldMask updateMask, CallSettings callSettings = null)

Update the parameters of an active directories.

Parameters
Name Description
activeDirectory ActiveDirectory

Required. The volume being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Active Directory resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationActiveDirectoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ActiveDirectory activeDirectory = new ActiveDirectory();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = await netAppClient.UpdateActiveDirectoryAsync(activeDirectory, updateMask);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

UpdateActiveDirectoryAsync(ActiveDirectory, FieldMask, CancellationToken)

public virtual Task<Operation<ActiveDirectory, OperationMetadata>> UpdateActiveDirectoryAsync(ActiveDirectory activeDirectory, FieldMask updateMask, CancellationToken cancellationToken)

Update the parameters of an active directories.

Parameters
Name Description
activeDirectory ActiveDirectory

Required. The volume being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Active Directory resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationActiveDirectoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ActiveDirectory activeDirectory = new ActiveDirectory();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = await netAppClient.UpdateActiveDirectoryAsync(activeDirectory, updateMask);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

UpdateActiveDirectoryAsync(UpdateActiveDirectoryRequest, CallSettings)

public virtual Task<Operation<ActiveDirectory, OperationMetadata>> UpdateActiveDirectoryAsync(UpdateActiveDirectoryRequest request, CallSettings callSettings = null)

Update the parameters of an active directories.

Parameters
Name Description
request UpdateActiveDirectoryRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationActiveDirectoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateActiveDirectoryRequest request = new UpdateActiveDirectoryRequest
{
    UpdateMask = new FieldMask(),
    ActiveDirectory = new ActiveDirectory(),
};
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = await netAppClient.UpdateActiveDirectoryAsync(request);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

UpdateActiveDirectoryAsync(UpdateActiveDirectoryRequest, CancellationToken)

public virtual Task<Operation<ActiveDirectory, OperationMetadata>> UpdateActiveDirectoryAsync(UpdateActiveDirectoryRequest request, CancellationToken cancellationToken)

Update the parameters of an active directories.

Parameters
Name Description
request UpdateActiveDirectoryRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationActiveDirectoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateActiveDirectoryRequest request = new UpdateActiveDirectoryRequest
{
    UpdateMask = new FieldMask(),
    ActiveDirectory = new ActiveDirectory(),
};
// Make the request
Operation<ActiveDirectory, OperationMetadata> response = await netAppClient.UpdateActiveDirectoryAsync(request);

// Poll until the returned long-running operation is complete
Operation<ActiveDirectory, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ActiveDirectory result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ActiveDirectory, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateActiveDirectoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ActiveDirectory retrievedResult = retrievedResponse.Result;
}

UpdateBackup(Backup, FieldMask, CallSettings)

public virtual Operation<Backup, OperationMetadata> UpdateBackup(Backup backup, FieldMask updateMask, CallSettings callSettings = null)

Update backup with full spec.

Parameters
Name Description
backup Backup

Required. The backup being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Backup resource to be updated. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
Backup backup = new Backup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Backup, OperationMetadata> response = netAppClient.UpdateBackup(backup, updateMask);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateBackup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

UpdateBackup(UpdateBackupRequest, CallSettings)

public virtual Operation<Backup, OperationMetadata> UpdateBackup(UpdateBackupRequest request, CallSettings callSettings = null)

Update backup with full spec.

Parameters
Name Description
request UpdateBackupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
UpdateBackupRequest request = new UpdateBackupRequest
{
    UpdateMask = new FieldMask(),
    Backup = new Backup(),
};
// Make the request
Operation<Backup, OperationMetadata> response = netAppClient.UpdateBackup(request);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateBackup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

UpdateBackupAsync(Backup, FieldMask, CallSettings)

public virtual Task<Operation<Backup, OperationMetadata>> UpdateBackupAsync(Backup backup, FieldMask updateMask, CallSettings callSettings = null)

Update backup with full spec.

Parameters
Name Description
backup Backup

Required. The backup being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Backup resource to be updated. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
Backup backup = new Backup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Backup, OperationMetadata> response = await netAppClient.UpdateBackupAsync(backup, updateMask);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

UpdateBackupAsync(Backup, FieldMask, CancellationToken)

public virtual Task<Operation<Backup, OperationMetadata>> UpdateBackupAsync(Backup backup, FieldMask updateMask, CancellationToken cancellationToken)

Update backup with full spec.

Parameters
Name Description
backup Backup

Required. The backup being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Backup resource to be updated. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
Backup backup = new Backup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Backup, OperationMetadata> response = await netAppClient.UpdateBackupAsync(backup, updateMask);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

UpdateBackupAsync(UpdateBackupRequest, CallSettings)

public virtual Task<Operation<Backup, OperationMetadata>> UpdateBackupAsync(UpdateBackupRequest request, CallSettings callSettings = null)

Update backup with full spec.

Parameters
Name Description
request UpdateBackupRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateBackupRequest request = new UpdateBackupRequest
{
    UpdateMask = new FieldMask(),
    Backup = new Backup(),
};
// Make the request
Operation<Backup, OperationMetadata> response = await netAppClient.UpdateBackupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

UpdateBackupAsync(UpdateBackupRequest, CancellationToken)

public virtual Task<Operation<Backup, OperationMetadata>> UpdateBackupAsync(UpdateBackupRequest request, CancellationToken cancellationToken)

Update backup with full spec.

Parameters
Name Description
request UpdateBackupRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateBackupRequest request = new UpdateBackupRequest
{
    UpdateMask = new FieldMask(),
    Backup = new Backup(),
};
// Make the request
Operation<Backup, OperationMetadata> response = await netAppClient.UpdateBackupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

UpdateBackupPolicy(BackupPolicy, FieldMask, CallSettings)

public virtual Operation<BackupPolicy, OperationMetadata> UpdateBackupPolicy(BackupPolicy backupPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates settings of a specific backup policy.

Parameters
Name Description
backupPolicy BackupPolicy

Required. The backup policy being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Backup Policy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupPolicyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
BackupPolicy backupPolicy = new BackupPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackupPolicy, OperationMetadata> response = netAppClient.UpdateBackupPolicy(backupPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateBackupPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

UpdateBackupPolicy(UpdateBackupPolicyRequest, CallSettings)

public virtual Operation<BackupPolicy, OperationMetadata> UpdateBackupPolicy(UpdateBackupPolicyRequest request, CallSettings callSettings = null)

Updates settings of a specific backup policy.

Parameters
Name Description
request UpdateBackupPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupPolicyOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
UpdateBackupPolicyRequest request = new UpdateBackupPolicyRequest
{
    UpdateMask = new FieldMask(),
    BackupPolicy = new BackupPolicy(),
};
// Make the request
Operation<BackupPolicy, OperationMetadata> response = netAppClient.UpdateBackupPolicy(request);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateBackupPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

UpdateBackupPolicyAsync(BackupPolicy, FieldMask, CallSettings)

public virtual Task<Operation<BackupPolicy, OperationMetadata>> UpdateBackupPolicyAsync(BackupPolicy backupPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates settings of a specific backup policy.

Parameters
Name Description
backupPolicy BackupPolicy

Required. The backup policy being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Backup Policy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupPolicy backupPolicy = new BackupPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackupPolicy, OperationMetadata> response = await netAppClient.UpdateBackupPolicyAsync(backupPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

UpdateBackupPolicyAsync(BackupPolicy, FieldMask, CancellationToken)

public virtual Task<Operation<BackupPolicy, OperationMetadata>> UpdateBackupPolicyAsync(BackupPolicy backupPolicy, FieldMask updateMask, CancellationToken cancellationToken)

Updates settings of a specific backup policy.

Parameters
Name Description
backupPolicy BackupPolicy

Required. The backup policy being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Backup Policy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupPolicy backupPolicy = new BackupPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackupPolicy, OperationMetadata> response = await netAppClient.UpdateBackupPolicyAsync(backupPolicy, updateMask);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

UpdateBackupPolicyAsync(UpdateBackupPolicyRequest, CallSettings)

public virtual Task<Operation<BackupPolicy, OperationMetadata>> UpdateBackupPolicyAsync(UpdateBackupPolicyRequest request, CallSettings callSettings = null)

Updates settings of a specific backup policy.

Parameters
Name Description
request UpdateBackupPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateBackupPolicyRequest request = new UpdateBackupPolicyRequest
{
    UpdateMask = new FieldMask(),
    BackupPolicy = new BackupPolicy(),
};
// Make the request
Operation<BackupPolicy, OperationMetadata> response = await netAppClient.UpdateBackupPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

UpdateBackupPolicyAsync(UpdateBackupPolicyRequest, CancellationToken)

public virtual Task<Operation<BackupPolicy, OperationMetadata>> UpdateBackupPolicyAsync(UpdateBackupPolicyRequest request, CancellationToken cancellationToken)

Updates settings of a specific backup policy.

Parameters
Name Description
request UpdateBackupPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateBackupPolicyRequest request = new UpdateBackupPolicyRequest
{
    UpdateMask = new FieldMask(),
    BackupPolicy = new BackupPolicy(),
};
// Make the request
Operation<BackupPolicy, OperationMetadata> response = await netAppClient.UpdateBackupPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<BackupPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPolicy, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateBackupPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupPolicy retrievedResult = retrievedResponse.Result;
}

UpdateBackupVault(BackupVault, FieldMask, CallSettings)

public virtual Operation<BackupVault, OperationMetadata> UpdateBackupVault(BackupVault backupVault, FieldMask updateMask, CallSettings callSettings = null)

Updates the settings of a specific backup vault.

Parameters
Name Description
backupVault BackupVault

Required. The backupVault being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Backup resource to be updated. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupVaultOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
BackupVault backupVault = new BackupVault();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackupVault, OperationMetadata> response = netAppClient.UpdateBackupVault(backupVault, updateMask);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateBackupVault(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

UpdateBackupVault(UpdateBackupVaultRequest, CallSettings)

public virtual Operation<BackupVault, OperationMetadata> UpdateBackupVault(UpdateBackupVaultRequest request, CallSettings callSettings = null)

Updates the settings of a specific backup vault.

Parameters
Name Description
request UpdateBackupVaultRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBackupVaultOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
UpdateBackupVaultRequest request = new UpdateBackupVaultRequest
{
    UpdateMask = new FieldMask(),
    BackupVault = new BackupVault(),
};
// Make the request
Operation<BackupVault, OperationMetadata> response = netAppClient.UpdateBackupVault(request);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateBackupVault(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

UpdateBackupVaultAsync(BackupVault, FieldMask, CallSettings)

public virtual Task<Operation<BackupVault, OperationMetadata>> UpdateBackupVaultAsync(BackupVault backupVault, FieldMask updateMask, CallSettings callSettings = null)

Updates the settings of a specific backup vault.

Parameters
Name Description
backupVault BackupVault

Required. The backupVault being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Backup resource to be updated. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupVaultOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupVault backupVault = new BackupVault();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackupVault, OperationMetadata> response = await netAppClient.UpdateBackupVaultAsync(backupVault, updateMask);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

UpdateBackupVaultAsync(BackupVault, FieldMask, CancellationToken)

public virtual Task<Operation<BackupVault, OperationMetadata>> UpdateBackupVaultAsync(BackupVault backupVault, FieldMask updateMask, CancellationToken cancellationToken)

Updates the settings of a specific backup vault.

Parameters
Name Description
backupVault BackupVault

Required. The backupVault being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Backup resource to be updated. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupVaultOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
BackupVault backupVault = new BackupVault();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackupVault, OperationMetadata> response = await netAppClient.UpdateBackupVaultAsync(backupVault, updateMask);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

UpdateBackupVaultAsync(UpdateBackupVaultRequest, CallSettings)

public virtual Task<Operation<BackupVault, OperationMetadata>> UpdateBackupVaultAsync(UpdateBackupVaultRequest request, CallSettings callSettings = null)

Updates the settings of a specific backup vault.

Parameters
Name Description
request UpdateBackupVaultRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBackupVaultOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateBackupVaultRequest request = new UpdateBackupVaultRequest
{
    UpdateMask = new FieldMask(),
    BackupVault = new BackupVault(),
};
// Make the request
Operation<BackupVault, OperationMetadata> response = await netAppClient.UpdateBackupVaultAsync(request);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

UpdateBackupVaultAsync(UpdateBackupVaultRequest, CancellationToken)

public virtual Task<Operation<BackupVault, OperationMetadata>> UpdateBackupVaultAsync(UpdateBackupVaultRequest request, CancellationToken cancellationToken)

Updates the settings of a specific backup vault.

Parameters
Name Description
request UpdateBackupVaultRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBackupVaultOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateBackupVaultRequest request = new UpdateBackupVaultRequest
{
    UpdateMask = new FieldMask(),
    BackupVault = new BackupVault(),
};
// Make the request
Operation<BackupVault, OperationMetadata> response = await netAppClient.UpdateBackupVaultAsync(request);

// Poll until the returned long-running operation is complete
Operation<BackupVault, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupVault result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupVault, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateBackupVaultAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    BackupVault retrievedResult = retrievedResponse.Result;
}

UpdateKmsConfig(KmsConfig, FieldMask, CallSettings)

public virtual Operation<KmsConfig, OperationMetadata> UpdateKmsConfig(KmsConfig kmsConfig, FieldMask updateMask, CallSettings callSettings = null)

Updates the Kms config properties with the full spec

Parameters
Name Description
kmsConfig KmsConfig

Required. The KmsConfig being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the KmsConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationKmsConfigOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
KmsConfig kmsConfig = new KmsConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<KmsConfig, OperationMetadata> response = netAppClient.UpdateKmsConfig(kmsConfig, updateMask);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateKmsConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

UpdateKmsConfig(UpdateKmsConfigRequest, CallSettings)

public virtual Operation<KmsConfig, OperationMetadata> UpdateKmsConfig(UpdateKmsConfigRequest request, CallSettings callSettings = null)

Updates the Kms config properties with the full spec

Parameters
Name Description
request UpdateKmsConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationKmsConfigOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
UpdateKmsConfigRequest request = new UpdateKmsConfigRequest
{
    UpdateMask = new FieldMask(),
    KmsConfig = new KmsConfig(),
};
// Make the request
Operation<KmsConfig, OperationMetadata> response = netAppClient.UpdateKmsConfig(request);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateKmsConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

UpdateKmsConfigAsync(KmsConfig, FieldMask, CallSettings)

public virtual Task<Operation<KmsConfig, OperationMetadata>> UpdateKmsConfigAsync(KmsConfig kmsConfig, FieldMask updateMask, CallSettings callSettings = null)

Updates the Kms config properties with the full spec

Parameters
Name Description
kmsConfig KmsConfig

Required. The KmsConfig being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the KmsConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
KmsConfig kmsConfig = new KmsConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<KmsConfig, OperationMetadata> response = await netAppClient.UpdateKmsConfigAsync(kmsConfig, updateMask);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

UpdateKmsConfigAsync(KmsConfig, FieldMask, CancellationToken)

public virtual Task<Operation<KmsConfig, OperationMetadata>> UpdateKmsConfigAsync(KmsConfig kmsConfig, FieldMask updateMask, CancellationToken cancellationToken)

Updates the Kms config properties with the full spec

Parameters
Name Description
kmsConfig KmsConfig

Required. The KmsConfig being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the KmsConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
KmsConfig kmsConfig = new KmsConfig();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<KmsConfig, OperationMetadata> response = await netAppClient.UpdateKmsConfigAsync(kmsConfig, updateMask);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

UpdateKmsConfigAsync(UpdateKmsConfigRequest, CallSettings)

public virtual Task<Operation<KmsConfig, OperationMetadata>> UpdateKmsConfigAsync(UpdateKmsConfigRequest request, CallSettings callSettings = null)

Updates the Kms config properties with the full spec

Parameters
Name Description
request UpdateKmsConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateKmsConfigRequest request = new UpdateKmsConfigRequest
{
    UpdateMask = new FieldMask(),
    KmsConfig = new KmsConfig(),
};
// Make the request
Operation<KmsConfig, OperationMetadata> response = await netAppClient.UpdateKmsConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

UpdateKmsConfigAsync(UpdateKmsConfigRequest, CancellationToken)

public virtual Task<Operation<KmsConfig, OperationMetadata>> UpdateKmsConfigAsync(UpdateKmsConfigRequest request, CancellationToken cancellationToken)

Updates the Kms config properties with the full spec

Parameters
Name Description
request UpdateKmsConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationKmsConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateKmsConfigRequest request = new UpdateKmsConfigRequest
{
    UpdateMask = new FieldMask(),
    KmsConfig = new KmsConfig(),
};
// Make the request
Operation<KmsConfig, OperationMetadata> response = await netAppClient.UpdateKmsConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<KmsConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
KmsConfig result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<KmsConfig, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateKmsConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    KmsConfig retrievedResult = retrievedResponse.Result;
}

UpdateReplication(Replication, FieldMask, CallSettings)

public virtual Operation<Replication, OperationMetadata> UpdateReplication(Replication replication, FieldMask updateMask, CallSettings callSettings = null)

Updates the settings of a specific replication.

Parameters
Name Description
replication Replication

Required. A replication resource

updateMask FieldMask

Required. Mask of fields to update. At least one path must be supplied in this field.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplicationOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
Replication replication = new Replication();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Replication, OperationMetadata> response = netAppClient.UpdateReplication(replication, updateMask);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateReplication(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

UpdateReplication(UpdateReplicationRequest, CallSettings)

public virtual Operation<Replication, OperationMetadata> UpdateReplication(UpdateReplicationRequest request, CallSettings callSettings = null)

Updates the settings of a specific replication.

Parameters
Name Description
request UpdateReplicationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplicationOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
UpdateReplicationRequest request = new UpdateReplicationRequest
{
    UpdateMask = new FieldMask(),
    Replication = new Replication(),
};
// Make the request
Operation<Replication, OperationMetadata> response = netAppClient.UpdateReplication(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateReplication(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

UpdateReplicationAsync(Replication, FieldMask, CallSettings)

public virtual Task<Operation<Replication, OperationMetadata>> UpdateReplicationAsync(Replication replication, FieldMask updateMask, CallSettings callSettings = null)

Updates the settings of a specific replication.

Parameters
Name Description
replication Replication

Required. A replication resource

updateMask FieldMask

Required. Mask of fields to update. At least one path must be supplied in this field.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
Replication replication = new Replication();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.UpdateReplicationAsync(replication, updateMask);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

UpdateReplicationAsync(Replication, FieldMask, CancellationToken)

public virtual Task<Operation<Replication, OperationMetadata>> UpdateReplicationAsync(Replication replication, FieldMask updateMask, CancellationToken cancellationToken)

Updates the settings of a specific replication.

Parameters
Name Description
replication Replication

Required. A replication resource

updateMask FieldMask

Required. Mask of fields to update. At least one path must be supplied in this field.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
Replication replication = new Replication();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.UpdateReplicationAsync(replication, updateMask);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

UpdateReplicationAsync(UpdateReplicationRequest, CallSettings)

public virtual Task<Operation<Replication, OperationMetadata>> UpdateReplicationAsync(UpdateReplicationRequest request, CallSettings callSettings = null)

Updates the settings of a specific replication.

Parameters
Name Description
request UpdateReplicationRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateReplicationRequest request = new UpdateReplicationRequest
{
    UpdateMask = new FieldMask(),
    Replication = new Replication(),
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.UpdateReplicationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

UpdateReplicationAsync(UpdateReplicationRequest, CancellationToken)

public virtual Task<Operation<Replication, OperationMetadata>> UpdateReplicationAsync(UpdateReplicationRequest request, CancellationToken cancellationToken)

Updates the settings of a specific replication.

Parameters
Name Description
request UpdateReplicationRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationReplicationOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateReplicationRequest request = new UpdateReplicationRequest
{
    UpdateMask = new FieldMask(),
    Replication = new Replication(),
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.UpdateReplicationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Replication, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Replication result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Replication, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateReplicationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Replication retrievedResult = retrievedResponse.Result;
}

UpdateSnapshot(Snapshot, FieldMask, CallSettings)

public virtual Operation<Snapshot, OperationMetadata> UpdateSnapshot(Snapshot snapshot, FieldMask updateMask, CallSettings callSettings = null)

Updates the settings of a specific snapshot.

Parameters
Name Description
snapshot Snapshot

Required. A snapshot resource

updateMask FieldMask

Required. Mask of fields to update. At least one path must be supplied in this field.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSnapshotOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
Snapshot snapshot = new Snapshot();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Snapshot, OperationMetadata> response = netAppClient.UpdateSnapshot(snapshot, updateMask);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateSnapshot(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

UpdateSnapshot(UpdateSnapshotRequest, CallSettings)

public virtual Operation<Snapshot, OperationMetadata> UpdateSnapshot(UpdateSnapshotRequest request, CallSettings callSettings = null)

Updates the settings of a specific snapshot.

Parameters
Name Description
request UpdateSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSnapshotOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
UpdateSnapshotRequest request = new UpdateSnapshotRequest
{
    UpdateMask = new FieldMask(),
    Snapshot = new Snapshot(),
};
// Make the request
Operation<Snapshot, OperationMetadata> response = netAppClient.UpdateSnapshot(request);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateSnapshot(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

UpdateSnapshotAsync(Snapshot, FieldMask, CallSettings)

public virtual Task<Operation<Snapshot, OperationMetadata>> UpdateSnapshotAsync(Snapshot snapshot, FieldMask updateMask, CallSettings callSettings = null)

Updates the settings of a specific snapshot.

Parameters
Name Description
snapshot Snapshot

Required. A snapshot resource

updateMask FieldMask

Required. Mask of fields to update. At least one path must be supplied in this field.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSnapshotOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
Snapshot snapshot = new Snapshot();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Snapshot, OperationMetadata> response = await netAppClient.UpdateSnapshotAsync(snapshot, updateMask);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

UpdateSnapshotAsync(Snapshot, FieldMask, CancellationToken)

public virtual Task<Operation<Snapshot, OperationMetadata>> UpdateSnapshotAsync(Snapshot snapshot, FieldMask updateMask, CancellationToken cancellationToken)

Updates the settings of a specific snapshot.

Parameters
Name Description
snapshot Snapshot

Required. A snapshot resource

updateMask FieldMask

Required. Mask of fields to update. At least one path must be supplied in this field.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSnapshotOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
Snapshot snapshot = new Snapshot();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Snapshot, OperationMetadata> response = await netAppClient.UpdateSnapshotAsync(snapshot, updateMask);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

UpdateSnapshotAsync(UpdateSnapshotRequest, CallSettings)

public virtual Task<Operation<Snapshot, OperationMetadata>> UpdateSnapshotAsync(UpdateSnapshotRequest request, CallSettings callSettings = null)

Updates the settings of a specific snapshot.

Parameters
Name Description
request UpdateSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSnapshotOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateSnapshotRequest request = new UpdateSnapshotRequest
{
    UpdateMask = new FieldMask(),
    Snapshot = new Snapshot(),
};
// Make the request
Operation<Snapshot, OperationMetadata> response = await netAppClient.UpdateSnapshotAsync(request);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

UpdateSnapshotAsync(UpdateSnapshotRequest, CancellationToken)

public virtual Task<Operation<Snapshot, OperationMetadata>> UpdateSnapshotAsync(UpdateSnapshotRequest request, CancellationToken cancellationToken)

Updates the settings of a specific snapshot.

Parameters
Name Description
request UpdateSnapshotRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSnapshotOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateSnapshotRequest request = new UpdateSnapshotRequest
{
    UpdateMask = new FieldMask(),
    Snapshot = new Snapshot(),
};
// Make the request
Operation<Snapshot, OperationMetadata> response = await netAppClient.UpdateSnapshotAsync(request);

// Poll until the returned long-running operation is complete
Operation<Snapshot, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Snapshot result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Snapshot, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateSnapshotAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Snapshot retrievedResult = retrievedResponse.Result;
}

UpdateStoragePool(StoragePool, FieldMask, CallSettings)

public virtual Operation<StoragePool, OperationMetadata> UpdateStoragePool(StoragePool storagePool, FieldMask updateMask, CallSettings callSettings = null)

Updates the storage pool properties with the full spec

Parameters
Name Description
storagePool StoragePool

Required. The pool being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the StoragePool resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationStoragePoolOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
StoragePool storagePool = new StoragePool();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<StoragePool, OperationMetadata> response = netAppClient.UpdateStoragePool(storagePool, updateMask);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateStoragePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

UpdateStoragePool(UpdateStoragePoolRequest, CallSettings)

public virtual Operation<StoragePool, OperationMetadata> UpdateStoragePool(UpdateStoragePoolRequest request, CallSettings callSettings = null)

Updates the storage pool properties with the full spec

Parameters
Name Description
request UpdateStoragePoolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationStoragePoolOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
UpdateStoragePoolRequest request = new UpdateStoragePoolRequest
{
    UpdateMask = new FieldMask(),
    StoragePool = new StoragePool(),
};
// Make the request
Operation<StoragePool, OperationMetadata> response = netAppClient.UpdateStoragePool(request);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateStoragePool(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

UpdateStoragePoolAsync(StoragePool, FieldMask, CallSettings)

public virtual Task<Operation<StoragePool, OperationMetadata>> UpdateStoragePoolAsync(StoragePool storagePool, FieldMask updateMask, CallSettings callSettings = null)

Updates the storage pool properties with the full spec

Parameters
Name Description
storagePool StoragePool

Required. The pool being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the StoragePool resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationStoragePoolOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
StoragePool storagePool = new StoragePool();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<StoragePool, OperationMetadata> response = await netAppClient.UpdateStoragePoolAsync(storagePool, updateMask);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

UpdateStoragePoolAsync(StoragePool, FieldMask, CancellationToken)

public virtual Task<Operation<StoragePool, OperationMetadata>> UpdateStoragePoolAsync(StoragePool storagePool, FieldMask updateMask, CancellationToken cancellationToken)

Updates the storage pool properties with the full spec

Parameters
Name Description
storagePool StoragePool

Required. The pool being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the StoragePool resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationStoragePoolOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
StoragePool storagePool = new StoragePool();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<StoragePool, OperationMetadata> response = await netAppClient.UpdateStoragePoolAsync(storagePool, updateMask);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

UpdateStoragePoolAsync(UpdateStoragePoolRequest, CallSettings)

public virtual Task<Operation<StoragePool, OperationMetadata>> UpdateStoragePoolAsync(UpdateStoragePoolRequest request, CallSettings callSettings = null)

Updates the storage pool properties with the full spec

Parameters
Name Description
request UpdateStoragePoolRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationStoragePoolOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateStoragePoolRequest request = new UpdateStoragePoolRequest
{
    UpdateMask = new FieldMask(),
    StoragePool = new StoragePool(),
};
// Make the request
Operation<StoragePool, OperationMetadata> response = await netAppClient.UpdateStoragePoolAsync(request);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

UpdateStoragePoolAsync(UpdateStoragePoolRequest, CancellationToken)

public virtual Task<Operation<StoragePool, OperationMetadata>> UpdateStoragePoolAsync(UpdateStoragePoolRequest request, CancellationToken cancellationToken)

Updates the storage pool properties with the full spec

Parameters
Name Description
request UpdateStoragePoolRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationStoragePoolOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateStoragePoolRequest request = new UpdateStoragePoolRequest
{
    UpdateMask = new FieldMask(),
    StoragePool = new StoragePool(),
};
// Make the request
Operation<StoragePool, OperationMetadata> response = await netAppClient.UpdateStoragePoolAsync(request);

// Poll until the returned long-running operation is complete
Operation<StoragePool, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
StoragePool result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<StoragePool, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateStoragePoolAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    StoragePool retrievedResult = retrievedResponse.Result;
}

UpdateVolume(UpdateVolumeRequest, CallSettings)

public virtual Operation<Volume, OperationMetadata> UpdateVolume(UpdateVolumeRequest request, CallSettings callSettings = null)

Updates the parameters of a single Volume.

Parameters
Name Description
request UpdateVolumeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationVolumeOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
UpdateVolumeRequest request = new UpdateVolumeRequest
{
    UpdateMask = new FieldMask(),
    Volume = new Volume(),
};
// Make the request
Operation<Volume, OperationMetadata> response = netAppClient.UpdateVolume(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

UpdateVolume(Volume, FieldMask, CallSettings)

public virtual Operation<Volume, OperationMetadata> UpdateVolume(Volume volume, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Volume.

Parameters
Name Description
volume Volume

Required. The volume being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Volume resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationVolumeOperationMetadata

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
Volume volume = new Volume();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Volume, OperationMetadata> response = netAppClient.UpdateVolume(volume, updateMask);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateVolume(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

UpdateVolumeAsync(UpdateVolumeRequest, CallSettings)

public virtual Task<Operation<Volume, OperationMetadata>> UpdateVolumeAsync(UpdateVolumeRequest request, CallSettings callSettings = null)

Updates the parameters of a single Volume.

Parameters
Name Description
request UpdateVolumeRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateVolumeRequest request = new UpdateVolumeRequest
{
    UpdateMask = new FieldMask(),
    Volume = new Volume(),
};
// Make the request
Operation<Volume, OperationMetadata> response = await netAppClient.UpdateVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

UpdateVolumeAsync(UpdateVolumeRequest, CancellationToken)

public virtual Task<Operation<Volume, OperationMetadata>> UpdateVolumeAsync(UpdateVolumeRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Volume.

Parameters
Name Description
request UpdateVolumeRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateVolumeRequest request = new UpdateVolumeRequest
{
    UpdateMask = new FieldMask(),
    Volume = new Volume(),
};
// Make the request
Operation<Volume, OperationMetadata> response = await netAppClient.UpdateVolumeAsync(request);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

UpdateVolumeAsync(Volume, FieldMask, CallSettings)

public virtual Task<Operation<Volume, OperationMetadata>> UpdateVolumeAsync(Volume volume, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Volume.

Parameters
Name Description
volume Volume

Required. The volume being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Volume resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
Volume volume = new Volume();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Volume, OperationMetadata> response = await netAppClient.UpdateVolumeAsync(volume, updateMask);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

UpdateVolumeAsync(Volume, FieldMask, CancellationToken)

public virtual Task<Operation<Volume, OperationMetadata>> UpdateVolumeAsync(Volume volume, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Volume.

Parameters
Name Description
volume Volume

Required. The volume being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Volume resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationVolumeOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
Volume volume = new Volume();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Volume, OperationMetadata> response = await netAppClient.UpdateVolumeAsync(volume, updateMask);

// Poll until the returned long-running operation is complete
Operation<Volume, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Volume result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Volume, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateVolumeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Volume retrievedResult = retrievedResponse.Result;
}

VerifyKmsConfig(VerifyKmsConfigRequest, CallSettings)

public virtual VerifyKmsConfigResponse VerifyKmsConfig(VerifyKmsConfigRequest request, CallSettings callSettings = null)

Verifies KMS config reachability.

Parameters
Name Description
request VerifyKmsConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
VerifyKmsConfigResponse

The RPC response.

Example
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
VerifyKmsConfigRequest request = new VerifyKmsConfigRequest
{
    KmsConfigName = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]"),
};
// Make the request
VerifyKmsConfigResponse response = netAppClient.VerifyKmsConfig(request);

VerifyKmsConfigAsync(VerifyKmsConfigRequest, CallSettings)

public virtual Task<VerifyKmsConfigResponse> VerifyKmsConfigAsync(VerifyKmsConfigRequest request, CallSettings callSettings = null)

Verifies KMS config reachability.

Parameters
Name Description
request VerifyKmsConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskVerifyKmsConfigResponse

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VerifyKmsConfigRequest request = new VerifyKmsConfigRequest
{
    KmsConfigName = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]"),
};
// Make the request
VerifyKmsConfigResponse response = await netAppClient.VerifyKmsConfigAsync(request);

VerifyKmsConfigAsync(VerifyKmsConfigRequest, CancellationToken)

public virtual Task<VerifyKmsConfigResponse> VerifyKmsConfigAsync(VerifyKmsConfigRequest request, CancellationToken cancellationToken)

Verifies KMS config reachability.

Parameters
Name Description
request VerifyKmsConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskVerifyKmsConfigResponse

A Task containing the RPC response.

Example
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VerifyKmsConfigRequest request = new VerifyKmsConfigRequest
{
    KmsConfigName = KmsConfigName.FromProjectLocationKmsConfig("[PROJECT]", "[LOCATION]", "[KMS_CONFIG]"),
};
// Make the request
VerifyKmsConfigResponse response = await netAppClient.VerifyKmsConfigAsync(request);