public abstract class NetAppClientReference documentation and code samples for the NetApp v1 API class NetAppClient.
NetApp client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.NetApp.V1Assembly
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 |
|
CreateQuotaRuleOperationsClient
public virtual OperationsClient CreateQuotaRuleOperationsClient { get; }The long-running operations client for CreateQuotaRule.
| 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 |
|
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 |
|
DeleteQuotaRuleOperationsClient
public virtual OperationsClient DeleteQuotaRuleOperationsClient { get; }The long-running operations client for DeleteQuotaRule.
| 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 |
|
EstablishPeeringOperationsClient
public virtual OperationsClient EstablishPeeringOperationsClient { get; }The long-running operations client for EstablishPeering.
| 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 |
|
SwitchActiveReplicaZoneOperationsClient
public virtual OperationsClient SwitchActiveReplicaZoneOperationsClient { get; }The long-running operations client for SwitchActiveReplicaZone.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
SyncReplicationOperationsClient
public virtual OperationsClient SyncReplicationOperationsClient { get; }The long-running operations client for SyncReplication.
| 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 |
|
UpdateQuotaRuleOperationsClient
public virtual OperationsClient UpdateQuotaRuleOperationsClient { get; }The long-running operations client for UpdateQuotaRule.
| 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 |
|
ValidateDirectoryServiceOperationsClient
public virtual OperationsClient ValidateDirectoryServiceOperationsClient { get; }The long-running operations client for ValidateDirectoryService.
| 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 |
LocationNameRequired. Value for parent. |
activeDirectory |
ActiveDirectoryRequired. Fields of the to be created active directory. |
activeDirectoryId |
stringRequired. ID of the active directory to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter , the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationActiveDirectoryOperationMetadata |
The RPC response. |
// 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 |
CreateActiveDirectoryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationActiveDirectoryOperationMetadata |
The RPC response. |
// 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 |
stringRequired. Value for parent. |
activeDirectory |
ActiveDirectoryRequired. Fields of the to be created active directory. |
activeDirectoryId |
stringRequired. ID of the active directory to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter , the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationActiveDirectoryOperationMetadata |
The RPC response. |
// 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 |
LocationNameRequired. Value for parent. |
activeDirectory |
ActiveDirectoryRequired. Fields of the to be created active directory. |
activeDirectoryId |
stringRequired. ID of the active directory to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter , the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationActiveDirectoryOperationMetadata |
A Task containing the RPC response. |
// 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 |
LocationNameRequired. Value for parent. |
activeDirectory |
ActiveDirectoryRequired. Fields of the to be created active directory. |
activeDirectoryId |
stringRequired. ID of the active directory to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter , the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationActiveDirectoryOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateActiveDirectoryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationActiveDirectoryOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateActiveDirectoryRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationActiveDirectoryOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Value for parent. |
activeDirectory |
ActiveDirectoryRequired. Fields of the to be created active directory. |
activeDirectoryId |
stringRequired. ID of the active directory to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter , the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationActiveDirectoryOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Value for parent. |
activeDirectory |
ActiveDirectoryRequired. Fields of the to be created active directory. |
activeDirectoryId |
stringRequired. ID of the active directory to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter , the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationActiveDirectoryOperationMetadata |
A Task containing the RPC response. |
// 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 |
CancellationTokenThe 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 |
BackupVaultNameRequired. The NetApp backupVault to create the backups of, in the format
|
backup |
BackupRequired. A backup resource |
backupId |
stringRequired. The ID to use for the backup. The ID must be unique within the specified backupVault. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupOperationMetadata |
The RPC response. |
// 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 |
CreateBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupOperationMetadata |
The RPC response. |
// 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 |
stringRequired. The NetApp backupVault to create the backups of, in the format
|
backup |
BackupRequired. A backup resource |
backupId |
stringRequired. The ID to use for the backup. The ID must be unique within the specified backupVault. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupOperationMetadata |
The RPC response. |
// 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 |
BackupVaultNameRequired. The NetApp backupVault to create the backups of, in the format
|
backup |
BackupRequired. A backup resource |
backupId |
stringRequired. The ID to use for the backup. The ID must be unique within the specified backupVault. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// 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 |
BackupVaultNameRequired. The NetApp backupVault to create the backups of, in the format
|
backup |
BackupRequired. A backup resource |
backupId |
stringRequired. The ID to use for the backup. The ID must be unique within the specified backupVault. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateBackupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The NetApp backupVault to create the backups of, in the format
|
backup |
BackupRequired. A backup resource |
backupId |
stringRequired. The ID to use for the backup. The ID must be unique within the specified backupVault. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The NetApp backupVault to create the backups of, in the format
|
backup |
BackupRequired. A backup resource |
backupId |
stringRequired. The ID to use for the backup. The ID must be unique within the specified backupVault. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// 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 |
LocationNameRequired. The location to create the backup policies of, in the format
|
backupPolicy |
BackupPolicyRequired. A backupPolicy resource |
backupPolicyId |
stringRequired. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupPolicyOperationMetadata |
The RPC response. |
// 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 |
CreateBackupPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupPolicyOperationMetadata |
The RPC response. |
// 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 |
stringRequired. The location to create the backup policies of, in the format
|
backupPolicy |
BackupPolicyRequired. A backupPolicy resource |
backupPolicyId |
stringRequired. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupPolicyOperationMetadata |
The RPC response. |
// 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 |
LocationNameRequired. The location to create the backup policies of, in the format
|
backupPolicy |
BackupPolicyRequired. A backupPolicy resource |
backupPolicyId |
stringRequired. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPolicyOperationMetadata |
A Task containing the RPC response. |
// 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 |
LocationNameRequired. The location to create the backup policies of, in the format
|
backupPolicy |
BackupPolicyRequired. A backupPolicy resource |
backupPolicyId |
stringRequired. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPolicyOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateBackupPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPolicyOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateBackupPolicyRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPolicyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The location to create the backup policies of, in the format
|
backupPolicy |
BackupPolicyRequired. A backupPolicy resource |
backupPolicyId |
stringRequired. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPolicyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The location to create the backup policies of, in the format
|
backupPolicy |
BackupPolicyRequired. A backupPolicy resource |
backupPolicyId |
stringRequired. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPolicyOperationMetadata |
A Task containing the RPC response. |
// 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 |
LocationNameRequired. The location to create the backup vaults, in the format
|
backupVault |
BackupVaultRequired. A backupVault resource |
backupVaultId |
stringRequired. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupVaultOperationMetadata |
The RPC response. |
// 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 |
CreateBackupVaultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupVaultOperationMetadata |
The RPC response. |
// 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 |
stringRequired. The location to create the backup vaults, in the format
|
backupVault |
BackupVaultRequired. A backupVault resource |
backupVaultId |
stringRequired. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupVaultOperationMetadata |
The RPC response. |
// 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 |
LocationNameRequired. The location to create the backup vaults, in the format
|
backupVault |
BackupVaultRequired. A backupVault resource |
backupVaultId |
stringRequired. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupVaultOperationMetadata |
A Task containing the RPC response. |
// 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 |
LocationNameRequired. The location to create the backup vaults, in the format
|
backupVault |
BackupVaultRequired. A backupVault resource |
backupVaultId |
stringRequired. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupVaultOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateBackupVaultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupVaultOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateBackupVaultRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupVaultOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The location to create the backup vaults, in the format
|
backupVault |
BackupVaultRequired. A backupVault resource |
backupVaultId |
stringRequired. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupVaultOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The location to create the backup vaults, in the format
|
backupVault |
BackupVaultRequired. A backupVault resource |
backupVaultId |
stringRequired. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupVaultOperationMetadata |
A Task containing the RPC response. |
// 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 |
LocationNameRequired. Value for parent. |
kmsConfig |
KmsConfigRequired. The required parameters to create a new KmsConfig. |
kmsConfigId |
stringRequired. Id of the requesting KmsConfig. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationKmsConfigOperationMetadata |
The RPC response. |
// 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 |
CreateKmsConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationKmsConfigOperationMetadata |
The RPC response. |
// 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 |
stringRequired. Value for parent. |
kmsConfig |
KmsConfigRequired. The required parameters to create a new KmsConfig. |
kmsConfigId |
stringRequired. Id of the requesting KmsConfig. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationKmsConfigOperationMetadata |
The RPC response. |
// 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 |
LocationNameRequired. Value for parent. |
kmsConfig |
KmsConfigRequired. The required parameters to create a new KmsConfig. |
kmsConfigId |
stringRequired. Id of the requesting KmsConfig. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A Task containing the RPC response. |
// 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 |
LocationNameRequired. Value for parent. |
kmsConfig |
KmsConfigRequired. The required parameters to create a new KmsConfig. |
kmsConfigId |
stringRequired. Id of the requesting KmsConfig. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateKmsConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateKmsConfigRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Value for parent. |
kmsConfig |
KmsConfigRequired. The required parameters to create a new KmsConfig. |
kmsConfigId |
stringRequired. Id of the requesting KmsConfig. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Value for parent. |
kmsConfig |
KmsConfigRequired. The required parameters to create a new KmsConfig. |
kmsConfigId |
stringRequired. Id of the requesting KmsConfig. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A Task containing the RPC response. |
// 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;
}
CreateQuotaRule(CreateQuotaRuleRequest, CallSettings)
public virtual Operation<QuotaRule, OperationMetadata> CreateQuotaRule(CreateQuotaRuleRequest request, CallSettings callSettings = null)Creates a new quota rule.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateQuotaRuleRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationQuotaRuleOperationMetadata |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
CreateQuotaRuleRequest request = new CreateQuotaRuleRequest
{
ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
QuotaRule = new QuotaRule(),
QuotaRuleId = "",
};
// Make the request
Operation<QuotaRule, OperationMetadata> response = netAppClient.CreateQuotaRule(request);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateQuotaRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule retrievedResult = retrievedResponse.Result;
}
CreateQuotaRule(VolumeName, QuotaRule, string, CallSettings)
public virtual Operation<QuotaRule, OperationMetadata> CreateQuotaRule(VolumeName parent, QuotaRule quotaRule, string quotaRuleId, CallSettings callSettings = null)Creates a new quota rule.
| Parameters | |
|---|---|
| Name | Description |
parent |
VolumeNameRequired. Parent value for CreateQuotaRuleRequest |
quotaRule |
QuotaRuleRequired. Fields of the to be created quota rule. |
quotaRuleId |
stringRequired. ID of the quota rule 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationQuotaRuleOperationMetadata |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
QuotaRule quotaRule = new QuotaRule();
string quotaRuleId = "";
// Make the request
Operation<QuotaRule, OperationMetadata> response = netAppClient.CreateQuotaRule(parent, quotaRule, quotaRuleId);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateQuotaRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule retrievedResult = retrievedResponse.Result;
}
CreateQuotaRule(string, QuotaRule, string, CallSettings)
public virtual Operation<QuotaRule, OperationMetadata> CreateQuotaRule(string parent, QuotaRule quotaRule, string quotaRuleId, CallSettings callSettings = null)Creates a new quota rule.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. Parent value for CreateQuotaRuleRequest |
quotaRule |
QuotaRuleRequired. Fields of the to be created quota rule. |
quotaRuleId |
stringRequired. ID of the quota rule 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationQuotaRuleOperationMetadata |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
QuotaRule quotaRule = new QuotaRule();
string quotaRuleId = "";
// Make the request
Operation<QuotaRule, OperationMetadata> response = netAppClient.CreateQuotaRule(parent, quotaRule, quotaRuleId);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = netAppClient.PollOnceCreateQuotaRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule retrievedResult = retrievedResponse.Result;
}
CreateQuotaRuleAsync(CreateQuotaRuleRequest, CallSettings)
public virtual Task<Operation<QuotaRule, OperationMetadata>> CreateQuotaRuleAsync(CreateQuotaRuleRequest request, CallSettings callSettings = null)Creates a new quota rule.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateQuotaRuleRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationQuotaRuleOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateQuotaRuleRequest request = new CreateQuotaRuleRequest
{
ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
QuotaRule = new QuotaRule(),
QuotaRuleId = "",
};
// Make the request
Operation<QuotaRule, OperationMetadata> response = await netAppClient.CreateQuotaRuleAsync(request);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateQuotaRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule retrievedResult = retrievedResponse.Result;
}
CreateQuotaRuleAsync(CreateQuotaRuleRequest, CancellationToken)
public virtual Task<Operation<QuotaRule, OperationMetadata>> CreateQuotaRuleAsync(CreateQuotaRuleRequest request, CancellationToken cancellationToken)Creates a new quota rule.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateQuotaRuleRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationQuotaRuleOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
CreateQuotaRuleRequest request = new CreateQuotaRuleRequest
{
ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
QuotaRule = new QuotaRule(),
QuotaRuleId = "",
};
// Make the request
Operation<QuotaRule, OperationMetadata> response = await netAppClient.CreateQuotaRuleAsync(request);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateQuotaRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule retrievedResult = retrievedResponse.Result;
}
CreateQuotaRuleAsync(VolumeName, QuotaRule, string, CallSettings)
public virtual Task<Operation<QuotaRule, OperationMetadata>> CreateQuotaRuleAsync(VolumeName parent, QuotaRule quotaRule, string quotaRuleId, CallSettings callSettings = null)Creates a new quota rule.
| Parameters | |
|---|---|
| Name | Description |
parent |
VolumeNameRequired. Parent value for CreateQuotaRuleRequest |
quotaRule |
QuotaRuleRequired. Fields of the to be created quota rule. |
quotaRuleId |
stringRequired. ID of the quota rule 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationQuotaRuleOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
QuotaRule quotaRule = new QuotaRule();
string quotaRuleId = "";
// Make the request
Operation<QuotaRule, OperationMetadata> response = await netAppClient.CreateQuotaRuleAsync(parent, quotaRule, quotaRuleId);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateQuotaRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule retrievedResult = retrievedResponse.Result;
}
CreateQuotaRuleAsync(VolumeName, QuotaRule, string, CancellationToken)
public virtual Task<Operation<QuotaRule, OperationMetadata>> CreateQuotaRuleAsync(VolumeName parent, QuotaRule quotaRule, string quotaRuleId, CancellationToken cancellationToken)Creates a new quota rule.
| Parameters | |
|---|---|
| Name | Description |
parent |
VolumeNameRequired. Parent value for CreateQuotaRuleRequest |
quotaRule |
QuotaRuleRequired. Fields of the to be created quota rule. |
quotaRuleId |
stringRequired. ID of the quota rule 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationQuotaRuleOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
QuotaRule quotaRule = new QuotaRule();
string quotaRuleId = "";
// Make the request
Operation<QuotaRule, OperationMetadata> response = await netAppClient.CreateQuotaRuleAsync(parent, quotaRule, quotaRuleId);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateQuotaRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule retrievedResult = retrievedResponse.Result;
}
CreateQuotaRuleAsync(string, QuotaRule, string, CallSettings)
public virtual Task<Operation<QuotaRule, OperationMetadata>> CreateQuotaRuleAsync(string parent, QuotaRule quotaRule, string quotaRuleId, CallSettings callSettings = null)Creates a new quota rule.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. Parent value for CreateQuotaRuleRequest |
quotaRule |
QuotaRuleRequired. Fields of the to be created quota rule. |
quotaRuleId |
stringRequired. ID of the quota rule 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationQuotaRuleOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
QuotaRule quotaRule = new QuotaRule();
string quotaRuleId = "";
// Make the request
Operation<QuotaRule, OperationMetadata> response = await netAppClient.CreateQuotaRuleAsync(parent, quotaRule, quotaRuleId);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateQuotaRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule retrievedResult = retrievedResponse.Result;
}
CreateQuotaRuleAsync(string, QuotaRule, string, CancellationToken)
public virtual Task<Operation<QuotaRule, OperationMetadata>> CreateQuotaRuleAsync(string parent, QuotaRule quotaRule, string quotaRuleId, CancellationToken cancellationToken)Creates a new quota rule.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. Parent value for CreateQuotaRuleRequest |
quotaRule |
QuotaRuleRequired. Fields of the to be created quota rule. |
quotaRuleId |
stringRequired. ID of the quota rule 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationQuotaRuleOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
QuotaRule quotaRule = new QuotaRule();
string quotaRuleId = "";
// Make the request
Operation<QuotaRule, OperationMetadata> response = await netAppClient.CreateQuotaRuleAsync(parent, quotaRule, quotaRuleId);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = await netAppClient.PollOnceCreateQuotaRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule 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 |
CreateReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationReplicationOperationMetadata |
The RPC response. |
// 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 |
VolumeNameRequired. The NetApp volume to create the replications of, in the format
|
replication |
ReplicationRequired. A replication resource |
replicationId |
stringRequired. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationReplicationOperationMetadata |
The RPC response. |
// 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 |
stringRequired. The NetApp volume to create the replications of, in the format
|
replication |
ReplicationRequired. A replication resource |
replicationId |
stringRequired. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationReplicationOperationMetadata |
The RPC response. |
// 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 |
CreateReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateReplicationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
VolumeNameRequired. The NetApp volume to create the replications of, in the format
|
replication |
ReplicationRequired. A replication resource |
replicationId |
stringRequired. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
VolumeNameRequired. The NetApp volume to create the replications of, in the format
|
replication |
ReplicationRequired. A replication resource |
replicationId |
stringRequired. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The NetApp volume to create the replications of, in the format
|
replication |
ReplicationRequired. A replication resource |
replicationId |
stringRequired. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The NetApp volume to create the replications of, in the format
|
replication |
ReplicationRequired. A replication resource |
replicationId |
stringRequired. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSnapshotOperationMetadata |
The RPC response. |
// 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 |
VolumeNameRequired. The NetApp volume to create the snapshots of, in the format
|
snapshot |
SnapshotRequired. A snapshot resource |
snapshotId |
stringRequired. ID of the snapshot to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSnapshotOperationMetadata |
The RPC response. |
// 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 |
stringRequired. The NetApp volume to create the snapshots of, in the format
|
snapshot |
SnapshotRequired. A snapshot resource |
snapshotId |
stringRequired. ID of the snapshot to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSnapshotOperationMetadata |
The RPC response. |
// 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 |
CreateSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSnapshotOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateSnapshotRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSnapshotOperationMetadata |
A Task containing the RPC response. |
// 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 |
VolumeNameRequired. The NetApp volume to create the snapshots of, in the format
|
snapshot |
SnapshotRequired. A snapshot resource |
snapshotId |
stringRequired. ID of the snapshot to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSnapshotOperationMetadata |
A Task containing the RPC response. |
// 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 |
VolumeNameRequired. The NetApp volume to create the snapshots of, in the format
|
snapshot |
SnapshotRequired. A snapshot resource |
snapshotId |
stringRequired. ID of the snapshot to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSnapshotOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The NetApp volume to create the snapshots of, in the format
|
snapshot |
SnapshotRequired. A snapshot resource |
snapshotId |
stringRequired. ID of the snapshot to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSnapshotOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The NetApp volume to create the snapshots of, in the format
|
snapshot |
SnapshotRequired. A snapshot resource |
snapshotId |
stringRequired. ID of the snapshot to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSnapshotOperationMetadata |
A Task containing the RPC response. |
// 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 |
LocationNameRequired. Value for parent. |
storagePool |
StoragePoolRequired. The required parameters to create a new storage pool. |
storagePoolId |
stringRequired. Id of the requesting storage pool. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationStoragePoolOperationMetadata |
The RPC response. |
// 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 |
CreateStoragePoolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationStoragePoolOperationMetadata |
The RPC response. |
// 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 |
stringRequired. Value for parent. |
storagePool |
StoragePoolRequired. The required parameters to create a new storage pool. |
storagePoolId |
stringRequired. Id of the requesting storage pool. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationStoragePoolOperationMetadata |
The RPC response. |
// 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 |
LocationNameRequired. Value for parent. |
storagePool |
StoragePoolRequired. The required parameters to create a new storage pool. |
storagePoolId |
stringRequired. Id of the requesting storage pool. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationStoragePoolOperationMetadata |
A Task containing the RPC response. |
// 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 |
LocationNameRequired. Value for parent. |
storagePool |
StoragePoolRequired. The required parameters to create a new storage pool. |
storagePoolId |
stringRequired. Id of the requesting storage pool. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationStoragePoolOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateStoragePoolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationStoragePoolOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateStoragePoolRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationStoragePoolOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Value for parent. |
storagePool |
StoragePoolRequired. The required parameters to create a new storage pool. |
storagePoolId |
stringRequired. Id of the requesting storage pool. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationStoragePoolOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Value for parent. |
storagePool |
StoragePoolRequired. The required parameters to create a new storage pool. |
storagePoolId |
stringRequired. Id of the requesting storage pool. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationStoragePoolOperationMetadata |
A Task containing the RPC response. |
// 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 |
LocationNameRequired. Value for parent. |
volume |
VolumeRequired. The volume being created. |
volumeId |
stringRequired. Id of the requesting volume. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationVolumeOperationMetadata |
The RPC response. |
// 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 |
CreateVolumeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationVolumeOperationMetadata |
The RPC response. |
// 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 |
stringRequired. Value for parent. |
volume |
VolumeRequired. The volume being created. |
volumeId |
stringRequired. Id of the requesting volume. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationVolumeOperationMetadata |
The RPC response. |
// 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 |
LocationNameRequired. Value for parent. |
volume |
VolumeRequired. The volume being created. |
volumeId |
stringRequired. Id of the requesting volume. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationVolumeOperationMetadata |
A Task containing the RPC response. |
// 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 |
LocationNameRequired. Value for parent. |
volume |
VolumeRequired. The volume being created. |
volumeId |
stringRequired. Id of the requesting volume. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationVolumeOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateVolumeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationVolumeOperationMetadata |
A Task containing the RPC response. |
// 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 |
CreateVolumeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationVolumeOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Value for parent. |
volume |
VolumeRequired. The volume being created. |
volumeId |
stringRequired. Id of the requesting volume. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationVolumeOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Value for parent. |
volume |
VolumeRequired. The volume being created. |
volumeId |
stringRequired. Id of the requesting volume. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationVolumeOperationMetadata |
A Task containing the RPC response. |
// 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 |
ActiveDirectoryNameRequired. Name of the active directory. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
DeleteActiveDirectoryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
stringRequired. Name of the active directory. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
ActiveDirectoryNameRequired. Name of the active directory. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
ActiveDirectoryNameRequired. Name of the active directory. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteActiveDirectoryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteActiveDirectoryRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the active directory. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the active directory. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
BackupNameRequired. The backup resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
DeleteBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
stringRequired. The backup resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
BackupNameRequired. The backup resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
BackupNameRequired. The backup resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteBackupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The backup resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The backup resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
BackupPolicyNameRequired. The backup policy resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
DeleteBackupPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
stringRequired. The backup policy resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
BackupPolicyNameRequired. The backup policy resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
BackupPolicyNameRequired. The backup policy resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteBackupPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteBackupPolicyRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The backup policy resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The backup policy resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
BackupVaultNameRequired. The backupVault resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
DeleteBackupVaultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
stringRequired. The backupVault resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
BackupVaultNameRequired. The backupVault resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
BackupVaultNameRequired. The backupVault resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteBackupVaultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteBackupVaultRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The backupVault resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The backupVault resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteKmsConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
KmsConfigNameRequired. Name of the KmsConfig. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
stringRequired. Name of the KmsConfig. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
DeleteKmsConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteKmsConfigRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
KmsConfigNameRequired. Name of the KmsConfig. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
KmsConfigNameRequired. Name of the KmsConfig. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the KmsConfig. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the KmsConfig. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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;
}
DeleteQuotaRule(DeleteQuotaRuleRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteQuotaRule(DeleteQuotaRuleRequest request, CallSettings callSettings = null)Deletes a quota rule.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteQuotaRuleRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
DeleteQuotaRuleRequest request = new DeleteQuotaRuleRequest
{
QuotaRuleName = QuotaRuleName.FromProjectLocationVolumeQuotaRule("[PROJECT]", "[LOCATION]", "[VOLUME]", "[QUOTA_RULE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteQuotaRule(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.PollOnceDeleteQuotaRule(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;
}
DeleteQuotaRule(QuotaRuleName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteQuotaRule(QuotaRuleName name, CallSettings callSettings = null)Deletes a quota rule.
| Parameters | |
|---|---|
| Name | Description |
name |
QuotaRuleNameRequired. Name of the quota rule. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
QuotaRuleName name = QuotaRuleName.FromProjectLocationVolumeQuotaRule("[PROJECT]", "[LOCATION]", "[VOLUME]", "[QUOTA_RULE]");
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteQuotaRule(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.PollOnceDeleteQuotaRule(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;
}
DeleteQuotaRule(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteQuotaRule(string name, CallSettings callSettings = null)Deletes a quota rule.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the quota rule. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/quotaRules/[QUOTA_RULE]";
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.DeleteQuotaRule(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.PollOnceDeleteQuotaRule(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;
}
DeleteQuotaRuleAsync(DeleteQuotaRuleRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteQuotaRuleAsync(DeleteQuotaRuleRequest request, CallSettings callSettings = null)Deletes a quota rule.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteQuotaRuleRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteQuotaRuleRequest request = new DeleteQuotaRuleRequest
{
QuotaRuleName = QuotaRuleName.FromProjectLocationVolumeQuotaRule("[PROJECT]", "[LOCATION]", "[VOLUME]", "[QUOTA_RULE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteQuotaRuleAsync(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.PollOnceDeleteQuotaRuleAsync(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;
}
DeleteQuotaRuleAsync(DeleteQuotaRuleRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteQuotaRuleAsync(DeleteQuotaRuleRequest request, CancellationToken cancellationToken)Deletes a quota rule.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteQuotaRuleRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
DeleteQuotaRuleRequest request = new DeleteQuotaRuleRequest
{
QuotaRuleName = QuotaRuleName.FromProjectLocationVolumeQuotaRule("[PROJECT]", "[LOCATION]", "[VOLUME]", "[QUOTA_RULE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteQuotaRuleAsync(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.PollOnceDeleteQuotaRuleAsync(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;
}
DeleteQuotaRuleAsync(QuotaRuleName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteQuotaRuleAsync(QuotaRuleName name, CallSettings callSettings = null)Deletes a quota rule.
| Parameters | |
|---|---|
| Name | Description |
name |
QuotaRuleNameRequired. Name of the quota rule. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
QuotaRuleName name = QuotaRuleName.FromProjectLocationVolumeQuotaRule("[PROJECT]", "[LOCATION]", "[VOLUME]", "[QUOTA_RULE]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteQuotaRuleAsync(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.PollOnceDeleteQuotaRuleAsync(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;
}
DeleteQuotaRuleAsync(QuotaRuleName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteQuotaRuleAsync(QuotaRuleName name, CancellationToken cancellationToken)Deletes a quota rule.
| Parameters | |
|---|---|
| Name | Description |
name |
QuotaRuleNameRequired. Name of the quota rule. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
QuotaRuleName name = QuotaRuleName.FromProjectLocationVolumeQuotaRule("[PROJECT]", "[LOCATION]", "[VOLUME]", "[QUOTA_RULE]");
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteQuotaRuleAsync(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.PollOnceDeleteQuotaRuleAsync(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;
}
DeleteQuotaRuleAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteQuotaRuleAsync(string name, CallSettings callSettings = null)Deletes a quota rule.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the quota rule. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/quotaRules/[QUOTA_RULE]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteQuotaRuleAsync(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.PollOnceDeleteQuotaRuleAsync(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;
}
DeleteQuotaRuleAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteQuotaRuleAsync(string name, CancellationToken cancellationToken)Deletes a quota rule.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the quota rule. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/quotaRules/[QUOTA_RULE]";
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.DeleteQuotaRuleAsync(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.PollOnceDeleteQuotaRuleAsync(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 |
DeleteReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
ReplicationNameRequired. The replication resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
stringRequired. The replication resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
DeleteReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteReplicationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
ReplicationNameRequired. The replication resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
ReplicationNameRequired. The replication resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The replication resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The replication resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
SnapshotNameRequired. The snapshot resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
stringRequired. The snapshot resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
DeleteSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteSnapshotRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
SnapshotNameRequired. The snapshot resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
SnapshotNameRequired. The snapshot resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The snapshot resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. The snapshot resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteStoragePoolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
StoragePoolNameRequired. Name of the storage pool |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
stringRequired. Name of the storage pool |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
DeleteStoragePoolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteStoragePoolRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
StoragePoolNameRequired. Name of the storage pool |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
StoragePoolNameRequired. Name of the storage pool |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the storage pool |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the storage pool |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteVolumeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
VolumeNameRequired. Name of the volume |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
stringRequired. Name of the volume |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// 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 |
DeleteVolumeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
DeleteVolumeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
VolumeNameRequired. Name of the volume |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
VolumeNameRequired. Name of the volume |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the volume |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the volume |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// 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 |
EncryptVolumesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationKmsConfigOperationMetadata |
The RPC response. |
// 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 |
EncryptVolumesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A Task containing the RPC response. |
// 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 |
EncryptVolumesRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A Task containing the RPC response. |
// 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;
}
EstablishPeering(EstablishPeeringRequest, CallSettings)
public virtual Operation<Replication, OperationMetadata> EstablishPeering(EstablishPeeringRequest request, CallSettings callSettings = null)Establish replication peering.
| Parameters | |
|---|---|
| Name | Description |
request |
EstablishPeeringRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationReplicationOperationMetadata |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
EstablishPeeringRequest request = new EstablishPeeringRequest
{
ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
PeerClusterName = "",
PeerSvmName = "",
PeerIpAddresses = { "", },
PeerVolumeName = "",
};
// Make the request
Operation<Replication, OperationMetadata> response = netAppClient.EstablishPeering(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.PollOnceEstablishPeering(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;
}
EstablishPeeringAsync(EstablishPeeringRequest, CallSettings)
public virtual Task<Operation<Replication, OperationMetadata>> EstablishPeeringAsync(EstablishPeeringRequest request, CallSettings callSettings = null)Establish replication peering.
| Parameters | |
|---|---|
| Name | Description |
request |
EstablishPeeringRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
EstablishPeeringRequest request = new EstablishPeeringRequest
{
ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
PeerClusterName = "",
PeerSvmName = "",
PeerIpAddresses = { "", },
PeerVolumeName = "",
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.EstablishPeeringAsync(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.PollOnceEstablishPeeringAsync(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;
}
EstablishPeeringAsync(EstablishPeeringRequest, CancellationToken)
public virtual Task<Operation<Replication, OperationMetadata>> EstablishPeeringAsync(EstablishPeeringRequest request, CancellationToken cancellationToken)Establish replication peering.
| Parameters | |
|---|---|
| Name | Description |
request |
EstablishPeeringRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
EstablishPeeringRequest request = new EstablishPeeringRequest
{
ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
PeerClusterName = "",
PeerSvmName = "",
PeerIpAddresses = { "", },
PeerVolumeName = "",
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.EstablishPeeringAsync(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.PollOnceEstablishPeeringAsync(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;
}
GetActiveDirectory(ActiveDirectoryName, CallSettings)
public virtual ActiveDirectory GetActiveDirectory(ActiveDirectoryName name, CallSettings callSettings = null)Describes a specified active directory.
| Parameters | |
|---|---|
| Name | Description |
name |
ActiveDirectoryNameRequired. Name of the active directory. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ActiveDirectory |
The RPC response. |
// 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 |
GetActiveDirectoryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ActiveDirectory |
The RPC response. |
// 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 |
stringRequired. Name of the active directory. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ActiveDirectory |
The RPC response. |
// 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 |
ActiveDirectoryNameRequired. Name of the active directory. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskActiveDirectory |
A Task containing the RPC response. |
// 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 |
ActiveDirectoryNameRequired. Name of the active directory. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskActiveDirectory |
A Task containing the RPC response. |
// 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 |
GetActiveDirectoryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskActiveDirectory |
A Task containing the RPC response. |
// 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 |
GetActiveDirectoryRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskActiveDirectory |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the active directory. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskActiveDirectory |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the active directory. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskActiveDirectory |
A Task containing the RPC response. |
// 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 |
BackupNameRequired. The backup resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Backup |
The RPC response. |
// 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 |
GetBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Backup |
The RPC response. |
// 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 |
stringRequired. The backup resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Backup |
The RPC response. |
// 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 |
BackupNameRequired. The backup resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackup |
A Task containing the RPC response. |
// 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 |
BackupNameRequired. The backup resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackup |
A Task containing the RPC response. |
// 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 |
GetBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackup |
A Task containing the RPC response. |
// 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 |
GetBackupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackup |
A Task containing the RPC response. |
// 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 |
stringRequired. The backup resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackup |
A Task containing the RPC response. |
// 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 |
stringRequired. The backup resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackup |
A Task containing the RPC response. |
// 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 |
BackupPolicyNameRequired. The backupPolicy resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupPolicy |
The RPC response. |
// 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 |
GetBackupPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupPolicy |
The RPC response. |
// 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 |
stringRequired. The backupPolicy resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupPolicy |
The RPC response. |
// 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 |
BackupPolicyNameRequired. The backupPolicy resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPolicy |
A Task containing the RPC response. |
// 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 |
BackupPolicyNameRequired. The backupPolicy resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPolicy |
A Task containing the RPC response. |
// 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 |
GetBackupPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPolicy |
A Task containing the RPC response. |
// 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 |
GetBackupPolicyRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPolicy |
A Task containing the RPC response. |
// 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 |
stringRequired. The backupPolicy resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPolicy |
A Task containing the RPC response. |
// 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 |
stringRequired. The backupPolicy resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPolicy |
A Task containing the RPC response. |
// 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 |
BackupVaultNameRequired. The backupVault resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupVault |
The RPC response. |
// 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 |
GetBackupVaultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupVault |
The RPC response. |
// 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 |
stringRequired. The backupVault resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupVault |
The RPC response. |
// 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 |
BackupVaultNameRequired. The backupVault resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupVault |
A Task containing the RPC response. |
// 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 |
BackupVaultNameRequired. The backupVault resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupVault |
A Task containing the RPC response. |
// 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 |
GetBackupVaultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupVault |
A Task containing the RPC response. |
// 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 |
GetBackupVaultRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupVault |
A Task containing the RPC response. |
// 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 |
stringRequired. The backupVault resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupVault |
A Task containing the RPC response. |
// 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 |
stringRequired. The backupVault resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupVault |
A Task containing the RPC response. |
// 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 |
GetKmsConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
KmsConfig |
The RPC response. |
// 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 |
KmsConfigNameRequired. Name of the KmsConfig |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
KmsConfig |
The RPC response. |
// 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 |
stringRequired. Name of the KmsConfig |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
KmsConfig |
The RPC response. |
// 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 |
GetKmsConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskKmsConfig |
A Task containing the RPC response. |
// 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 |
GetKmsConfigRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskKmsConfig |
A Task containing the RPC response. |
// 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 |
KmsConfigNameRequired. Name of the KmsConfig |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskKmsConfig |
A Task containing the RPC response. |
// 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 |
KmsConfigNameRequired. Name of the KmsConfig |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskKmsConfig |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the KmsConfig |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskKmsConfig |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the KmsConfig |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskKmsConfig |
A Task containing the RPC response. |
// 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);
GetQuotaRule(GetQuotaRuleRequest, CallSettings)
public virtual QuotaRule GetQuotaRule(GetQuotaRuleRequest request, CallSettings callSettings = null)Returns details of the specified quota rule.
| Parameters | |
|---|---|
| Name | Description |
request |
GetQuotaRuleRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
GetQuotaRuleRequest request = new GetQuotaRuleRequest
{
QuotaRuleName = QuotaRuleName.FromProjectLocationVolumeQuotaRule("[PROJECT]", "[LOCATION]", "[VOLUME]", "[QUOTA_RULE]"),
};
// Make the request
QuotaRule response = netAppClient.GetQuotaRule(request);
GetQuotaRule(QuotaRuleName, CallSettings)
public virtual QuotaRule GetQuotaRule(QuotaRuleName name, CallSettings callSettings = null)Returns details of the specified quota rule.
| Parameters | |
|---|---|
| Name | Description |
name |
QuotaRuleNameRequired. Name of the quota rule |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
QuotaRuleName name = QuotaRuleName.FromProjectLocationVolumeQuotaRule("[PROJECT]", "[LOCATION]", "[VOLUME]", "[QUOTA_RULE]");
// Make the request
QuotaRule response = netAppClient.GetQuotaRule(name);
GetQuotaRule(string, CallSettings)
public virtual QuotaRule GetQuotaRule(string name, CallSettings callSettings = null)Returns details of the specified quota rule.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the quota rule |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/quotaRules/[QUOTA_RULE]";
// Make the request
QuotaRule response = netAppClient.GetQuotaRule(name);
GetQuotaRuleAsync(GetQuotaRuleRequest, CallSettings)
public virtual Task<QuotaRule> GetQuotaRuleAsync(GetQuotaRuleRequest request, CallSettings callSettings = null)Returns details of the specified quota rule.
| Parameters | |
|---|---|
| Name | Description |
request |
GetQuotaRuleRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskQuotaRule |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetQuotaRuleRequest request = new GetQuotaRuleRequest
{
QuotaRuleName = QuotaRuleName.FromProjectLocationVolumeQuotaRule("[PROJECT]", "[LOCATION]", "[VOLUME]", "[QUOTA_RULE]"),
};
// Make the request
QuotaRule response = await netAppClient.GetQuotaRuleAsync(request);
GetQuotaRuleAsync(GetQuotaRuleRequest, CancellationToken)
public virtual Task<QuotaRule> GetQuotaRuleAsync(GetQuotaRuleRequest request, CancellationToken cancellationToken)Returns details of the specified quota rule.
| Parameters | |
|---|---|
| Name | Description |
request |
GetQuotaRuleRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskQuotaRule |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
GetQuotaRuleRequest request = new GetQuotaRuleRequest
{
QuotaRuleName = QuotaRuleName.FromProjectLocationVolumeQuotaRule("[PROJECT]", "[LOCATION]", "[VOLUME]", "[QUOTA_RULE]"),
};
// Make the request
QuotaRule response = await netAppClient.GetQuotaRuleAsync(request);
GetQuotaRuleAsync(QuotaRuleName, CallSettings)
public virtual Task<QuotaRule> GetQuotaRuleAsync(QuotaRuleName name, CallSettings callSettings = null)Returns details of the specified quota rule.
| Parameters | |
|---|---|
| Name | Description |
name |
QuotaRuleNameRequired. Name of the quota rule |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskQuotaRule |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
QuotaRuleName name = QuotaRuleName.FromProjectLocationVolumeQuotaRule("[PROJECT]", "[LOCATION]", "[VOLUME]", "[QUOTA_RULE]");
// Make the request
QuotaRule response = await netAppClient.GetQuotaRuleAsync(name);
GetQuotaRuleAsync(QuotaRuleName, CancellationToken)
public virtual Task<QuotaRule> GetQuotaRuleAsync(QuotaRuleName name, CancellationToken cancellationToken)Returns details of the specified quota rule.
| Parameters | |
|---|---|
| Name | Description |
name |
QuotaRuleNameRequired. Name of the quota rule |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskQuotaRule |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
QuotaRuleName name = QuotaRuleName.FromProjectLocationVolumeQuotaRule("[PROJECT]", "[LOCATION]", "[VOLUME]", "[QUOTA_RULE]");
// Make the request
QuotaRule response = await netAppClient.GetQuotaRuleAsync(name);
GetQuotaRuleAsync(string, CallSettings)
public virtual Task<QuotaRule> GetQuotaRuleAsync(string name, CallSettings callSettings = null)Returns details of the specified quota rule.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the quota rule |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskQuotaRule |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/quotaRules/[QUOTA_RULE]";
// Make the request
QuotaRule response = await netAppClient.GetQuotaRuleAsync(name);
GetQuotaRuleAsync(string, CancellationToken)
public virtual Task<QuotaRule> GetQuotaRuleAsync(string name, CancellationToken cancellationToken)Returns details of the specified quota rule.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the quota rule |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskQuotaRule |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]/quotaRules/[QUOTA_RULE]";
// Make the request
QuotaRule response = await netAppClient.GetQuotaRuleAsync(name);
GetReplication(GetReplicationRequest, CallSettings)
public virtual Replication GetReplication(GetReplicationRequest request, CallSettings callSettings = null)Describe a replication for a volume.
| Parameters | |
|---|---|
| Name | Description |
request |
GetReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Replication |
The RPC response. |
// 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 |
ReplicationNameRequired. The replication resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Replication |
The RPC response. |
// 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 |
stringRequired. The replication resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Replication |
The RPC response. |
// 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 |
GetReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskReplication |
A Task containing the RPC response. |
// 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 |
GetReplicationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskReplication |
A Task containing the RPC response. |
// 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 |
ReplicationNameRequired. The replication resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskReplication |
A Task containing the RPC response. |
// 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 |
ReplicationNameRequired. The replication resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskReplication |
A Task containing the RPC response. |
// 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 |
stringRequired. The replication resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskReplication |
A Task containing the RPC response. |
// 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 |
stringRequired. The replication resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskReplication |
A Task containing the RPC response. |
// 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 |
GetSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Snapshot |
The RPC response. |
// 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 |
SnapshotNameRequired. The snapshot resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Snapshot |
The RPC response. |
// 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 |
stringRequired. The snapshot resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Snapshot |
The RPC response. |
// 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 |
GetSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSnapshot |
A Task containing the RPC response. |
// 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 |
GetSnapshotRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskSnapshot |
A Task containing the RPC response. |
// 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 |
SnapshotNameRequired. The snapshot resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSnapshot |
A Task containing the RPC response. |
// 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 |
SnapshotNameRequired. The snapshot resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskSnapshot |
A Task containing the RPC response. |
// 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 |
stringRequired. The snapshot resource name, in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSnapshot |
A Task containing the RPC response. |
// 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 |
stringRequired. The snapshot resource name, in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskSnapshot |
A Task containing the RPC response. |
// 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 |
GetStoragePoolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
StoragePool |
The RPC response. |
// 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 |
StoragePoolNameRequired. Name of the storage pool |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
StoragePool |
The RPC response. |
// 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 |
stringRequired. Name of the storage pool |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
StoragePool |
The RPC response. |
// 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 |
GetStoragePoolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskStoragePool |
A Task containing the RPC response. |
// 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 |
GetStoragePoolRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskStoragePool |
A Task containing the RPC response. |
// 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 |
StoragePoolNameRequired. Name of the storage pool |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskStoragePool |
A Task containing the RPC response. |
// 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 |
StoragePoolNameRequired. Name of the storage pool |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskStoragePool |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the storage pool |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskStoragePool |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the storage pool |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskStoragePool |
A Task containing the RPC response. |
// 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 |
GetVolumeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Volume |
The RPC response. |
// 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 |
VolumeNameRequired. Name of the volume |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Volume |
The RPC response. |
// 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 |
stringRequired. Name of the volume |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Volume |
The RPC response. |
// 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 |
GetVolumeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskVolume |
A Task containing the RPC response. |
// 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 |
GetVolumeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskVolume |
A Task containing the RPC response. |
// 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 |
VolumeNameRequired. Name of the volume |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskVolume |
A Task containing the RPC response. |
// 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 |
VolumeNameRequired. Name of the volume |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskVolume |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the volume |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskVolume |
A Task containing the RPC response. |
// 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 |
stringRequired. Name of the volume |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskVolume |
A Task containing the RPC response. |
// 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 |
LocationNameRequired. Parent value for ListActiveDirectoriesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListActiveDirectoriesResponseActiveDirectory |
A pageable sequence of ActiveDirectory resources. |
// 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 |
ListActiveDirectoriesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListActiveDirectoriesResponseActiveDirectory |
A pageable sequence of ActiveDirectory resources. |
// 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 |
stringRequired. Parent value for ListActiveDirectoriesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListActiveDirectoriesResponseActiveDirectory |
A pageable sequence of ActiveDirectory resources. |
// 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 |
LocationNameRequired. Parent value for ListActiveDirectoriesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListActiveDirectoriesResponseActiveDirectory |
A pageable asynchronous sequence of ActiveDirectory resources. |
// 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 |
ListActiveDirectoriesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListActiveDirectoriesResponseActiveDirectory |
A pageable asynchronous sequence of ActiveDirectory resources. |
// 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 |
stringRequired. Parent value for ListActiveDirectoriesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListActiveDirectoriesResponseActiveDirectory |
A pageable asynchronous sequence of ActiveDirectory resources. |
// 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 |
LocationNameRequired. Parent value for ListBackupPoliciesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBackupPoliciesResponseBackupPolicy |
A pageable sequence of BackupPolicy resources. |
// 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 |
ListBackupPoliciesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBackupPoliciesResponseBackupPolicy |
A pageable sequence of BackupPolicy resources. |
// 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 |
stringRequired. Parent value for ListBackupPoliciesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBackupPoliciesResponseBackupPolicy |
A pageable sequence of BackupPolicy resources. |
// 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 |
LocationNameRequired. Parent value for ListBackupPoliciesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBackupPoliciesResponseBackupPolicy |
A pageable asynchronous sequence of BackupPolicy resources. |
// 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 |
ListBackupPoliciesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBackupPoliciesResponseBackupPolicy |
A pageable asynchronous sequence of BackupPolicy resources. |
// 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 |
stringRequired. Parent value for ListBackupPoliciesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBackupPoliciesResponseBackupPolicy |
A pageable asynchronous sequence of BackupPolicy resources. |
// 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 |
LocationNameRequired. The location for which to retrieve backupVault information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBackupVaultsResponseBackupVault |
A pageable sequence of BackupVault resources. |
// 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 |
ListBackupVaultsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBackupVaultsResponseBackupVault |
A pageable sequence of BackupVault resources. |
// 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 |
stringRequired. The location for which to retrieve backupVault information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBackupVaultsResponseBackupVault |
A pageable sequence of BackupVault resources. |
// 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 |
LocationNameRequired. The location for which to retrieve backupVault information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBackupVaultsResponseBackupVault |
A pageable asynchronous sequence of BackupVault resources. |
// 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 |
ListBackupVaultsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBackupVaultsResponseBackupVault |
A pageable asynchronous sequence of BackupVault resources. |
// 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 |
stringRequired. The location for which to retrieve backupVault information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBackupVaultsResponseBackupVault |
A pageable asynchronous sequence of BackupVault resources. |
// 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 |
BackupVaultNameRequired. The backupVault for which to retrieve backup information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBackupsResponseBackup |
A pageable sequence of Backup resources. |
// 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 |
ListBackupsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBackupsResponseBackup |
A pageable sequence of Backup resources. |
// 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 |
stringRequired. The backupVault for which to retrieve backup information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBackupsResponseBackup |
A pageable sequence of Backup resources. |
// 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 |
BackupVaultNameRequired. The backupVault for which to retrieve backup information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBackupsResponseBackup |
A pageable asynchronous sequence of Backup resources. |
// 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 |
ListBackupsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBackupsResponseBackup |
A pageable asynchronous sequence of Backup resources. |
// 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 |
stringRequired. The backupVault for which to retrieve backup information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBackupsResponseBackup |
A pageable asynchronous sequence of Backup resources. |
// 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 |
LocationNameRequired. Parent value |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListKmsConfigsResponseKmsConfig |
A pageable sequence of KmsConfig resources. |
// 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 |
ListKmsConfigsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListKmsConfigsResponseKmsConfig |
A pageable sequence of KmsConfig resources. |
// 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 |
stringRequired. Parent value |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListKmsConfigsResponseKmsConfig |
A pageable sequence of KmsConfig resources. |
// 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 |
LocationNameRequired. Parent value |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListKmsConfigsResponseKmsConfig |
A pageable asynchronous sequence of KmsConfig resources. |
// 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 |
ListKmsConfigsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListKmsConfigsResponseKmsConfig |
A pageable asynchronous sequence of KmsConfig resources. |
// 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 |
stringRequired. Parent value |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListKmsConfigsResponseKmsConfig |
A pageable asynchronous sequence of KmsConfig resources. |
// 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;
ListQuotaRules(ListQuotaRulesRequest, CallSettings)
public virtual PagedEnumerable<ListQuotaRulesResponse, QuotaRule> ListQuotaRules(ListQuotaRulesRequest request, CallSettings callSettings = null)Returns list of all quota rules in a location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListQuotaRulesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListQuotaRulesResponseQuotaRule |
A pageable sequence of QuotaRule resources. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ListQuotaRulesRequest request = new ListQuotaRulesRequest
{
ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListQuotaRulesResponse, QuotaRule> response = netAppClient.ListQuotaRules(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (QuotaRule 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 (ListQuotaRulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (QuotaRule 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<QuotaRule> 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 (QuotaRule 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;
ListQuotaRules(VolumeName, string, int?, CallSettings)
public virtual PagedEnumerable<ListQuotaRulesResponse, QuotaRule> ListQuotaRules(VolumeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Returns list of all quota rules in a location.
| Parameters | |
|---|---|
| Name | Description |
parent |
VolumeNameRequired. Parent value for ListQuotaRulesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListQuotaRulesResponseQuotaRule |
A pageable sequence of QuotaRule resources. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
PagedEnumerable<ListQuotaRulesResponse, QuotaRule> response = netAppClient.ListQuotaRules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (QuotaRule 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 (ListQuotaRulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (QuotaRule 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<QuotaRule> 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 (QuotaRule 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;
ListQuotaRules(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListQuotaRulesResponse, QuotaRule> ListQuotaRules(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Returns list of all quota rules in a location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. Parent value for ListQuotaRulesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListQuotaRulesResponseQuotaRule |
A pageable sequence of QuotaRule resources. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
PagedEnumerable<ListQuotaRulesResponse, QuotaRule> response = netAppClient.ListQuotaRules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (QuotaRule 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 (ListQuotaRulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (QuotaRule 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<QuotaRule> 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 (QuotaRule 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;
ListQuotaRulesAsync(ListQuotaRulesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListQuotaRulesResponse, QuotaRule> ListQuotaRulesAsync(ListQuotaRulesRequest request, CallSettings callSettings = null)Returns list of all quota rules in a location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListQuotaRulesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListQuotaRulesResponseQuotaRule |
A pageable asynchronous sequence of QuotaRule resources. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ListQuotaRulesRequest request = new ListQuotaRulesRequest
{
ParentAsVolumeName = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListQuotaRulesResponse, QuotaRule> response = netAppClient.ListQuotaRulesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((QuotaRule 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((ListQuotaRulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (QuotaRule 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<QuotaRule> 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 (QuotaRule 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;
ListQuotaRulesAsync(VolumeName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListQuotaRulesResponse, QuotaRule> ListQuotaRulesAsync(VolumeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Returns list of all quota rules in a location.
| Parameters | |
|---|---|
| Name | Description |
parent |
VolumeNameRequired. Parent value for ListQuotaRulesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListQuotaRulesResponseQuotaRule |
A pageable asynchronous sequence of QuotaRule resources. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
VolumeName parent = VolumeName.FromProjectLocationVolume("[PROJECT]", "[LOCATION]", "[VOLUME]");
// Make the request
PagedAsyncEnumerable<ListQuotaRulesResponse, QuotaRule> response = netAppClient.ListQuotaRulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((QuotaRule 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((ListQuotaRulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (QuotaRule 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<QuotaRule> 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 (QuotaRule 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;
ListQuotaRulesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListQuotaRulesResponse, QuotaRule> ListQuotaRulesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Returns list of all quota rules in a location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. Parent value for ListQuotaRulesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListQuotaRulesResponseQuotaRule |
A pageable asynchronous sequence of QuotaRule resources. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/volumes/[VOLUME]";
// Make the request
PagedAsyncEnumerable<ListQuotaRulesResponse, QuotaRule> response = netAppClient.ListQuotaRulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((QuotaRule 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((ListQuotaRulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (QuotaRule 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<QuotaRule> 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 (QuotaRule 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 |
ListReplicationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListReplicationsResponseReplication |
A pageable sequence of Replication resources. |
// 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 |
VolumeNameRequired. The volume for which to retrieve replication information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListReplicationsResponseReplication |
A pageable sequence of Replication resources. |
// 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 |
stringRequired. The volume for which to retrieve replication information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListReplicationsResponseReplication |
A pageable sequence of Replication resources. |
// 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 |
ListReplicationsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListReplicationsResponseReplication |
A pageable asynchronous sequence of Replication resources. |
// 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 |
VolumeNameRequired. The volume for which to retrieve replication information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListReplicationsResponseReplication |
A pageable asynchronous sequence of Replication resources. |
// 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 |
stringRequired. The volume for which to retrieve replication information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListReplicationsResponseReplication |
A pageable asynchronous sequence of Replication resources. |
// 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 |
ListSnapshotsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListSnapshotsResponseSnapshot |
A pageable sequence of Snapshot resources. |
// 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 |
VolumeNameRequired. The volume for which to retrieve snapshot information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListSnapshotsResponseSnapshot |
A pageable sequence of Snapshot resources. |
// 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 |
stringRequired. The volume for which to retrieve snapshot information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListSnapshotsResponseSnapshot |
A pageable sequence of Snapshot resources. |
// 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 |
ListSnapshotsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListSnapshotsResponseSnapshot |
A pageable asynchronous sequence of Snapshot resources. |
// 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 |
VolumeNameRequired. The volume for which to retrieve snapshot information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListSnapshotsResponseSnapshot |
A pageable asynchronous sequence of Snapshot resources. |
// 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 |
stringRequired. The volume for which to retrieve snapshot information,
in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListSnapshotsResponseSnapshot |
A pageable asynchronous sequence of Snapshot resources. |
// 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 |
LocationNameRequired. Parent value |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListStoragePoolsResponseStoragePool |
A pageable sequence of StoragePool resources. |
// 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 |
ListStoragePoolsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListStoragePoolsResponseStoragePool |
A pageable sequence of StoragePool resources. |
// 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 |
stringRequired. Parent value |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListStoragePoolsResponseStoragePool |
A pageable sequence of StoragePool resources. |
// 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 |
LocationNameRequired. Parent value |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListStoragePoolsResponseStoragePool |
A pageable asynchronous sequence of StoragePool resources. |
// 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 |
ListStoragePoolsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListStoragePoolsResponseStoragePool |
A pageable asynchronous sequence of StoragePool resources. |
// 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 |
stringRequired. Parent value |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListStoragePoolsResponseStoragePool |
A pageable asynchronous sequence of StoragePool resources. |
// 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 |
LocationNameRequired. Parent value for ListVolumesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListVolumesResponseVolume |
A pageable sequence of Volume resources. |
// 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 |
ListVolumesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListVolumesResponseVolume |
A pageable sequence of Volume resources. |
// 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 |
stringRequired. Parent value for ListVolumesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListVolumesResponseVolume |
A pageable sequence of Volume resources. |
// 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 |
LocationNameRequired. Parent value for ListVolumesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListVolumesResponseVolume |
A pageable asynchronous sequence of Volume resources. |
// 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 |
ListVolumesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListVolumesResponseVolume |
A pageable asynchronous sequence of Volume resources. |
// 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 |
stringRequired. Parent value for ListVolumesRequest |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListVolumesResponseVolume |
A pageable asynchronous sequence of Volume resources. |
// 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateQuotaRule(string, CallSettings)
public virtual Operation<QuotaRule, OperationMetadata> PollOnceCreateQuotaRule(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateQuotaRule.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationQuotaRuleOperationMetadata |
The result of polling the operation. |
PollOnceCreateQuotaRuleAsync(string, CallSettings)
public virtual Task<Operation<QuotaRule, OperationMetadata>> PollOnceCreateQuotaRuleAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateQuotaRule.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationQuotaRuleOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteQuotaRule(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteQuotaRule(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteQuotaRule.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteQuotaRuleAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteQuotaRuleAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteQuotaRule.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A task representing the result of polling the operation. |
PollOnceEstablishPeering(string, CallSettings)
public virtual Operation<Replication, OperationMetadata> PollOnceEstablishPeering(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of EstablishPeering.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationReplicationOperationMetadata |
The result of polling the operation. |
PollOnceEstablishPeeringAsync(string, CallSettings)
public virtual Task<Operation<Replication, OperationMetadata>> PollOnceEstablishPeeringAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
EstablishPeering.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A task representing the result of polling the operation. |
PollOnceSwitchActiveReplicaZone(string, CallSettings)
public virtual Operation<StoragePool, OperationMetadata> PollOnceSwitchActiveReplicaZone(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of
SwitchActiveReplicaZone.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationStoragePoolOperationMetadata |
The result of polling the operation. |
PollOnceSwitchActiveReplicaZoneAsync(string, CallSettings)
public virtual Task<Operation<StoragePool, OperationMetadata>> PollOnceSwitchActiveReplicaZoneAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
SwitchActiveReplicaZone.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationStoragePoolOperationMetadata |
A task representing the result of polling the operation. |
PollOnceSyncReplication(string, CallSettings)
public virtual Operation<Replication, OperationMetadata> PollOnceSyncReplication(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of SyncReplication.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationReplicationOperationMetadata |
The result of polling the operation. |
PollOnceSyncReplicationAsync(string, CallSettings)
public virtual Task<Operation<Replication, OperationMetadata>> PollOnceSyncReplicationAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
SyncReplication.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateQuotaRule(string, CallSettings)
public virtual Operation<QuotaRule, OperationMetadata> PollOnceUpdateQuotaRule(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateQuotaRule.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationQuotaRuleOperationMetadata |
The result of polling the operation. |
PollOnceUpdateQuotaRuleAsync(string, CallSettings)
public virtual Task<Operation<QuotaRule, OperationMetadata>> PollOnceUpdateQuotaRuleAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateQuotaRule.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationQuotaRuleOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationVolumeOperationMetadata |
A task representing the result of polling the operation. |
PollOnceValidateDirectoryService(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceValidateDirectoryService(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of
ValidateDirectoryService.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceValidateDirectoryServiceAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceValidateDirectoryServiceAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
ValidateDirectoryService.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
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 |
ResumeReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationReplicationOperationMetadata |
The RPC response. |
// 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 |
ResumeReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
ResumeReplicationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
ReverseReplicationDirectionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationReplicationOperationMetadata |
The RPC response. |
// 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 |
ReverseReplicationDirectionRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
ReverseReplicationDirectionRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
RevertVolumeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationVolumeOperationMetadata |
The RPC response. |
// 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 |
RevertVolumeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationVolumeOperationMetadata |
A Task containing the RPC response. |
// 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 |
RevertVolumeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationVolumeOperationMetadata |
A Task containing the RPC response. |
// 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. |
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 |
StopReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationReplicationOperationMetadata |
The RPC response. |
// 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 |
StopReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
StopReplicationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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;
}
SwitchActiveReplicaZone(SwitchActiveReplicaZoneRequest, CallSettings)
public virtual Operation<StoragePool, OperationMetadata> SwitchActiveReplicaZone(SwitchActiveReplicaZoneRequest request, CallSettings callSettings = null)This operation will switch the active/replica zone for a regional storagePool.
| Parameters | |
|---|---|
| Name | Description |
request |
SwitchActiveReplicaZoneRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationStoragePoolOperationMetadata |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
SwitchActiveReplicaZoneRequest request = new SwitchActiveReplicaZoneRequest
{
StoragePoolName = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"),
};
// Make the request
Operation<StoragePool, OperationMetadata> response = netAppClient.SwitchActiveReplicaZone(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.PollOnceSwitchActiveReplicaZone(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;
}
SwitchActiveReplicaZoneAsync(SwitchActiveReplicaZoneRequest, CallSettings)
public virtual Task<Operation<StoragePool, OperationMetadata>> SwitchActiveReplicaZoneAsync(SwitchActiveReplicaZoneRequest request, CallSettings callSettings = null)This operation will switch the active/replica zone for a regional storagePool.
| Parameters | |
|---|---|
| Name | Description |
request |
SwitchActiveReplicaZoneRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationStoragePoolOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
SwitchActiveReplicaZoneRequest request = new SwitchActiveReplicaZoneRequest
{
StoragePoolName = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"),
};
// Make the request
Operation<StoragePool, OperationMetadata> response = await netAppClient.SwitchActiveReplicaZoneAsync(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.PollOnceSwitchActiveReplicaZoneAsync(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;
}
SwitchActiveReplicaZoneAsync(SwitchActiveReplicaZoneRequest, CancellationToken)
public virtual Task<Operation<StoragePool, OperationMetadata>> SwitchActiveReplicaZoneAsync(SwitchActiveReplicaZoneRequest request, CancellationToken cancellationToken)This operation will switch the active/replica zone for a regional storagePool.
| Parameters | |
|---|---|
| Name | Description |
request |
SwitchActiveReplicaZoneRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationStoragePoolOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
SwitchActiveReplicaZoneRequest request = new SwitchActiveReplicaZoneRequest
{
StoragePoolName = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"),
};
// Make the request
Operation<StoragePool, OperationMetadata> response = await netAppClient.SwitchActiveReplicaZoneAsync(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.PollOnceSwitchActiveReplicaZoneAsync(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;
}
SyncReplication(SyncReplicationRequest, CallSettings)
public virtual Operation<Replication, OperationMetadata> SyncReplication(SyncReplicationRequest request, CallSettings callSettings = null)Syncs the replication. This will invoke one time volume data transfer from source to destination.
| Parameters | |
|---|---|
| Name | Description |
request |
SyncReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationReplicationOperationMetadata |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
SyncReplicationRequest request = new SyncReplicationRequest
{
ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Operation<Replication, OperationMetadata> response = netAppClient.SyncReplication(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.PollOnceSyncReplication(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;
}
SyncReplicationAsync(SyncReplicationRequest, CallSettings)
public virtual Task<Operation<Replication, OperationMetadata>> SyncReplicationAsync(SyncReplicationRequest request, CallSettings callSettings = null)Syncs the replication. This will invoke one time volume data transfer from source to destination.
| Parameters | |
|---|---|
| Name | Description |
request |
SyncReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
SyncReplicationRequest request = new SyncReplicationRequest
{
ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.SyncReplicationAsync(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.PollOnceSyncReplicationAsync(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;
}
SyncReplicationAsync(SyncReplicationRequest, CancellationToken)
public virtual Task<Operation<Replication, OperationMetadata>> SyncReplicationAsync(SyncReplicationRequest request, CancellationToken cancellationToken)Syncs the replication. This will invoke one time volume data transfer from source to destination.
| Parameters | |
|---|---|
| Name | Description |
request |
SyncReplicationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
SyncReplicationRequest request = new SyncReplicationRequest
{
ReplicationName = ReplicationName.FromProjectLocationVolumeReplication("[PROJECT]", "[LOCATION]", "[VOLUME]", "[REPLICATION]"),
};
// Make the request
Operation<Replication, OperationMetadata> response = await netAppClient.SyncReplicationAsync(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.PollOnceSyncReplicationAsync(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 |
ActiveDirectoryRequired. The volume being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationActiveDirectoryOperationMetadata |
The RPC response. |
// 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 |
UpdateActiveDirectoryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationActiveDirectoryOperationMetadata |
The RPC response. |
// 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 |
ActiveDirectoryRequired. The volume being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationActiveDirectoryOperationMetadata |
A Task containing the RPC response. |
// 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 |
ActiveDirectoryRequired. The volume being updated |
updateMask |
FieldMaskRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationActiveDirectoryOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateActiveDirectoryRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationActiveDirectoryOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateActiveDirectoryRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationActiveDirectoryOperationMetadata |
A Task containing the RPC response. |
// 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 |
BackupRequired. The backup being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupOperationMetadata |
The RPC response. |
// 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 |
UpdateBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupOperationMetadata |
The RPC response. |
// 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 |
BackupRequired. The backup being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// 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 |
BackupRequired. The backup being updated |
updateMask |
FieldMaskRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateBackupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// 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 |
BackupPolicyRequired. The backup policy being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupPolicyOperationMetadata |
The RPC response. |
// 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 |
UpdateBackupPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupPolicyOperationMetadata |
The RPC response. |
// 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 |
BackupPolicyRequired. The backup policy being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPolicyOperationMetadata |
A Task containing the RPC response. |
// 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 |
BackupPolicyRequired. The backup policy being updated |
updateMask |
FieldMaskRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPolicyOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateBackupPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPolicyOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateBackupPolicyRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPolicyOperationMetadata |
A Task containing the RPC response. |
// 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 |
BackupVaultRequired. The backupVault being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupVaultOperationMetadata |
The RPC response. |
// 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 |
UpdateBackupVaultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupVaultOperationMetadata |
The RPC response. |
// 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 |
BackupVaultRequired. The backupVault being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupVaultOperationMetadata |
A Task containing the RPC response. |
// 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 |
BackupVaultRequired. The backupVault being updated |
updateMask |
FieldMaskRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupVaultOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateBackupVaultRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupVaultOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateBackupVaultRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupVaultOperationMetadata |
A Task containing the RPC response. |
// 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 |
KmsConfigRequired. The KmsConfig being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationKmsConfigOperationMetadata |
The RPC response. |
// 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 |
UpdateKmsConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationKmsConfigOperationMetadata |
The RPC response. |
// 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 |
KmsConfigRequired. The KmsConfig being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A Task containing the RPC response. |
// 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 |
KmsConfigRequired. The KmsConfig being updated |
updateMask |
FieldMaskRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateKmsConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateKmsConfigRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationKmsConfigOperationMetadata |
A Task containing the RPC response. |
// 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;
}
UpdateQuotaRule(QuotaRule, FieldMask, CallSettings)
public virtual Operation<QuotaRule, OperationMetadata> UpdateQuotaRule(QuotaRule quotaRule, FieldMask updateMask, CallSettings callSettings = null)Updates a quota rule.
| Parameters | |
|---|---|
| Name | Description |
quotaRule |
QuotaRuleRequired. The quota rule being updated |
updateMask |
FieldMaskOptional. Field mask is used to specify the fields to be overwritten in the Quota Rule 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationQuotaRuleOperationMetadata |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
QuotaRule quotaRule = new QuotaRule();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<QuotaRule, OperationMetadata> response = netAppClient.UpdateQuotaRule(quotaRule, updateMask);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateQuotaRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule retrievedResult = retrievedResponse.Result;
}
UpdateQuotaRule(UpdateQuotaRuleRequest, CallSettings)
public virtual Operation<QuotaRule, OperationMetadata> UpdateQuotaRule(UpdateQuotaRuleRequest request, CallSettings callSettings = null)Updates a quota rule.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateQuotaRuleRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationQuotaRuleOperationMetadata |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
UpdateQuotaRuleRequest request = new UpdateQuotaRuleRequest
{
UpdateMask = new FieldMask(),
QuotaRule = new QuotaRule(),
};
// Make the request
Operation<QuotaRule, OperationMetadata> response = netAppClient.UpdateQuotaRule(request);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = netAppClient.PollOnceUpdateQuotaRule(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule retrievedResult = retrievedResponse.Result;
}
UpdateQuotaRuleAsync(QuotaRule, FieldMask, CallSettings)
public virtual Task<Operation<QuotaRule, OperationMetadata>> UpdateQuotaRuleAsync(QuotaRule quotaRule, FieldMask updateMask, CallSettings callSettings = null)Updates a quota rule.
| Parameters | |
|---|---|
| Name | Description |
quotaRule |
QuotaRuleRequired. The quota rule being updated |
updateMask |
FieldMaskOptional. Field mask is used to specify the fields to be overwritten in the Quota Rule 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationQuotaRuleOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
QuotaRule quotaRule = new QuotaRule();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<QuotaRule, OperationMetadata> response = await netAppClient.UpdateQuotaRuleAsync(quotaRule, updateMask);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateQuotaRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule retrievedResult = retrievedResponse.Result;
}
UpdateQuotaRuleAsync(QuotaRule, FieldMask, CancellationToken)
public virtual Task<Operation<QuotaRule, OperationMetadata>> UpdateQuotaRuleAsync(QuotaRule quotaRule, FieldMask updateMask, CancellationToken cancellationToken)Updates a quota rule.
| Parameters | |
|---|---|
| Name | Description |
quotaRule |
QuotaRuleRequired. The quota rule being updated |
updateMask |
FieldMaskOptional. Field mask is used to specify the fields to be overwritten in the Quota Rule 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationQuotaRuleOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
QuotaRule quotaRule = new QuotaRule();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<QuotaRule, OperationMetadata> response = await netAppClient.UpdateQuotaRuleAsync(quotaRule, updateMask);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateQuotaRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule retrievedResult = retrievedResponse.Result;
}
UpdateQuotaRuleAsync(UpdateQuotaRuleRequest, CallSettings)
public virtual Task<Operation<QuotaRule, OperationMetadata>> UpdateQuotaRuleAsync(UpdateQuotaRuleRequest request, CallSettings callSettings = null)Updates a quota rule.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateQuotaRuleRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationQuotaRuleOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateQuotaRuleRequest request = new UpdateQuotaRuleRequest
{
UpdateMask = new FieldMask(),
QuotaRule = new QuotaRule(),
};
// Make the request
Operation<QuotaRule, OperationMetadata> response = await netAppClient.UpdateQuotaRuleAsync(request);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateQuotaRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule retrievedResult = retrievedResponse.Result;
}
UpdateQuotaRuleAsync(UpdateQuotaRuleRequest, CancellationToken)
public virtual Task<Operation<QuotaRule, OperationMetadata>> UpdateQuotaRuleAsync(UpdateQuotaRuleRequest request, CancellationToken cancellationToken)Updates a quota rule.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateQuotaRuleRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationQuotaRuleOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
UpdateQuotaRuleRequest request = new UpdateQuotaRuleRequest
{
UpdateMask = new FieldMask(),
QuotaRule = new QuotaRule(),
};
// Make the request
Operation<QuotaRule, OperationMetadata> response = await netAppClient.UpdateQuotaRuleAsync(request);
// Poll until the returned long-running operation is complete
Operation<QuotaRule, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
QuotaRule 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<QuotaRule, OperationMetadata> retrievedResponse = await netAppClient.PollOnceUpdateQuotaRuleAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
QuotaRule 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 |
ReplicationRequired. A replication resource |
updateMask |
FieldMaskRequired. Mask of fields to update. At least one path must be supplied in this field. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationReplicationOperationMetadata |
The RPC response. |
// 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 |
UpdateReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationReplicationOperationMetadata |
The RPC response. |
// 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 |
ReplicationRequired. A replication resource |
updateMask |
FieldMaskRequired. Mask of fields to update. At least one path must be supplied in this field. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
ReplicationRequired. A replication resource |
updateMask |
FieldMaskRequired. Mask of fields to update. At least one path must be supplied in this field. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateReplicationRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateReplicationRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationReplicationOperationMetadata |
A Task containing the RPC response. |
// 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 |
SnapshotRequired. A snapshot resource |
updateMask |
FieldMaskRequired. Mask of fields to update. At least one path must be supplied in this field. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSnapshotOperationMetadata |
The RPC response. |
// 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 |
UpdateSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSnapshotOperationMetadata |
The RPC response. |
// 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 |
SnapshotRequired. A snapshot resource |
updateMask |
FieldMaskRequired. Mask of fields to update. At least one path must be supplied in this field. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSnapshotOperationMetadata |
A Task containing the RPC response. |
// 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 |
SnapshotRequired. A snapshot resource |
updateMask |
FieldMaskRequired. Mask of fields to update. At least one path must be supplied in this field. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSnapshotOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSnapshotOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateSnapshotRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSnapshotOperationMetadata |
A Task containing the RPC response. |
// 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 |
StoragePoolRequired. The pool being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationStoragePoolOperationMetadata |
The RPC response. |
// 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 |
UpdateStoragePoolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationStoragePoolOperationMetadata |
The RPC response. |
// 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 |
StoragePoolRequired. The pool being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationStoragePoolOperationMetadata |
A Task containing the RPC response. |
// 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 |
StoragePoolRequired. The pool being updated |
updateMask |
FieldMaskRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationStoragePoolOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateStoragePoolRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationStoragePoolOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateStoragePoolRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationStoragePoolOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateVolumeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationVolumeOperationMetadata |
The RPC response. |
// 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 |
VolumeRequired. The volume being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationVolumeOperationMetadata |
The RPC response. |
// 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 |
UpdateVolumeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationVolumeOperationMetadata |
A Task containing the RPC response. |
// 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 |
UpdateVolumeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationVolumeOperationMetadata |
A Task containing the RPC response. |
// 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 |
VolumeRequired. The volume being updated |
updateMask |
FieldMaskRequired. 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 |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationVolumeOperationMetadata |
A Task containing the RPC response. |
// 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 |
VolumeRequired. The volume being updated |
updateMask |
FieldMaskRequired. 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 |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationVolumeOperationMetadata |
A Task containing the RPC response. |
// 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;
}
ValidateDirectoryService(ValidateDirectoryServiceRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> ValidateDirectoryService(ValidateDirectoryServiceRequest request, CallSettings callSettings = null)ValidateDirectoryService does a connectivity check for a directory service policy attached to the storage pool.
| Parameters | |
|---|---|
| Name | Description |
request |
ValidateDirectoryServiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
NetAppClient netAppClient = NetAppClient.Create();
// Initialize request argument(s)
ValidateDirectoryServiceRequest request = new ValidateDirectoryServiceRequest
{
StoragePoolName = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"),
DirectoryServiceType = DirectoryServiceType.Unspecified,
};
// Make the request
Operation<Empty, OperationMetadata> response = netAppClient.ValidateDirectoryService(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.PollOnceValidateDirectoryService(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;
}
ValidateDirectoryServiceAsync(ValidateDirectoryServiceRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> ValidateDirectoryServiceAsync(ValidateDirectoryServiceRequest request, CallSettings callSettings = null)ValidateDirectoryService does a connectivity check for a directory service policy attached to the storage pool.
| Parameters | |
|---|---|
| Name | Description |
request |
ValidateDirectoryServiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ValidateDirectoryServiceRequest request = new ValidateDirectoryServiceRequest
{
StoragePoolName = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"),
DirectoryServiceType = DirectoryServiceType.Unspecified,
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.ValidateDirectoryServiceAsync(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.PollOnceValidateDirectoryServiceAsync(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;
}
ValidateDirectoryServiceAsync(ValidateDirectoryServiceRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> ValidateDirectoryServiceAsync(ValidateDirectoryServiceRequest request, CancellationToken cancellationToken)ValidateDirectoryService does a connectivity check for a directory service policy attached to the storage pool.
| Parameters | |
|---|---|
| Name | Description |
request |
ValidateDirectoryServiceRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
NetAppClient netAppClient = await NetAppClient.CreateAsync();
// Initialize request argument(s)
ValidateDirectoryServiceRequest request = new ValidateDirectoryServiceRequest
{
StoragePoolName = StoragePoolName.FromProjectLocationStoragePool("[PROJECT]", "[LOCATION]", "[STORAGE_POOL]"),
DirectoryServiceType = DirectoryServiceType.Unspecified,
};
// Make the request
Operation<Empty, OperationMetadata> response = await netAppClient.ValidateDirectoryServiceAsync(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.PollOnceValidateDirectoryServiceAsync(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;
}
VerifyKmsConfig(VerifyKmsConfigRequest, CallSettings)
public virtual VerifyKmsConfigResponse VerifyKmsConfig(VerifyKmsConfigRequest request, CallSettings callSettings = null)Verifies KMS config reachability.
| Parameters | |
|---|---|
| Name | Description |
request |
VerifyKmsConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
VerifyKmsConfigResponse |
The RPC response. |
// 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 |
VerifyKmsConfigRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskVerifyKmsConfigResponse |
A Task containing the RPC response. |
// 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 |
VerifyKmsConfigRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskVerifyKmsConfigResponse |
A Task containing the RPC response. |
// 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);