public abstract class BackupForGKEClientReference documentation and code samples for the Backup for GKE v1 API class BackupForGKEClient.
BackupForGKE client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.GkeBackup.V1Assembly
Google.Cloud.GkeBackup.V1.dll
Remarks
BackupForGKE allows Kubernetes administrators to configure, execute, and manage backup and restore operations for their GKE clusters.
Properties
CreateBackupChannelOperationsClient
public virtual OperationsClient CreateBackupChannelOperationsClient { get; }The long-running operations client for CreateBackupChannel.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateBackupOperationsClient
public virtual OperationsClient CreateBackupOperationsClient { get; }The long-running operations client for CreateBackup.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateBackupPlanOperationsClient
public virtual OperationsClient CreateBackupPlanOperationsClient { get; }The long-running operations client for CreateBackupPlan.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateRestoreChannelOperationsClient
public virtual OperationsClient CreateRestoreChannelOperationsClient { get; }The long-running operations client for CreateRestoreChannel.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateRestoreOperationsClient
public virtual OperationsClient CreateRestoreOperationsClient { get; }The long-running operations client for CreateRestore.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateRestorePlanOperationsClient
public virtual OperationsClient CreateRestorePlanOperationsClient { get; }The long-running operations client for CreateRestorePlan.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the BackupForGKE service, which is a host of "gkebackup.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default BackupForGKE scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default BackupForGKE scopes are:
DeleteBackupChannelOperationsClient
public virtual OperationsClient DeleteBackupChannelOperationsClient { get; }The long-running operations client for DeleteBackupChannel.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteBackupOperationsClient
public virtual OperationsClient DeleteBackupOperationsClient { get; }The long-running operations client for DeleteBackup.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteBackupPlanOperationsClient
public virtual OperationsClient DeleteBackupPlanOperationsClient { get; }The long-running operations client for DeleteBackupPlan.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteRestoreChannelOperationsClient
public virtual OperationsClient DeleteRestoreChannelOperationsClient { get; }The long-running operations client for DeleteRestoreChannel.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteRestoreOperationsClient
public virtual OperationsClient DeleteRestoreOperationsClient { get; }The long-running operations client for DeleteRestore.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteRestorePlanOperationsClient
public virtual OperationsClient DeleteRestorePlanOperationsClient { get; }The long-running operations client for DeleteRestorePlan.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public virtual BackupForGKE.BackupForGKEClient GrpcClient { get; }The underlying gRPC BackupForGKE client
| Property Value | |
|---|---|
| Type | Description |
BackupForGKEBackupForGKEClient |
|
IAMPolicyClient
public virtual IAMPolicyClient IAMPolicyClient { get; }The IAMPolicyClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
IAMPolicyClient |
|
LocationsClient
public virtual LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }The service metadata associated with this client type.
| Property Value | |
|---|---|
| Type | Description |
ServiceMetadata |
|
UpdateBackupChannelOperationsClient
public virtual OperationsClient UpdateBackupChannelOperationsClient { get; }The long-running operations client for UpdateBackupChannel.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateBackupOperationsClient
public virtual OperationsClient UpdateBackupOperationsClient { get; }The long-running operations client for UpdateBackup.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateBackupPlanOperationsClient
public virtual OperationsClient UpdateBackupPlanOperationsClient { get; }The long-running operations client for UpdateBackupPlan.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateRestoreChannelOperationsClient
public virtual OperationsClient UpdateRestoreChannelOperationsClient { get; }The long-running operations client for UpdateRestoreChannel.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateRestoreOperationsClient
public virtual OperationsClient UpdateRestoreOperationsClient { get; }The long-running operations client for UpdateRestore.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateRestorePlanOperationsClient
public virtual OperationsClient UpdateRestorePlanOperationsClient { get; }The long-running operations client for UpdateRestorePlan.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
Create()
public static BackupForGKEClient Create()Synchronously creates a BackupForGKEClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use BackupForGKEClientBuilder.
| Returns | |
|---|---|
| Type | Description |
BackupForGKEClient |
The created BackupForGKEClient. |
CreateAsync(CancellationToken)
public static Task<BackupForGKEClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a BackupForGKEClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use BackupForGKEClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupForGKEClient |
The task representing the created BackupForGKEClient. |
CreateBackup(BackupPlanName, Backup, string, CallSettings)
public virtual Operation<Backup, OperationMetadata> CreateBackup(BackupPlanName parent, Backup backup, string backupId, CallSettings callSettings = null)Creates a Backup for the given BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
BackupPlanNameRequired. The BackupPlan within which to create the Backup.
Format: |
backup |
BackupOptional. The Backup resource to create. |
backupId |
stringOptional. The client-provided short name for the Backup resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupPlanName parent = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = backupForGKEClient.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 = backupForGKEClient.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 for the given BackupPlan.
| 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
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
CreateBackupRequest request = new CreateBackupRequest
{
ParentAsBackupPlanName = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]"),
Backup = new Backup(),
BackupId = "",
};
// Make the request
Operation<Backup, OperationMetadata> response = backupForGKEClient.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 = backupForGKEClient.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 for the given BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The BackupPlan within which to create the Backup.
Format: |
backup |
BackupOptional. The Backup resource to create. |
backupId |
stringOptional. The client-provided short name for the Backup resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]";
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = backupForGKEClient.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 = backupForGKEClient.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(BackupPlanName, Backup, string, CallSettings)
public virtual Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(BackupPlanName parent, Backup backup, string backupId, CallSettings callSettings = null)Creates a Backup for the given BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
BackupPlanNameRequired. The BackupPlan within which to create the Backup.
Format: |
backup |
BackupOptional. The Backup resource to create. |
backupId |
stringOptional. The client-provided short name for the Backup resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupPlanName parent = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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(BackupPlanName, Backup, string, CancellationToken)
public virtual Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(BackupPlanName parent, Backup backup, string backupId, CancellationToken cancellationToken)Creates a Backup for the given BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
BackupPlanNameRequired. The BackupPlan within which to create the Backup.
Format: |
backup |
BackupOptional. The Backup resource to create. |
backupId |
stringOptional. The client-provided short name for the Backup resource. This name must:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupPlanName parent = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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 for the given BackupPlan.
| 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
CreateBackupRequest request = new CreateBackupRequest
{
ParentAsBackupPlanName = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]"),
Backup = new Backup(),
BackupId = "",
};
// Make the request
Operation<Backup, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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 for the given BackupPlan.
| 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
CreateBackupRequest request = new CreateBackupRequest
{
ParentAsBackupPlanName = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]"),
Backup = new Backup(),
BackupId = "",
};
// Make the request
Operation<Backup, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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 for the given BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The BackupPlan within which to create the Backup.
Format: |
backup |
BackupOptional. The Backup resource to create. |
backupId |
stringOptional. The client-provided short name for the Backup resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]";
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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 for the given BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The BackupPlan within which to create the Backup.
Format: |
backup |
BackupOptional. The Backup resource to create. |
backupId |
stringOptional. The client-provided short name for the Backup resource. This name must:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]";
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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;
}
CreateBackupChannel(LocationName, BackupChannel, string, CallSettings)
public virtual Operation<BackupChannel, OperationMetadata> CreateBackupChannel(LocationName parent, BackupChannel backupChannel, string backupChannelId, CallSettings callSettings = null)Creates a new BackupChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location within which to create the BackupChannel.
Format: |
backupChannel |
BackupChannelRequired. The BackupChannel resource object to create. |
backupChannelId |
stringOptional. The client-provided short name for the BackupChannel resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupChannelOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackupChannel backupChannel = new BackupChannel();
string backupChannelId = "";
// Make the request
Operation<BackupChannel, OperationMetadata> response = backupForGKEClient.CreateBackupChannel(parent, backupChannel, backupChannelId);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateBackupChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
CreateBackupChannel(CreateBackupChannelRequest, CallSettings)
public virtual Operation<BackupChannel, OperationMetadata> CreateBackupChannel(CreateBackupChannelRequest request, CallSettings callSettings = null)Creates a new BackupChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateBackupChannelRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupChannelOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
CreateBackupChannelRequest request = new CreateBackupChannelRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
BackupChannel = new BackupChannel(),
BackupChannelId = "",
};
// Make the request
Operation<BackupChannel, OperationMetadata> response = backupForGKEClient.CreateBackupChannel(request);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateBackupChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
CreateBackupChannel(string, BackupChannel, string, CallSettings)
public virtual Operation<BackupChannel, OperationMetadata> CreateBackupChannel(string parent, BackupChannel backupChannel, string backupChannelId, CallSettings callSettings = null)Creates a new BackupChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location within which to create the BackupChannel.
Format: |
backupChannel |
BackupChannelRequired. The BackupChannel resource object to create. |
backupChannelId |
stringOptional. The client-provided short name for the BackupChannel resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupChannelOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackupChannel backupChannel = new BackupChannel();
string backupChannelId = "";
// Make the request
Operation<BackupChannel, OperationMetadata> response = backupForGKEClient.CreateBackupChannel(parent, backupChannel, backupChannelId);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateBackupChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
CreateBackupChannelAsync(LocationName, BackupChannel, string, CallSettings)
public virtual Task<Operation<BackupChannel, OperationMetadata>> CreateBackupChannelAsync(LocationName parent, BackupChannel backupChannel, string backupChannelId, CallSettings callSettings = null)Creates a new BackupChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location within which to create the BackupChannel.
Format: |
backupChannel |
BackupChannelRequired. The BackupChannel resource object to create. |
backupChannelId |
stringOptional. The client-provided short name for the BackupChannel resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackupChannel backupChannel = new BackupChannel();
string backupChannelId = "";
// Make the request
Operation<BackupChannel, OperationMetadata> response = await backupForGKEClient.CreateBackupChannelAsync(parent, backupChannel, backupChannelId);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateBackupChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
CreateBackupChannelAsync(LocationName, BackupChannel, string, CancellationToken)
public virtual Task<Operation<BackupChannel, OperationMetadata>> CreateBackupChannelAsync(LocationName parent, BackupChannel backupChannel, string backupChannelId, CancellationToken cancellationToken)Creates a new BackupChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location within which to create the BackupChannel.
Format: |
backupChannel |
BackupChannelRequired. The BackupChannel resource object to create. |
backupChannelId |
stringOptional. The client-provided short name for the BackupChannel resource. This name must:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackupChannel backupChannel = new BackupChannel();
string backupChannelId = "";
// Make the request
Operation<BackupChannel, OperationMetadata> response = await backupForGKEClient.CreateBackupChannelAsync(parent, backupChannel, backupChannelId);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateBackupChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
CreateBackupChannelAsync(CreateBackupChannelRequest, CallSettings)
public virtual Task<Operation<BackupChannel, OperationMetadata>> CreateBackupChannelAsync(CreateBackupChannelRequest request, CallSettings callSettings = null)Creates a new BackupChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateBackupChannelRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
CreateBackupChannelRequest request = new CreateBackupChannelRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
BackupChannel = new BackupChannel(),
BackupChannelId = "",
};
// Make the request
Operation<BackupChannel, OperationMetadata> response = await backupForGKEClient.CreateBackupChannelAsync(request);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateBackupChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
CreateBackupChannelAsync(CreateBackupChannelRequest, CancellationToken)
public virtual Task<Operation<BackupChannel, OperationMetadata>> CreateBackupChannelAsync(CreateBackupChannelRequest request, CancellationToken cancellationToken)Creates a new BackupChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateBackupChannelRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
CreateBackupChannelRequest request = new CreateBackupChannelRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
BackupChannel = new BackupChannel(),
BackupChannelId = "",
};
// Make the request
Operation<BackupChannel, OperationMetadata> response = await backupForGKEClient.CreateBackupChannelAsync(request);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateBackupChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
CreateBackupChannelAsync(string, BackupChannel, string, CallSettings)
public virtual Task<Operation<BackupChannel, OperationMetadata>> CreateBackupChannelAsync(string parent, BackupChannel backupChannel, string backupChannelId, CallSettings callSettings = null)Creates a new BackupChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location within which to create the BackupChannel.
Format: |
backupChannel |
BackupChannelRequired. The BackupChannel resource object to create. |
backupChannelId |
stringOptional. The client-provided short name for the BackupChannel resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackupChannel backupChannel = new BackupChannel();
string backupChannelId = "";
// Make the request
Operation<BackupChannel, OperationMetadata> response = await backupForGKEClient.CreateBackupChannelAsync(parent, backupChannel, backupChannelId);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateBackupChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
CreateBackupChannelAsync(string, BackupChannel, string, CancellationToken)
public virtual Task<Operation<BackupChannel, OperationMetadata>> CreateBackupChannelAsync(string parent, BackupChannel backupChannel, string backupChannelId, CancellationToken cancellationToken)Creates a new BackupChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location within which to create the BackupChannel.
Format: |
backupChannel |
BackupChannelRequired. The BackupChannel resource object to create. |
backupChannelId |
stringOptional. The client-provided short name for the BackupChannel resource. This name must:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackupChannel backupChannel = new BackupChannel();
string backupChannelId = "";
// Make the request
Operation<BackupChannel, OperationMetadata> response = await backupForGKEClient.CreateBackupChannelAsync(parent, backupChannel, backupChannelId);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateBackupChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
CreateBackupPlan(LocationName, BackupPlan, string, CallSettings)
public virtual Operation<BackupPlan, OperationMetadata> CreateBackupPlan(LocationName parent, BackupPlan backupPlan, string backupPlanId, CallSettings callSettings = null)Creates a new BackupPlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location within which to create the BackupPlan.
Format: |
backupPlan |
BackupPlanRequired. The BackupPlan resource object to create. |
backupPlanId |
stringRequired. The client-provided short name for the BackupPlan resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupPlanOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackupPlan backupPlan = new BackupPlan();
string backupPlanId = "";
// Make the request
Operation<BackupPlan, OperationMetadata> response = backupForGKEClient.CreateBackupPlan(parent, backupPlan, backupPlanId);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateBackupPlan(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
CreateBackupPlan(CreateBackupPlanRequest, CallSettings)
public virtual Operation<BackupPlan, OperationMetadata> CreateBackupPlan(CreateBackupPlanRequest request, CallSettings callSettings = null)Creates a new BackupPlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateBackupPlanRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupPlanOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
CreateBackupPlanRequest request = new CreateBackupPlanRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
BackupPlan = new BackupPlan(),
BackupPlanId = "",
};
// Make the request
Operation<BackupPlan, OperationMetadata> response = backupForGKEClient.CreateBackupPlan(request);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateBackupPlan(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
CreateBackupPlan(string, BackupPlan, string, CallSettings)
public virtual Operation<BackupPlan, OperationMetadata> CreateBackupPlan(string parent, BackupPlan backupPlan, string backupPlanId, CallSettings callSettings = null)Creates a new BackupPlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location within which to create the BackupPlan.
Format: |
backupPlan |
BackupPlanRequired. The BackupPlan resource object to create. |
backupPlanId |
stringRequired. The client-provided short name for the BackupPlan resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupPlanOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackupPlan backupPlan = new BackupPlan();
string backupPlanId = "";
// Make the request
Operation<BackupPlan, OperationMetadata> response = backupForGKEClient.CreateBackupPlan(parent, backupPlan, backupPlanId);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateBackupPlan(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
CreateBackupPlanAsync(LocationName, BackupPlan, string, CallSettings)
public virtual Task<Operation<BackupPlan, OperationMetadata>> CreateBackupPlanAsync(LocationName parent, BackupPlan backupPlan, string backupPlanId, CallSettings callSettings = null)Creates a new BackupPlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location within which to create the BackupPlan.
Format: |
backupPlan |
BackupPlanRequired. The BackupPlan resource object to create. |
backupPlanId |
stringRequired. The client-provided short name for the BackupPlan resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackupPlan backupPlan = new BackupPlan();
string backupPlanId = "";
// Make the request
Operation<BackupPlan, OperationMetadata> response = await backupForGKEClient.CreateBackupPlanAsync(parent, backupPlan, backupPlanId);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateBackupPlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
CreateBackupPlanAsync(LocationName, BackupPlan, string, CancellationToken)
public virtual Task<Operation<BackupPlan, OperationMetadata>> CreateBackupPlanAsync(LocationName parent, BackupPlan backupPlan, string backupPlanId, CancellationToken cancellationToken)Creates a new BackupPlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location within which to create the BackupPlan.
Format: |
backupPlan |
BackupPlanRequired. The BackupPlan resource object to create. |
backupPlanId |
stringRequired. The client-provided short name for the BackupPlan resource. This name must:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BackupPlan backupPlan = new BackupPlan();
string backupPlanId = "";
// Make the request
Operation<BackupPlan, OperationMetadata> response = await backupForGKEClient.CreateBackupPlanAsync(parent, backupPlan, backupPlanId);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateBackupPlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
CreateBackupPlanAsync(CreateBackupPlanRequest, CallSettings)
public virtual Task<Operation<BackupPlan, OperationMetadata>> CreateBackupPlanAsync(CreateBackupPlanRequest request, CallSettings callSettings = null)Creates a new BackupPlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateBackupPlanRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
CreateBackupPlanRequest request = new CreateBackupPlanRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
BackupPlan = new BackupPlan(),
BackupPlanId = "",
};
// Make the request
Operation<BackupPlan, OperationMetadata> response = await backupForGKEClient.CreateBackupPlanAsync(request);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateBackupPlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
CreateBackupPlanAsync(CreateBackupPlanRequest, CancellationToken)
public virtual Task<Operation<BackupPlan, OperationMetadata>> CreateBackupPlanAsync(CreateBackupPlanRequest request, CancellationToken cancellationToken)Creates a new BackupPlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateBackupPlanRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
CreateBackupPlanRequest request = new CreateBackupPlanRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
BackupPlan = new BackupPlan(),
BackupPlanId = "",
};
// Make the request
Operation<BackupPlan, OperationMetadata> response = await backupForGKEClient.CreateBackupPlanAsync(request);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateBackupPlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
CreateBackupPlanAsync(string, BackupPlan, string, CallSettings)
public virtual Task<Operation<BackupPlan, OperationMetadata>> CreateBackupPlanAsync(string parent, BackupPlan backupPlan, string backupPlanId, CallSettings callSettings = null)Creates a new BackupPlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location within which to create the BackupPlan.
Format: |
backupPlan |
BackupPlanRequired. The BackupPlan resource object to create. |
backupPlanId |
stringRequired. The client-provided short name for the BackupPlan resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackupPlan backupPlan = new BackupPlan();
string backupPlanId = "";
// Make the request
Operation<BackupPlan, OperationMetadata> response = await backupForGKEClient.CreateBackupPlanAsync(parent, backupPlan, backupPlanId);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateBackupPlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
CreateBackupPlanAsync(string, BackupPlan, string, CancellationToken)
public virtual Task<Operation<BackupPlan, OperationMetadata>> CreateBackupPlanAsync(string parent, BackupPlan backupPlan, string backupPlanId, CancellationToken cancellationToken)Creates a new BackupPlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location within which to create the BackupPlan.
Format: |
backupPlan |
BackupPlanRequired. The BackupPlan resource object to create. |
backupPlanId |
stringRequired. The client-provided short name for the BackupPlan resource. This name must:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
BackupPlan backupPlan = new BackupPlan();
string backupPlanId = "";
// Make the request
Operation<BackupPlan, OperationMetadata> response = await backupForGKEClient.CreateBackupPlanAsync(parent, backupPlan, backupPlanId);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateBackupPlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
CreateRestore(CreateRestoreRequest, CallSettings)
public virtual Operation<Restore, OperationMetadata> CreateRestore(CreateRestoreRequest request, CallSettings callSettings = null)Creates a new Restore for the given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateRestoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestoreOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
CreateRestoreRequest request = new CreateRestoreRequest
{
ParentAsRestorePlanName = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]"),
Restore = new Restore(),
RestoreId = "",
};
// Make the request
Operation<Restore, OperationMetadata> response = backupForGKEClient.CreateRestore(request);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateRestore(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
CreateRestore(RestorePlanName, Restore, string, CallSettings)
public virtual Operation<Restore, OperationMetadata> CreateRestore(RestorePlanName parent, Restore restore, string restoreId, CallSettings callSettings = null)Creates a new Restore for the given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
RestorePlanNameRequired. The RestorePlan within which to create the Restore.
Format: |
restore |
RestoreRequired. The restore resource to create. |
restoreId |
stringRequired. The client-provided short name for the Restore resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestoreOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
RestorePlanName parent = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]");
Restore restore = new Restore();
string restoreId = "";
// Make the request
Operation<Restore, OperationMetadata> response = backupForGKEClient.CreateRestore(parent, restore, restoreId);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateRestore(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
CreateRestore(string, Restore, string, CallSettings)
public virtual Operation<Restore, OperationMetadata> CreateRestore(string parent, Restore restore, string restoreId, CallSettings callSettings = null)Creates a new Restore for the given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The RestorePlan within which to create the Restore.
Format: |
restore |
RestoreRequired. The restore resource to create. |
restoreId |
stringRequired. The client-provided short name for the Restore resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestoreOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]";
Restore restore = new Restore();
string restoreId = "";
// Make the request
Operation<Restore, OperationMetadata> response = backupForGKEClient.CreateRestore(parent, restore, restoreId);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateRestore(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
CreateRestoreAsync(CreateRestoreRequest, CallSettings)
public virtual Task<Operation<Restore, OperationMetadata>> CreateRestoreAsync(CreateRestoreRequest request, CallSettings callSettings = null)Creates a new Restore for the given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateRestoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
CreateRestoreRequest request = new CreateRestoreRequest
{
ParentAsRestorePlanName = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]"),
Restore = new Restore(),
RestoreId = "",
};
// Make the request
Operation<Restore, OperationMetadata> response = await backupForGKEClient.CreateRestoreAsync(request);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestoreAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
CreateRestoreAsync(CreateRestoreRequest, CancellationToken)
public virtual Task<Operation<Restore, OperationMetadata>> CreateRestoreAsync(CreateRestoreRequest request, CancellationToken cancellationToken)Creates a new Restore for the given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateRestoreRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
CreateRestoreRequest request = new CreateRestoreRequest
{
ParentAsRestorePlanName = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]"),
Restore = new Restore(),
RestoreId = "",
};
// Make the request
Operation<Restore, OperationMetadata> response = await backupForGKEClient.CreateRestoreAsync(request);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestoreAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
CreateRestoreAsync(RestorePlanName, Restore, string, CallSettings)
public virtual Task<Operation<Restore, OperationMetadata>> CreateRestoreAsync(RestorePlanName parent, Restore restore, string restoreId, CallSettings callSettings = null)Creates a new Restore for the given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
RestorePlanNameRequired. The RestorePlan within which to create the Restore.
Format: |
restore |
RestoreRequired. The restore resource to create. |
restoreId |
stringRequired. The client-provided short name for the Restore resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestorePlanName parent = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]");
Restore restore = new Restore();
string restoreId = "";
// Make the request
Operation<Restore, OperationMetadata> response = await backupForGKEClient.CreateRestoreAsync(parent, restore, restoreId);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestoreAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
CreateRestoreAsync(RestorePlanName, Restore, string, CancellationToken)
public virtual Task<Operation<Restore, OperationMetadata>> CreateRestoreAsync(RestorePlanName parent, Restore restore, string restoreId, CancellationToken cancellationToken)Creates a new Restore for the given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
RestorePlanNameRequired. The RestorePlan within which to create the Restore.
Format: |
restore |
RestoreRequired. The restore resource to create. |
restoreId |
stringRequired. The client-provided short name for the Restore resource. This name must:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestorePlanName parent = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]");
Restore restore = new Restore();
string restoreId = "";
// Make the request
Operation<Restore, OperationMetadata> response = await backupForGKEClient.CreateRestoreAsync(parent, restore, restoreId);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestoreAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
CreateRestoreAsync(string, Restore, string, CallSettings)
public virtual Task<Operation<Restore, OperationMetadata>> CreateRestoreAsync(string parent, Restore restore, string restoreId, CallSettings callSettings = null)Creates a new Restore for the given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The RestorePlan within which to create the Restore.
Format: |
restore |
RestoreRequired. The restore resource to create. |
restoreId |
stringRequired. The client-provided short name for the Restore resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]";
Restore restore = new Restore();
string restoreId = "";
// Make the request
Operation<Restore, OperationMetadata> response = await backupForGKEClient.CreateRestoreAsync(parent, restore, restoreId);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestoreAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
CreateRestoreAsync(string, Restore, string, CancellationToken)
public virtual Task<Operation<Restore, OperationMetadata>> CreateRestoreAsync(string parent, Restore restore, string restoreId, CancellationToken cancellationToken)Creates a new Restore for the given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The RestorePlan within which to create the Restore.
Format: |
restore |
RestoreRequired. The restore resource to create. |
restoreId |
stringRequired. The client-provided short name for the Restore resource. This name must:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]";
Restore restore = new Restore();
string restoreId = "";
// Make the request
Operation<Restore, OperationMetadata> response = await backupForGKEClient.CreateRestoreAsync(parent, restore, restoreId);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestoreAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
CreateRestoreChannel(LocationName, RestoreChannel, string, CallSettings)
public virtual Operation<RestoreChannel, OperationMetadata> CreateRestoreChannel(LocationName parent, RestoreChannel restoreChannel, string restoreChannelId, CallSettings callSettings = null)Creates a new RestoreChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location within which to create the RestoreChannel.
Format: |
restoreChannel |
RestoreChannelRequired. The RestoreChannel resource object to create. |
restoreChannelId |
stringOptional. The client-provided short name for the RestoreChannel resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestoreChannelOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RestoreChannel restoreChannel = new RestoreChannel();
string restoreChannelId = "";
// Make the request
Operation<RestoreChannel, OperationMetadata> response = backupForGKEClient.CreateRestoreChannel(parent, restoreChannel, restoreChannelId);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateRestoreChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
CreateRestoreChannel(CreateRestoreChannelRequest, CallSettings)
public virtual Operation<RestoreChannel, OperationMetadata> CreateRestoreChannel(CreateRestoreChannelRequest request, CallSettings callSettings = null)Creates a new RestoreChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateRestoreChannelRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestoreChannelOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
CreateRestoreChannelRequest request = new CreateRestoreChannelRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
RestoreChannel = new RestoreChannel(),
RestoreChannelId = "",
};
// Make the request
Operation<RestoreChannel, OperationMetadata> response = backupForGKEClient.CreateRestoreChannel(request);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateRestoreChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
CreateRestoreChannel(string, RestoreChannel, string, CallSettings)
public virtual Operation<RestoreChannel, OperationMetadata> CreateRestoreChannel(string parent, RestoreChannel restoreChannel, string restoreChannelId, CallSettings callSettings = null)Creates a new RestoreChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location within which to create the RestoreChannel.
Format: |
restoreChannel |
RestoreChannelRequired. The RestoreChannel resource object to create. |
restoreChannelId |
stringOptional. The client-provided short name for the RestoreChannel resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestoreChannelOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
RestoreChannel restoreChannel = new RestoreChannel();
string restoreChannelId = "";
// Make the request
Operation<RestoreChannel, OperationMetadata> response = backupForGKEClient.CreateRestoreChannel(parent, restoreChannel, restoreChannelId);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateRestoreChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
CreateRestoreChannelAsync(LocationName, RestoreChannel, string, CallSettings)
public virtual Task<Operation<RestoreChannel, OperationMetadata>> CreateRestoreChannelAsync(LocationName parent, RestoreChannel restoreChannel, string restoreChannelId, CallSettings callSettings = null)Creates a new RestoreChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location within which to create the RestoreChannel.
Format: |
restoreChannel |
RestoreChannelRequired. The RestoreChannel resource object to create. |
restoreChannelId |
stringOptional. The client-provided short name for the RestoreChannel resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RestoreChannel restoreChannel = new RestoreChannel();
string restoreChannelId = "";
// Make the request
Operation<RestoreChannel, OperationMetadata> response = await backupForGKEClient.CreateRestoreChannelAsync(parent, restoreChannel, restoreChannelId);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestoreChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
CreateRestoreChannelAsync(LocationName, RestoreChannel, string, CancellationToken)
public virtual Task<Operation<RestoreChannel, OperationMetadata>> CreateRestoreChannelAsync(LocationName parent, RestoreChannel restoreChannel, string restoreChannelId, CancellationToken cancellationToken)Creates a new RestoreChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location within which to create the RestoreChannel.
Format: |
restoreChannel |
RestoreChannelRequired. The RestoreChannel resource object to create. |
restoreChannelId |
stringOptional. The client-provided short name for the RestoreChannel resource. This name must:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RestoreChannel restoreChannel = new RestoreChannel();
string restoreChannelId = "";
// Make the request
Operation<RestoreChannel, OperationMetadata> response = await backupForGKEClient.CreateRestoreChannelAsync(parent, restoreChannel, restoreChannelId);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestoreChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
CreateRestoreChannelAsync(CreateRestoreChannelRequest, CallSettings)
public virtual Task<Operation<RestoreChannel, OperationMetadata>> CreateRestoreChannelAsync(CreateRestoreChannelRequest request, CallSettings callSettings = null)Creates a new RestoreChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateRestoreChannelRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
CreateRestoreChannelRequest request = new CreateRestoreChannelRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
RestoreChannel = new RestoreChannel(),
RestoreChannelId = "",
};
// Make the request
Operation<RestoreChannel, OperationMetadata> response = await backupForGKEClient.CreateRestoreChannelAsync(request);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestoreChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
CreateRestoreChannelAsync(CreateRestoreChannelRequest, CancellationToken)
public virtual Task<Operation<RestoreChannel, OperationMetadata>> CreateRestoreChannelAsync(CreateRestoreChannelRequest request, CancellationToken cancellationToken)Creates a new RestoreChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateRestoreChannelRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
CreateRestoreChannelRequest request = new CreateRestoreChannelRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
RestoreChannel = new RestoreChannel(),
RestoreChannelId = "",
};
// Make the request
Operation<RestoreChannel, OperationMetadata> response = await backupForGKEClient.CreateRestoreChannelAsync(request);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestoreChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
CreateRestoreChannelAsync(string, RestoreChannel, string, CallSettings)
public virtual Task<Operation<RestoreChannel, OperationMetadata>> CreateRestoreChannelAsync(string parent, RestoreChannel restoreChannel, string restoreChannelId, CallSettings callSettings = null)Creates a new RestoreChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location within which to create the RestoreChannel.
Format: |
restoreChannel |
RestoreChannelRequired. The RestoreChannel resource object to create. |
restoreChannelId |
stringOptional. The client-provided short name for the RestoreChannel resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
RestoreChannel restoreChannel = new RestoreChannel();
string restoreChannelId = "";
// Make the request
Operation<RestoreChannel, OperationMetadata> response = await backupForGKEClient.CreateRestoreChannelAsync(parent, restoreChannel, restoreChannelId);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestoreChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
CreateRestoreChannelAsync(string, RestoreChannel, string, CancellationToken)
public virtual Task<Operation<RestoreChannel, OperationMetadata>> CreateRestoreChannelAsync(string parent, RestoreChannel restoreChannel, string restoreChannelId, CancellationToken cancellationToken)Creates a new RestoreChannel in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location within which to create the RestoreChannel.
Format: |
restoreChannel |
RestoreChannelRequired. The RestoreChannel resource object to create. |
restoreChannelId |
stringOptional. The client-provided short name for the RestoreChannel resource. This name must:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
RestoreChannel restoreChannel = new RestoreChannel();
string restoreChannelId = "";
// Make the request
Operation<RestoreChannel, OperationMetadata> response = await backupForGKEClient.CreateRestoreChannelAsync(parent, restoreChannel, restoreChannelId);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestoreChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
CreateRestorePlan(LocationName, RestorePlan, string, CallSettings)
public virtual Operation<RestorePlan, OperationMetadata> CreateRestorePlan(LocationName parent, RestorePlan restorePlan, string restorePlanId, CallSettings callSettings = null)Creates a new RestorePlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location within which to create the RestorePlan.
Format: |
restorePlan |
RestorePlanRequired. The RestorePlan resource object to create. |
restorePlanId |
stringRequired. The client-provided short name for the RestorePlan resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestorePlanOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RestorePlan restorePlan = new RestorePlan();
string restorePlanId = "";
// Make the request
Operation<RestorePlan, OperationMetadata> response = backupForGKEClient.CreateRestorePlan(parent, restorePlan, restorePlanId);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateRestorePlan(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
CreateRestorePlan(CreateRestorePlanRequest, CallSettings)
public virtual Operation<RestorePlan, OperationMetadata> CreateRestorePlan(CreateRestorePlanRequest request, CallSettings callSettings = null)Creates a new RestorePlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateRestorePlanRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestorePlanOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
CreateRestorePlanRequest request = new CreateRestorePlanRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
RestorePlan = new RestorePlan(),
RestorePlanId = "",
};
// Make the request
Operation<RestorePlan, OperationMetadata> response = backupForGKEClient.CreateRestorePlan(request);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateRestorePlan(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
CreateRestorePlan(string, RestorePlan, string, CallSettings)
public virtual Operation<RestorePlan, OperationMetadata> CreateRestorePlan(string parent, RestorePlan restorePlan, string restorePlanId, CallSettings callSettings = null)Creates a new RestorePlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location within which to create the RestorePlan.
Format: |
restorePlan |
RestorePlanRequired. The RestorePlan resource object to create. |
restorePlanId |
stringRequired. The client-provided short name for the RestorePlan resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestorePlanOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
RestorePlan restorePlan = new RestorePlan();
string restorePlanId = "";
// Make the request
Operation<RestorePlan, OperationMetadata> response = backupForGKEClient.CreateRestorePlan(parent, restorePlan, restorePlanId);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceCreateRestorePlan(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
CreateRestorePlanAsync(LocationName, RestorePlan, string, CallSettings)
public virtual Task<Operation<RestorePlan, OperationMetadata>> CreateRestorePlanAsync(LocationName parent, RestorePlan restorePlan, string restorePlanId, CallSettings callSettings = null)Creates a new RestorePlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location within which to create the RestorePlan.
Format: |
restorePlan |
RestorePlanRequired. The RestorePlan resource object to create. |
restorePlanId |
stringRequired. The client-provided short name for the RestorePlan resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestorePlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RestorePlan restorePlan = new RestorePlan();
string restorePlanId = "";
// Make the request
Operation<RestorePlan, OperationMetadata> response = await backupForGKEClient.CreateRestorePlanAsync(parent, restorePlan, restorePlanId);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestorePlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
CreateRestorePlanAsync(LocationName, RestorePlan, string, CancellationToken)
public virtual Task<Operation<RestorePlan, OperationMetadata>> CreateRestorePlanAsync(LocationName parent, RestorePlan restorePlan, string restorePlanId, CancellationToken cancellationToken)Creates a new RestorePlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location within which to create the RestorePlan.
Format: |
restorePlan |
RestorePlanRequired. The RestorePlan resource object to create. |
restorePlanId |
stringRequired. The client-provided short name for the RestorePlan resource. This name must:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestorePlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RestorePlan restorePlan = new RestorePlan();
string restorePlanId = "";
// Make the request
Operation<RestorePlan, OperationMetadata> response = await backupForGKEClient.CreateRestorePlanAsync(parent, restorePlan, restorePlanId);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestorePlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
CreateRestorePlanAsync(CreateRestorePlanRequest, CallSettings)
public virtual Task<Operation<RestorePlan, OperationMetadata>> CreateRestorePlanAsync(CreateRestorePlanRequest request, CallSettings callSettings = null)Creates a new RestorePlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateRestorePlanRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestorePlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
CreateRestorePlanRequest request = new CreateRestorePlanRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
RestorePlan = new RestorePlan(),
RestorePlanId = "",
};
// Make the request
Operation<RestorePlan, OperationMetadata> response = await backupForGKEClient.CreateRestorePlanAsync(request);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestorePlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
CreateRestorePlanAsync(CreateRestorePlanRequest, CancellationToken)
public virtual Task<Operation<RestorePlan, OperationMetadata>> CreateRestorePlanAsync(CreateRestorePlanRequest request, CancellationToken cancellationToken)Creates a new RestorePlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateRestorePlanRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestorePlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
CreateRestorePlanRequest request = new CreateRestorePlanRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
RestorePlan = new RestorePlan(),
RestorePlanId = "",
};
// Make the request
Operation<RestorePlan, OperationMetadata> response = await backupForGKEClient.CreateRestorePlanAsync(request);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestorePlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
CreateRestorePlanAsync(string, RestorePlan, string, CallSettings)
public virtual Task<Operation<RestorePlan, OperationMetadata>> CreateRestorePlanAsync(string parent, RestorePlan restorePlan, string restorePlanId, CallSettings callSettings = null)Creates a new RestorePlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location within which to create the RestorePlan.
Format: |
restorePlan |
RestorePlanRequired. The RestorePlan resource object to create. |
restorePlanId |
stringRequired. The client-provided short name for the RestorePlan resource. This name must:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestorePlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
RestorePlan restorePlan = new RestorePlan();
string restorePlanId = "";
// Make the request
Operation<RestorePlan, OperationMetadata> response = await backupForGKEClient.CreateRestorePlanAsync(parent, restorePlan, restorePlanId);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestorePlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
CreateRestorePlanAsync(string, RestorePlan, string, CancellationToken)
public virtual Task<Operation<RestorePlan, OperationMetadata>> CreateRestorePlanAsync(string parent, RestorePlan restorePlan, string restorePlanId, CancellationToken cancellationToken)Creates a new RestorePlan in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location within which to create the RestorePlan.
Format: |
restorePlan |
RestorePlanRequired. The RestorePlan resource object to create. |
restorePlanId |
stringRequired. The client-provided short name for the RestorePlan resource. This name must:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestorePlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
RestorePlan restorePlan = new RestorePlan();
string restorePlanId = "";
// Make the request
Operation<RestorePlan, OperationMetadata> response = await backupForGKEClient.CreateRestorePlanAsync(parent, restorePlan, restorePlanId);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceCreateRestorePlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
DeleteBackup(BackupName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteBackup(BackupName name, CallSettings callSettings = null)Deletes an existing Backup.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupNameRequired. Name of the Backup resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupName name = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]");
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.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 = backupForGKEClient.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)Deletes an existing 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
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
DeleteBackupRequest request = new DeleteBackupRequest
{
BackupName = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]"),
Etag = "",
Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.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 = backupForGKEClient.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)Deletes an existing Backup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the Backup resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]";
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.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 = backupForGKEClient.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)Deletes an existing Backup.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupNameRequired. Name of the Backup resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupName name = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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)Deletes an existing Backup.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupNameRequired. Name of the Backup resource.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupName name = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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)Deletes an existing 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
DeleteBackupRequest request = new DeleteBackupRequest
{
BackupName = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]"),
Etag = "",
Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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)Deletes an existing 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
DeleteBackupRequest request = new DeleteBackupRequest
{
BackupName = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]"),
Etag = "",
Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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)Deletes an existing Backup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the Backup resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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)Deletes an existing Backup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the Backup resource.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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;
}
DeleteBackupChannel(BackupChannelName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteBackupChannel(BackupChannelName name, CallSettings callSettings = null)Deletes an existing BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupChannelNameRequired. Fully qualified BackupChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupChannelName name = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]");
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteBackupChannel(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 = backupForGKEClient.PollOnceDeleteBackupChannel(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;
}
DeleteBackupChannel(DeleteBackupChannelRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteBackupChannel(DeleteBackupChannelRequest request, CallSettings callSettings = null)Deletes an existing BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteBackupChannelRequestThe 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
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
DeleteBackupChannelRequest request = new DeleteBackupChannelRequest
{
BackupChannelName = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]"),
Etag = "",
Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteBackupChannel(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 = backupForGKEClient.PollOnceDeleteBackupChannel(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;
}
DeleteBackupChannel(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteBackupChannel(string name, CallSettings callSettings = null)Deletes an existing BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupChannels/[BACKUP_CHANNEL]";
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteBackupChannel(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 = backupForGKEClient.PollOnceDeleteBackupChannel(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;
}
DeleteBackupChannelAsync(BackupChannelName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupChannelAsync(BackupChannelName name, CallSettings callSettings = null)Deletes an existing BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupChannelNameRequired. Fully qualified BackupChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupChannelName name = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]");
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteBackupChannelAsync(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 backupForGKEClient.PollOnceDeleteBackupChannelAsync(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;
}
DeleteBackupChannelAsync(BackupChannelName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupChannelAsync(BackupChannelName name, CancellationToken cancellationToken)Deletes an existing BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupChannelNameRequired. Fully qualified BackupChannel name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupChannelName name = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]");
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteBackupChannelAsync(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 backupForGKEClient.PollOnceDeleteBackupChannelAsync(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;
}
DeleteBackupChannelAsync(DeleteBackupChannelRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupChannelAsync(DeleteBackupChannelRequest request, CallSettings callSettings = null)Deletes an existing BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteBackupChannelRequestThe 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
DeleteBackupChannelRequest request = new DeleteBackupChannelRequest
{
BackupChannelName = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]"),
Etag = "",
Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteBackupChannelAsync(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 backupForGKEClient.PollOnceDeleteBackupChannelAsync(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;
}
DeleteBackupChannelAsync(DeleteBackupChannelRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupChannelAsync(DeleteBackupChannelRequest request, CancellationToken cancellationToken)Deletes an existing BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteBackupChannelRequestThe 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
DeleteBackupChannelRequest request = new DeleteBackupChannelRequest
{
BackupChannelName = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]"),
Etag = "",
Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteBackupChannelAsync(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 backupForGKEClient.PollOnceDeleteBackupChannelAsync(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;
}
DeleteBackupChannelAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupChannelAsync(string name, CallSettings callSettings = null)Deletes an existing BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupChannels/[BACKUP_CHANNEL]";
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteBackupChannelAsync(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 backupForGKEClient.PollOnceDeleteBackupChannelAsync(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;
}
DeleteBackupChannelAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupChannelAsync(string name, CancellationToken cancellationToken)Deletes an existing BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupChannel name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupChannels/[BACKUP_CHANNEL]";
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteBackupChannelAsync(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 backupForGKEClient.PollOnceDeleteBackupChannelAsync(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;
}
DeleteBackupPlan(BackupPlanName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteBackupPlan(BackupPlanName name, CallSettings callSettings = null)Deletes an existing BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupPlanNameRequired. Fully qualified BackupPlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupPlanName name = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteBackupPlan(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 = backupForGKEClient.PollOnceDeleteBackupPlan(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;
}
DeleteBackupPlan(DeleteBackupPlanRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteBackupPlan(DeleteBackupPlanRequest request, CallSettings callSettings = null)Deletes an existing BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteBackupPlanRequestThe 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
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
DeleteBackupPlanRequest request = new DeleteBackupPlanRequest
{
BackupPlanName = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]"),
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteBackupPlan(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 = backupForGKEClient.PollOnceDeleteBackupPlan(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;
}
DeleteBackupPlan(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteBackupPlan(string name, CallSettings callSettings = null)Deletes an existing BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupPlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]";
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteBackupPlan(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 = backupForGKEClient.PollOnceDeleteBackupPlan(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;
}
DeleteBackupPlanAsync(BackupPlanName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupPlanAsync(BackupPlanName name, CallSettings callSettings = null)Deletes an existing BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupPlanNameRequired. Fully qualified BackupPlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupPlanName name = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteBackupPlanAsync(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 backupForGKEClient.PollOnceDeleteBackupPlanAsync(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;
}
DeleteBackupPlanAsync(BackupPlanName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupPlanAsync(BackupPlanName name, CancellationToken cancellationToken)Deletes an existing BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupPlanNameRequired. Fully qualified BackupPlan name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupPlanName name = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteBackupPlanAsync(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 backupForGKEClient.PollOnceDeleteBackupPlanAsync(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;
}
DeleteBackupPlanAsync(DeleteBackupPlanRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupPlanAsync(DeleteBackupPlanRequest request, CallSettings callSettings = null)Deletes an existing BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteBackupPlanRequestThe 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
DeleteBackupPlanRequest request = new DeleteBackupPlanRequest
{
BackupPlanName = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]"),
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteBackupPlanAsync(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 backupForGKEClient.PollOnceDeleteBackupPlanAsync(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;
}
DeleteBackupPlanAsync(DeleteBackupPlanRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupPlanAsync(DeleteBackupPlanRequest request, CancellationToken cancellationToken)Deletes an existing BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteBackupPlanRequestThe 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
DeleteBackupPlanRequest request = new DeleteBackupPlanRequest
{
BackupPlanName = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]"),
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteBackupPlanAsync(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 backupForGKEClient.PollOnceDeleteBackupPlanAsync(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;
}
DeleteBackupPlanAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupPlanAsync(string name, CallSettings callSettings = null)Deletes an existing BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupPlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]";
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteBackupPlanAsync(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 backupForGKEClient.PollOnceDeleteBackupPlanAsync(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;
}
DeleteBackupPlanAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteBackupPlanAsync(string name, CancellationToken cancellationToken)Deletes an existing BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupPlan name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]";
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteBackupPlanAsync(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 backupForGKEClient.PollOnceDeleteBackupPlanAsync(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;
}
DeleteRestore(DeleteRestoreRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRestore(DeleteRestoreRequest request, CallSettings callSettings = null)Deletes an existing Restore.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRestoreRequestThe 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
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
DeleteRestoreRequest request = new DeleteRestoreRequest
{
RestoreName = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]"),
Etag = "",
Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteRestore(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 = backupForGKEClient.PollOnceDeleteRestore(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;
}
DeleteRestore(RestoreName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRestore(RestoreName name, CallSettings callSettings = null)Deletes an existing Restore.
| Parameters | |
|---|---|
| Name | Description |
name |
RestoreNameRequired. Full name of the Restore
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
RestoreName name = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]");
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteRestore(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 = backupForGKEClient.PollOnceDeleteRestore(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;
}
DeleteRestore(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRestore(string name, CallSettings callSettings = null)Deletes an existing Restore.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full name of the Restore
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]/restores/[RESTORE]";
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteRestore(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 = backupForGKEClient.PollOnceDeleteRestore(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;
}
DeleteRestoreAsync(DeleteRestoreRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestoreAsync(DeleteRestoreRequest request, CallSettings callSettings = null)Deletes an existing Restore.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRestoreRequestThe 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
DeleteRestoreRequest request = new DeleteRestoreRequest
{
RestoreName = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]"),
Etag = "",
Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestoreAsync(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 backupForGKEClient.PollOnceDeleteRestoreAsync(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;
}
DeleteRestoreAsync(DeleteRestoreRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestoreAsync(DeleteRestoreRequest request, CancellationToken cancellationToken)Deletes an existing Restore.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRestoreRequestThe 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
DeleteRestoreRequest request = new DeleteRestoreRequest
{
RestoreName = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]"),
Etag = "",
Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestoreAsync(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 backupForGKEClient.PollOnceDeleteRestoreAsync(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;
}
DeleteRestoreAsync(RestoreName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestoreAsync(RestoreName name, CallSettings callSettings = null)Deletes an existing Restore.
| Parameters | |
|---|---|
| Name | Description |
name |
RestoreNameRequired. Full name of the Restore
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestoreName name = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]");
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestoreAsync(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 backupForGKEClient.PollOnceDeleteRestoreAsync(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;
}
DeleteRestoreAsync(RestoreName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestoreAsync(RestoreName name, CancellationToken cancellationToken)Deletes an existing Restore.
| Parameters | |
|---|---|
| Name | Description |
name |
RestoreNameRequired. Full name of the Restore
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestoreName name = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]");
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestoreAsync(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 backupForGKEClient.PollOnceDeleteRestoreAsync(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;
}
DeleteRestoreAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestoreAsync(string name, CallSettings callSettings = null)Deletes an existing Restore.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full name of the Restore
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]/restores/[RESTORE]";
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestoreAsync(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 backupForGKEClient.PollOnceDeleteRestoreAsync(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;
}
DeleteRestoreAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestoreAsync(string name, CancellationToken cancellationToken)Deletes an existing Restore.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full name of the Restore
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]/restores/[RESTORE]";
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestoreAsync(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 backupForGKEClient.PollOnceDeleteRestoreAsync(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;
}
DeleteRestoreChannel(DeleteRestoreChannelRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRestoreChannel(DeleteRestoreChannelRequest request, CallSettings callSettings = null)Deletes an existing RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRestoreChannelRequestThe 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
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
DeleteRestoreChannelRequest request = new DeleteRestoreChannelRequest
{
RestoreChannelName = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]"),
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteRestoreChannel(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 = backupForGKEClient.PollOnceDeleteRestoreChannel(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;
}
DeleteRestoreChannel(RestoreChannelName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRestoreChannel(RestoreChannelName name, CallSettings callSettings = null)Deletes an existing RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
RestoreChannelNameRequired. Fully qualified RestoreChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
RestoreChannelName name = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]");
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteRestoreChannel(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 = backupForGKEClient.PollOnceDeleteRestoreChannel(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;
}
DeleteRestoreChannel(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRestoreChannel(string name, CallSettings callSettings = null)Deletes an existing RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestoreChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restoreChannels/[RESTORE_CHANNEL]";
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteRestoreChannel(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 = backupForGKEClient.PollOnceDeleteRestoreChannel(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;
}
DeleteRestoreChannelAsync(DeleteRestoreChannelRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestoreChannelAsync(DeleteRestoreChannelRequest request, CallSettings callSettings = null)Deletes an existing RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRestoreChannelRequestThe 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
DeleteRestoreChannelRequest request = new DeleteRestoreChannelRequest
{
RestoreChannelName = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]"),
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestoreChannelAsync(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 backupForGKEClient.PollOnceDeleteRestoreChannelAsync(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;
}
DeleteRestoreChannelAsync(DeleteRestoreChannelRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestoreChannelAsync(DeleteRestoreChannelRequest request, CancellationToken cancellationToken)Deletes an existing RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRestoreChannelRequestThe 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
DeleteRestoreChannelRequest request = new DeleteRestoreChannelRequest
{
RestoreChannelName = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]"),
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestoreChannelAsync(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 backupForGKEClient.PollOnceDeleteRestoreChannelAsync(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;
}
DeleteRestoreChannelAsync(RestoreChannelName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestoreChannelAsync(RestoreChannelName name, CallSettings callSettings = null)Deletes an existing RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
RestoreChannelNameRequired. Fully qualified RestoreChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestoreChannelName name = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]");
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestoreChannelAsync(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 backupForGKEClient.PollOnceDeleteRestoreChannelAsync(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;
}
DeleteRestoreChannelAsync(RestoreChannelName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestoreChannelAsync(RestoreChannelName name, CancellationToken cancellationToken)Deletes an existing RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
RestoreChannelNameRequired. Fully qualified RestoreChannel name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestoreChannelName name = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]");
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestoreChannelAsync(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 backupForGKEClient.PollOnceDeleteRestoreChannelAsync(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;
}
DeleteRestoreChannelAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestoreChannelAsync(string name, CallSettings callSettings = null)Deletes an existing RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestoreChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restoreChannels/[RESTORE_CHANNEL]";
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestoreChannelAsync(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 backupForGKEClient.PollOnceDeleteRestoreChannelAsync(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;
}
DeleteRestoreChannelAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestoreChannelAsync(string name, CancellationToken cancellationToken)Deletes an existing RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestoreChannel name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restoreChannels/[RESTORE_CHANNEL]";
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestoreChannelAsync(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 backupForGKEClient.PollOnceDeleteRestoreChannelAsync(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;
}
DeleteRestorePlan(DeleteRestorePlanRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRestorePlan(DeleteRestorePlanRequest request, CallSettings callSettings = null)Deletes an existing RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRestorePlanRequestThe 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
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
DeleteRestorePlanRequest request = new DeleteRestorePlanRequest
{
RestorePlanName = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]"),
Etag = "",
Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteRestorePlan(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 = backupForGKEClient.PollOnceDeleteRestorePlan(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;
}
DeleteRestorePlan(RestorePlanName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRestorePlan(RestorePlanName name, CallSettings callSettings = null)Deletes an existing RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
name |
RestorePlanNameRequired. Fully qualified RestorePlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
RestorePlanName name = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]");
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteRestorePlan(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 = backupForGKEClient.PollOnceDeleteRestorePlan(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;
}
DeleteRestorePlan(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRestorePlan(string name, CallSettings callSettings = null)Deletes an existing RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestorePlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]";
// Make the request
Operation<Empty, OperationMetadata> response = backupForGKEClient.DeleteRestorePlan(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 = backupForGKEClient.PollOnceDeleteRestorePlan(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;
}
DeleteRestorePlanAsync(DeleteRestorePlanRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestorePlanAsync(DeleteRestorePlanRequest request, CallSettings callSettings = null)Deletes an existing RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRestorePlanRequestThe 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
DeleteRestorePlanRequest request = new DeleteRestorePlanRequest
{
RestorePlanName = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]"),
Etag = "",
Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestorePlanAsync(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 backupForGKEClient.PollOnceDeleteRestorePlanAsync(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;
}
DeleteRestorePlanAsync(DeleteRestorePlanRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestorePlanAsync(DeleteRestorePlanRequest request, CancellationToken cancellationToken)Deletes an existing RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRestorePlanRequestThe 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
DeleteRestorePlanRequest request = new DeleteRestorePlanRequest
{
RestorePlanName = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]"),
Etag = "",
Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestorePlanAsync(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 backupForGKEClient.PollOnceDeleteRestorePlanAsync(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;
}
DeleteRestorePlanAsync(RestorePlanName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestorePlanAsync(RestorePlanName name, CallSettings callSettings = null)Deletes an existing RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
name |
RestorePlanNameRequired. Fully qualified RestorePlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestorePlanName name = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]");
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestorePlanAsync(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 backupForGKEClient.PollOnceDeleteRestorePlanAsync(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;
}
DeleteRestorePlanAsync(RestorePlanName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestorePlanAsync(RestorePlanName name, CancellationToken cancellationToken)Deletes an existing RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
name |
RestorePlanNameRequired. Fully qualified RestorePlan name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestorePlanName name = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]");
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestorePlanAsync(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 backupForGKEClient.PollOnceDeleteRestorePlanAsync(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;
}
DeleteRestorePlanAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestorePlanAsync(string name, CallSettings callSettings = null)Deletes an existing RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestorePlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]";
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestorePlanAsync(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 backupForGKEClient.PollOnceDeleteRestorePlanAsync(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;
}
DeleteRestorePlanAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRestorePlanAsync(string name, CancellationToken cancellationToken)Deletes an existing RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestorePlan name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]";
// Make the request
Operation<Empty, OperationMetadata> response = await backupForGKEClient.DeleteRestorePlanAsync(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 backupForGKEClient.PollOnceDeleteRestorePlanAsync(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;
}
GetBackup(BackupName, CallSettings)
public virtual Backup GetBackup(BackupName name, CallSettings callSettings = null)Retrieve the details of a single Backup.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupNameRequired. Full name of the Backup resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Backup |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupName name = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]");
// Make the request
Backup response = backupForGKEClient.GetBackup(name);
GetBackup(GetBackupRequest, CallSettings)
public virtual Backup GetBackup(GetBackupRequest request, CallSettings callSettings = null)Retrieve the details of a single 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
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
GetBackupRequest request = new GetBackupRequest
{
BackupName = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]"),
};
// Make the request
Backup response = backupForGKEClient.GetBackup(request);
GetBackup(string, CallSettings)
public virtual Backup GetBackup(string name, CallSettings callSettings = null)Retrieve the details of a single Backup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full name of the Backup resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Backup |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]";
// Make the request
Backup response = backupForGKEClient.GetBackup(name);
GetBackupAsync(BackupName, CallSettings)
public virtual Task<Backup> GetBackupAsync(BackupName name, CallSettings callSettings = null)Retrieve the details of a single Backup.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupNameRequired. Full name of the Backup resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackup |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupName name = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]");
// Make the request
Backup response = await backupForGKEClient.GetBackupAsync(name);
GetBackupAsync(BackupName, CancellationToken)
public virtual Task<Backup> GetBackupAsync(BackupName name, CancellationToken cancellationToken)Retrieve the details of a single Backup.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupNameRequired. Full name of the Backup resource.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackup |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupName name = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]");
// Make the request
Backup response = await backupForGKEClient.GetBackupAsync(name);
GetBackupAsync(GetBackupRequest, CallSettings)
public virtual Task<Backup> GetBackupAsync(GetBackupRequest request, CallSettings callSettings = null)Retrieve the details of a single 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetBackupRequest request = new GetBackupRequest
{
BackupName = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]"),
};
// Make the request
Backup response = await backupForGKEClient.GetBackupAsync(request);
GetBackupAsync(GetBackupRequest, CancellationToken)
public virtual Task<Backup> GetBackupAsync(GetBackupRequest request, CancellationToken cancellationToken)Retrieve the details of a single 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetBackupRequest request = new GetBackupRequest
{
BackupName = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]"),
};
// Make the request
Backup response = await backupForGKEClient.GetBackupAsync(request);
GetBackupAsync(string, CallSettings)
public virtual Task<Backup> GetBackupAsync(string name, CallSettings callSettings = null)Retrieve the details of a single Backup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full name of the Backup resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackup |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]";
// Make the request
Backup response = await backupForGKEClient.GetBackupAsync(name);
GetBackupAsync(string, CancellationToken)
public virtual Task<Backup> GetBackupAsync(string name, CancellationToken cancellationToken)Retrieve the details of a single Backup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full name of the Backup resource.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackup |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]";
// Make the request
Backup response = await backupForGKEClient.GetBackupAsync(name);
GetBackupChannel(BackupChannelName, CallSettings)
public virtual BackupChannel GetBackupChannel(BackupChannelName name, CallSettings callSettings = null)Retrieve the details of a single BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupChannelNameRequired. Fully qualified BackupChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupChannel |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupChannelName name = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]");
// Make the request
BackupChannel response = backupForGKEClient.GetBackupChannel(name);
GetBackupChannel(GetBackupChannelRequest, CallSettings)
public virtual BackupChannel GetBackupChannel(GetBackupChannelRequest request, CallSettings callSettings = null)Retrieve the details of a single BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupChannelRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupChannel |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
GetBackupChannelRequest request = new GetBackupChannelRequest
{
BackupChannelName = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]"),
};
// Make the request
BackupChannel response = backupForGKEClient.GetBackupChannel(request);
GetBackupChannel(string, CallSettings)
public virtual BackupChannel GetBackupChannel(string name, CallSettings callSettings = null)Retrieve the details of a single BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupChannel |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupChannels/[BACKUP_CHANNEL]";
// Make the request
BackupChannel response = backupForGKEClient.GetBackupChannel(name);
GetBackupChannelAsync(BackupChannelName, CallSettings)
public virtual Task<BackupChannel> GetBackupChannelAsync(BackupChannelName name, CallSettings callSettings = null)Retrieve the details of a single BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupChannelNameRequired. Fully qualified BackupChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupChannel |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupChannelName name = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]");
// Make the request
BackupChannel response = await backupForGKEClient.GetBackupChannelAsync(name);
GetBackupChannelAsync(BackupChannelName, CancellationToken)
public virtual Task<BackupChannel> GetBackupChannelAsync(BackupChannelName name, CancellationToken cancellationToken)Retrieve the details of a single BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupChannelNameRequired. Fully qualified BackupChannel name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupChannel |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupChannelName name = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]");
// Make the request
BackupChannel response = await backupForGKEClient.GetBackupChannelAsync(name);
GetBackupChannelAsync(GetBackupChannelRequest, CallSettings)
public virtual Task<BackupChannel> GetBackupChannelAsync(GetBackupChannelRequest request, CallSettings callSettings = null)Retrieve the details of a single BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupChannelRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupChannel |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetBackupChannelRequest request = new GetBackupChannelRequest
{
BackupChannelName = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]"),
};
// Make the request
BackupChannel response = await backupForGKEClient.GetBackupChannelAsync(request);
GetBackupChannelAsync(GetBackupChannelRequest, CancellationToken)
public virtual Task<BackupChannel> GetBackupChannelAsync(GetBackupChannelRequest request, CancellationToken cancellationToken)Retrieve the details of a single BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupChannelRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupChannel |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetBackupChannelRequest request = new GetBackupChannelRequest
{
BackupChannelName = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]"),
};
// Make the request
BackupChannel response = await backupForGKEClient.GetBackupChannelAsync(request);
GetBackupChannelAsync(string, CallSettings)
public virtual Task<BackupChannel> GetBackupChannelAsync(string name, CallSettings callSettings = null)Retrieve the details of a single BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupChannel |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupChannels/[BACKUP_CHANNEL]";
// Make the request
BackupChannel response = await backupForGKEClient.GetBackupChannelAsync(name);
GetBackupChannelAsync(string, CancellationToken)
public virtual Task<BackupChannel> GetBackupChannelAsync(string name, CancellationToken cancellationToken)Retrieve the details of a single BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupChannel name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupChannel |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupChannels/[BACKUP_CHANNEL]";
// Make the request
BackupChannel response = await backupForGKEClient.GetBackupChannelAsync(name);
GetBackupIndexDownloadUrl(BackupName, CallSettings)
public virtual GetBackupIndexDownloadUrlResponse GetBackupIndexDownloadUrl(BackupName backup, CallSettings callSettings = null)Retrieve the link to the backupIndex.
| Parameters | |
|---|---|
| Name | Description |
backup |
BackupNameRequired. Full name of Backup resource. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
GetBackupIndexDownloadUrlResponse |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupName backup = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]");
// Make the request
GetBackupIndexDownloadUrlResponse response = backupForGKEClient.GetBackupIndexDownloadUrl(backup);
GetBackupIndexDownloadUrl(GetBackupIndexDownloadUrlRequest, CallSettings)
public virtual GetBackupIndexDownloadUrlResponse GetBackupIndexDownloadUrl(GetBackupIndexDownloadUrlRequest request, CallSettings callSettings = null)Retrieve the link to the backupIndex.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupIndexDownloadUrlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
GetBackupIndexDownloadUrlResponse |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
GetBackupIndexDownloadUrlRequest request = new GetBackupIndexDownloadUrlRequest
{
BackupAsBackupName = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]"),
};
// Make the request
GetBackupIndexDownloadUrlResponse response = backupForGKEClient.GetBackupIndexDownloadUrl(request);
GetBackupIndexDownloadUrl(string, CallSettings)
public virtual GetBackupIndexDownloadUrlResponse GetBackupIndexDownloadUrl(string backup, CallSettings callSettings = null)Retrieve the link to the backupIndex.
| Parameters | |
|---|---|
| Name | Description |
backup |
stringRequired. Full name of Backup resource. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
GetBackupIndexDownloadUrlResponse |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string backup = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]";
// Make the request
GetBackupIndexDownloadUrlResponse response = backupForGKEClient.GetBackupIndexDownloadUrl(backup);
GetBackupIndexDownloadUrlAsync(BackupName, CallSettings)
public virtual Task<GetBackupIndexDownloadUrlResponse> GetBackupIndexDownloadUrlAsync(BackupName backup, CallSettings callSettings = null)Retrieve the link to the backupIndex.
| Parameters | |
|---|---|
| Name | Description |
backup |
BackupNameRequired. Full name of Backup resource. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskGetBackupIndexDownloadUrlResponse |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupName backup = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]");
// Make the request
GetBackupIndexDownloadUrlResponse response = await backupForGKEClient.GetBackupIndexDownloadUrlAsync(backup);
GetBackupIndexDownloadUrlAsync(BackupName, CancellationToken)
public virtual Task<GetBackupIndexDownloadUrlResponse> GetBackupIndexDownloadUrlAsync(BackupName backup, CancellationToken cancellationToken)Retrieve the link to the backupIndex.
| Parameters | |
|---|---|
| Name | Description |
backup |
BackupNameRequired. Full name of Backup resource. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskGetBackupIndexDownloadUrlResponse |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupName backup = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]");
// Make the request
GetBackupIndexDownloadUrlResponse response = await backupForGKEClient.GetBackupIndexDownloadUrlAsync(backup);
GetBackupIndexDownloadUrlAsync(GetBackupIndexDownloadUrlRequest, CallSettings)
public virtual Task<GetBackupIndexDownloadUrlResponse> GetBackupIndexDownloadUrlAsync(GetBackupIndexDownloadUrlRequest request, CallSettings callSettings = null)Retrieve the link to the backupIndex.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupIndexDownloadUrlRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskGetBackupIndexDownloadUrlResponse |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetBackupIndexDownloadUrlRequest request = new GetBackupIndexDownloadUrlRequest
{
BackupAsBackupName = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]"),
};
// Make the request
GetBackupIndexDownloadUrlResponse response = await backupForGKEClient.GetBackupIndexDownloadUrlAsync(request);
GetBackupIndexDownloadUrlAsync(GetBackupIndexDownloadUrlRequest, CancellationToken)
public virtual Task<GetBackupIndexDownloadUrlResponse> GetBackupIndexDownloadUrlAsync(GetBackupIndexDownloadUrlRequest request, CancellationToken cancellationToken)Retrieve the link to the backupIndex.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupIndexDownloadUrlRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskGetBackupIndexDownloadUrlResponse |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetBackupIndexDownloadUrlRequest request = new GetBackupIndexDownloadUrlRequest
{
BackupAsBackupName = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]"),
};
// Make the request
GetBackupIndexDownloadUrlResponse response = await backupForGKEClient.GetBackupIndexDownloadUrlAsync(request);
GetBackupIndexDownloadUrlAsync(string, CallSettings)
public virtual Task<GetBackupIndexDownloadUrlResponse> GetBackupIndexDownloadUrlAsync(string backup, CallSettings callSettings = null)Retrieve the link to the backupIndex.
| Parameters | |
|---|---|
| Name | Description |
backup |
stringRequired. Full name of Backup resource. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskGetBackupIndexDownloadUrlResponse |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string backup = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]";
// Make the request
GetBackupIndexDownloadUrlResponse response = await backupForGKEClient.GetBackupIndexDownloadUrlAsync(backup);
GetBackupIndexDownloadUrlAsync(string, CancellationToken)
public virtual Task<GetBackupIndexDownloadUrlResponse> GetBackupIndexDownloadUrlAsync(string backup, CancellationToken cancellationToken)Retrieve the link to the backupIndex.
| Parameters | |
|---|---|
| Name | Description |
backup |
stringRequired. Full name of Backup resource. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskGetBackupIndexDownloadUrlResponse |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string backup = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]";
// Make the request
GetBackupIndexDownloadUrlResponse response = await backupForGKEClient.GetBackupIndexDownloadUrlAsync(backup);
GetBackupPlan(BackupPlanName, CallSettings)
public virtual BackupPlan GetBackupPlan(BackupPlanName name, CallSettings callSettings = null)Retrieve the details of a single BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupPlanNameRequired. Fully qualified BackupPlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupPlan |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupPlanName name = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
// Make the request
BackupPlan response = backupForGKEClient.GetBackupPlan(name);
GetBackupPlan(GetBackupPlanRequest, CallSettings)
public virtual BackupPlan GetBackupPlan(GetBackupPlanRequest request, CallSettings callSettings = null)Retrieve the details of a single BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupPlanRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupPlan |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
GetBackupPlanRequest request = new GetBackupPlanRequest
{
BackupPlanName = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]"),
};
// Make the request
BackupPlan response = backupForGKEClient.GetBackupPlan(request);
GetBackupPlan(string, CallSettings)
public virtual BackupPlan GetBackupPlan(string name, CallSettings callSettings = null)Retrieve the details of a single BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupPlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupPlan |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]";
// Make the request
BackupPlan response = backupForGKEClient.GetBackupPlan(name);
GetBackupPlanAsync(BackupPlanName, CallSettings)
public virtual Task<BackupPlan> GetBackupPlanAsync(BackupPlanName name, CallSettings callSettings = null)Retrieve the details of a single BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupPlanNameRequired. Fully qualified BackupPlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPlan |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupPlanName name = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
// Make the request
BackupPlan response = await backupForGKEClient.GetBackupPlanAsync(name);
GetBackupPlanAsync(BackupPlanName, CancellationToken)
public virtual Task<BackupPlan> GetBackupPlanAsync(BackupPlanName name, CancellationToken cancellationToken)Retrieve the details of a single BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupPlanNameRequired. Fully qualified BackupPlan name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPlan |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupPlanName name = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
// Make the request
BackupPlan response = await backupForGKEClient.GetBackupPlanAsync(name);
GetBackupPlanAsync(GetBackupPlanRequest, CallSettings)
public virtual Task<BackupPlan> GetBackupPlanAsync(GetBackupPlanRequest request, CallSettings callSettings = null)Retrieve the details of a single BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupPlanRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPlan |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetBackupPlanRequest request = new GetBackupPlanRequest
{
BackupPlanName = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]"),
};
// Make the request
BackupPlan response = await backupForGKEClient.GetBackupPlanAsync(request);
GetBackupPlanAsync(GetBackupPlanRequest, CancellationToken)
public virtual Task<BackupPlan> GetBackupPlanAsync(GetBackupPlanRequest request, CancellationToken cancellationToken)Retrieve the details of a single BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupPlanRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPlan |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetBackupPlanRequest request = new GetBackupPlanRequest
{
BackupPlanName = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]"),
};
// Make the request
BackupPlan response = await backupForGKEClient.GetBackupPlanAsync(request);
GetBackupPlanAsync(string, CallSettings)
public virtual Task<BackupPlan> GetBackupPlanAsync(string name, CallSettings callSettings = null)Retrieve the details of a single BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupPlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPlan |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]";
// Make the request
BackupPlan response = await backupForGKEClient.GetBackupPlanAsync(name);
GetBackupPlanAsync(string, CancellationToken)
public virtual Task<BackupPlan> GetBackupPlanAsync(string name, CancellationToken cancellationToken)Retrieve the details of a single BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupPlan name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPlan |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]";
// Make the request
BackupPlan response = await backupForGKEClient.GetBackupPlanAsync(name);
GetBackupPlanBinding(BackupPlanBindingName, CallSettings)
public virtual BackupPlanBinding GetBackupPlanBinding(BackupPlanBindingName name, CallSettings callSettings = null)Retrieve the details of a single BackupPlanBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupPlanBindingNameRequired. Fully qualified BackupPlanBinding name.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupPlanBindingName name = BackupPlanBindingName.FromProjectLocationBackupChannelBackupPlanBinding("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]", "[BACKUP_PLAN_BINDING]");
// Make the request
BackupPlanBinding response = backupForGKEClient.GetBackupPlanBinding(name);
GetBackupPlanBinding(GetBackupPlanBindingRequest, CallSettings)
public virtual BackupPlanBinding GetBackupPlanBinding(GetBackupPlanBindingRequest request, CallSettings callSettings = null)Retrieve the details of a single BackupPlanBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupPlanBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
GetBackupPlanBindingRequest request = new GetBackupPlanBindingRequest
{
BackupPlanBindingName = BackupPlanBindingName.FromProjectLocationBackupChannelBackupPlanBinding("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]", "[BACKUP_PLAN_BINDING]"),
};
// Make the request
BackupPlanBinding response = backupForGKEClient.GetBackupPlanBinding(request);
GetBackupPlanBinding(string, CallSettings)
public virtual BackupPlanBinding GetBackupPlanBinding(string name, CallSettings callSettings = null)Retrieve the details of a single BackupPlanBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupPlanBinding name.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BackupPlanBinding |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupChannels/[BACKUP_CHANNEL]/backupPlanBindings/[BACKUP_PLAN_BINDING]";
// Make the request
BackupPlanBinding response = backupForGKEClient.GetBackupPlanBinding(name);
GetBackupPlanBindingAsync(BackupPlanBindingName, CallSettings)
public virtual Task<BackupPlanBinding> GetBackupPlanBindingAsync(BackupPlanBindingName name, CallSettings callSettings = null)Retrieve the details of a single BackupPlanBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupPlanBindingNameRequired. Fully qualified BackupPlanBinding name.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPlanBinding |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupPlanBindingName name = BackupPlanBindingName.FromProjectLocationBackupChannelBackupPlanBinding("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]", "[BACKUP_PLAN_BINDING]");
// Make the request
BackupPlanBinding response = await backupForGKEClient.GetBackupPlanBindingAsync(name);
GetBackupPlanBindingAsync(BackupPlanBindingName, CancellationToken)
public virtual Task<BackupPlanBinding> GetBackupPlanBindingAsync(BackupPlanBindingName name, CancellationToken cancellationToken)Retrieve the details of a single BackupPlanBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
BackupPlanBindingNameRequired. Fully qualified BackupPlanBinding name.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPlanBinding |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupPlanBindingName name = BackupPlanBindingName.FromProjectLocationBackupChannelBackupPlanBinding("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]", "[BACKUP_PLAN_BINDING]");
// Make the request
BackupPlanBinding response = await backupForGKEClient.GetBackupPlanBindingAsync(name);
GetBackupPlanBindingAsync(GetBackupPlanBindingRequest, CallSettings)
public virtual Task<BackupPlanBinding> GetBackupPlanBindingAsync(GetBackupPlanBindingRequest request, CallSettings callSettings = null)Retrieve the details of a single BackupPlanBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupPlanBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPlanBinding |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetBackupPlanBindingRequest request = new GetBackupPlanBindingRequest
{
BackupPlanBindingName = BackupPlanBindingName.FromProjectLocationBackupChannelBackupPlanBinding("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]", "[BACKUP_PLAN_BINDING]"),
};
// Make the request
BackupPlanBinding response = await backupForGKEClient.GetBackupPlanBindingAsync(request);
GetBackupPlanBindingAsync(GetBackupPlanBindingRequest, CancellationToken)
public virtual Task<BackupPlanBinding> GetBackupPlanBindingAsync(GetBackupPlanBindingRequest request, CancellationToken cancellationToken)Retrieve the details of a single BackupPlanBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBackupPlanBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPlanBinding |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetBackupPlanBindingRequest request = new GetBackupPlanBindingRequest
{
BackupPlanBindingName = BackupPlanBindingName.FromProjectLocationBackupChannelBackupPlanBinding("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]", "[BACKUP_PLAN_BINDING]"),
};
// Make the request
BackupPlanBinding response = await backupForGKEClient.GetBackupPlanBindingAsync(request);
GetBackupPlanBindingAsync(string, CallSettings)
public virtual Task<BackupPlanBinding> GetBackupPlanBindingAsync(string name, CallSettings callSettings = null)Retrieve the details of a single BackupPlanBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupPlanBinding name.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPlanBinding |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupChannels/[BACKUP_CHANNEL]/backupPlanBindings/[BACKUP_PLAN_BINDING]";
// Make the request
BackupPlanBinding response = await backupForGKEClient.GetBackupPlanBindingAsync(name);
GetBackupPlanBindingAsync(string, CancellationToken)
public virtual Task<BackupPlanBinding> GetBackupPlanBindingAsync(string name, CancellationToken cancellationToken)Retrieve the details of a single BackupPlanBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified BackupPlanBinding name.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBackupPlanBinding |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupChannels/[BACKUP_CHANNEL]/backupPlanBindings/[BACKUP_PLAN_BINDING]";
// Make the request
BackupPlanBinding response = await backupForGKEClient.GetBackupPlanBindingAsync(name);
GetRestore(GetRestoreRequest, CallSettings)
public virtual Restore GetRestore(GetRestoreRequest request, CallSettings callSettings = null)Retrieves the details of a single Restore.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRestoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Restore |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
GetRestoreRequest request = new GetRestoreRequest
{
RestoreName = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]"),
};
// Make the request
Restore response = backupForGKEClient.GetRestore(request);
GetRestore(RestoreName, CallSettings)
public virtual Restore GetRestore(RestoreName name, CallSettings callSettings = null)Retrieves the details of a single Restore.
| Parameters | |
|---|---|
| Name | Description |
name |
RestoreNameRequired. Name of the restore resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Restore |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
RestoreName name = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]");
// Make the request
Restore response = backupForGKEClient.GetRestore(name);
GetRestore(string, CallSettings)
public virtual Restore GetRestore(string name, CallSettings callSettings = null)Retrieves the details of a single Restore.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the restore resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Restore |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]/restores/[RESTORE]";
// Make the request
Restore response = backupForGKEClient.GetRestore(name);
GetRestoreAsync(GetRestoreRequest, CallSettings)
public virtual Task<Restore> GetRestoreAsync(GetRestoreRequest request, CallSettings callSettings = null)Retrieves the details of a single Restore.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRestoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRestore |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetRestoreRequest request = new GetRestoreRequest
{
RestoreName = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]"),
};
// Make the request
Restore response = await backupForGKEClient.GetRestoreAsync(request);
GetRestoreAsync(GetRestoreRequest, CancellationToken)
public virtual Task<Restore> GetRestoreAsync(GetRestoreRequest request, CancellationToken cancellationToken)Retrieves the details of a single Restore.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRestoreRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRestore |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetRestoreRequest request = new GetRestoreRequest
{
RestoreName = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]"),
};
// Make the request
Restore response = await backupForGKEClient.GetRestoreAsync(request);
GetRestoreAsync(RestoreName, CallSettings)
public virtual Task<Restore> GetRestoreAsync(RestoreName name, CallSettings callSettings = null)Retrieves the details of a single Restore.
| Parameters | |
|---|---|
| Name | Description |
name |
RestoreNameRequired. Name of the restore resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRestore |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestoreName name = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]");
// Make the request
Restore response = await backupForGKEClient.GetRestoreAsync(name);
GetRestoreAsync(RestoreName, CancellationToken)
public virtual Task<Restore> GetRestoreAsync(RestoreName name, CancellationToken cancellationToken)Retrieves the details of a single Restore.
| Parameters | |
|---|---|
| Name | Description |
name |
RestoreNameRequired. Name of the restore resource.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRestore |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestoreName name = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]");
// Make the request
Restore response = await backupForGKEClient.GetRestoreAsync(name);
GetRestoreAsync(string, CallSettings)
public virtual Task<Restore> GetRestoreAsync(string name, CallSettings callSettings = null)Retrieves the details of a single Restore.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the restore resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRestore |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]/restores/[RESTORE]";
// Make the request
Restore response = await backupForGKEClient.GetRestoreAsync(name);
GetRestoreAsync(string, CancellationToken)
public virtual Task<Restore> GetRestoreAsync(string name, CancellationToken cancellationToken)Retrieves the details of a single Restore.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the restore resource.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRestore |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]/restores/[RESTORE]";
// Make the request
Restore response = await backupForGKEClient.GetRestoreAsync(name);
GetRestoreChannel(GetRestoreChannelRequest, CallSettings)
public virtual RestoreChannel GetRestoreChannel(GetRestoreChannelRequest request, CallSettings callSettings = null)Retrieve the details of a single RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRestoreChannelRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RestoreChannel |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
GetRestoreChannelRequest request = new GetRestoreChannelRequest
{
RestoreChannelName = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]"),
};
// Make the request
RestoreChannel response = backupForGKEClient.GetRestoreChannel(request);
GetRestoreChannel(RestoreChannelName, CallSettings)
public virtual RestoreChannel GetRestoreChannel(RestoreChannelName name, CallSettings callSettings = null)Retrieve the details of a single RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
RestoreChannelNameRequired. Fully qualified RestoreChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RestoreChannel |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
RestoreChannelName name = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]");
// Make the request
RestoreChannel response = backupForGKEClient.GetRestoreChannel(name);
GetRestoreChannel(string, CallSettings)
public virtual RestoreChannel GetRestoreChannel(string name, CallSettings callSettings = null)Retrieve the details of a single RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestoreChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RestoreChannel |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restoreChannels/[RESTORE_CHANNEL]";
// Make the request
RestoreChannel response = backupForGKEClient.GetRestoreChannel(name);
GetRestoreChannelAsync(GetRestoreChannelRequest, CallSettings)
public virtual Task<RestoreChannel> GetRestoreChannelAsync(GetRestoreChannelRequest request, CallSettings callSettings = null)Retrieve the details of a single RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRestoreChannelRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRestoreChannel |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetRestoreChannelRequest request = new GetRestoreChannelRequest
{
RestoreChannelName = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]"),
};
// Make the request
RestoreChannel response = await backupForGKEClient.GetRestoreChannelAsync(request);
GetRestoreChannelAsync(GetRestoreChannelRequest, CancellationToken)
public virtual Task<RestoreChannel> GetRestoreChannelAsync(GetRestoreChannelRequest request, CancellationToken cancellationToken)Retrieve the details of a single RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRestoreChannelRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRestoreChannel |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetRestoreChannelRequest request = new GetRestoreChannelRequest
{
RestoreChannelName = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]"),
};
// Make the request
RestoreChannel response = await backupForGKEClient.GetRestoreChannelAsync(request);
GetRestoreChannelAsync(RestoreChannelName, CallSettings)
public virtual Task<RestoreChannel> GetRestoreChannelAsync(RestoreChannelName name, CallSettings callSettings = null)Retrieve the details of a single RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
RestoreChannelNameRequired. Fully qualified RestoreChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRestoreChannel |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestoreChannelName name = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]");
// Make the request
RestoreChannel response = await backupForGKEClient.GetRestoreChannelAsync(name);
GetRestoreChannelAsync(RestoreChannelName, CancellationToken)
public virtual Task<RestoreChannel> GetRestoreChannelAsync(RestoreChannelName name, CancellationToken cancellationToken)Retrieve the details of a single RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
RestoreChannelNameRequired. Fully qualified RestoreChannel name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRestoreChannel |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestoreChannelName name = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]");
// Make the request
RestoreChannel response = await backupForGKEClient.GetRestoreChannelAsync(name);
GetRestoreChannelAsync(string, CallSettings)
public virtual Task<RestoreChannel> GetRestoreChannelAsync(string name, CallSettings callSettings = null)Retrieve the details of a single RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestoreChannel name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRestoreChannel |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restoreChannels/[RESTORE_CHANNEL]";
// Make the request
RestoreChannel response = await backupForGKEClient.GetRestoreChannelAsync(name);
GetRestoreChannelAsync(string, CancellationToken)
public virtual Task<RestoreChannel> GetRestoreChannelAsync(string name, CancellationToken cancellationToken)Retrieve the details of a single RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestoreChannel name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRestoreChannel |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restoreChannels/[RESTORE_CHANNEL]";
// Make the request
RestoreChannel response = await backupForGKEClient.GetRestoreChannelAsync(name);
GetRestorePlan(GetRestorePlanRequest, CallSettings)
public virtual RestorePlan GetRestorePlan(GetRestorePlanRequest request, CallSettings callSettings = null)Retrieve the details of a single RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRestorePlanRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RestorePlan |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
GetRestorePlanRequest request = new GetRestorePlanRequest
{
RestorePlanName = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]"),
};
// Make the request
RestorePlan response = backupForGKEClient.GetRestorePlan(request);
GetRestorePlan(RestorePlanName, CallSettings)
public virtual RestorePlan GetRestorePlan(RestorePlanName name, CallSettings callSettings = null)Retrieve the details of a single RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
name |
RestorePlanNameRequired. Fully qualified RestorePlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RestorePlan |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
RestorePlanName name = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]");
// Make the request
RestorePlan response = backupForGKEClient.GetRestorePlan(name);
GetRestorePlan(string, CallSettings)
public virtual RestorePlan GetRestorePlan(string name, CallSettings callSettings = null)Retrieve the details of a single RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestorePlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RestorePlan |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]";
// Make the request
RestorePlan response = backupForGKEClient.GetRestorePlan(name);
GetRestorePlanAsync(GetRestorePlanRequest, CallSettings)
public virtual Task<RestorePlan> GetRestorePlanAsync(GetRestorePlanRequest request, CallSettings callSettings = null)Retrieve the details of a single RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRestorePlanRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRestorePlan |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetRestorePlanRequest request = new GetRestorePlanRequest
{
RestorePlanName = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]"),
};
// Make the request
RestorePlan response = await backupForGKEClient.GetRestorePlanAsync(request);
GetRestorePlanAsync(GetRestorePlanRequest, CancellationToken)
public virtual Task<RestorePlan> GetRestorePlanAsync(GetRestorePlanRequest request, CancellationToken cancellationToken)Retrieve the details of a single RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRestorePlanRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRestorePlan |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetRestorePlanRequest request = new GetRestorePlanRequest
{
RestorePlanName = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]"),
};
// Make the request
RestorePlan response = await backupForGKEClient.GetRestorePlanAsync(request);
GetRestorePlanAsync(RestorePlanName, CallSettings)
public virtual Task<RestorePlan> GetRestorePlanAsync(RestorePlanName name, CallSettings callSettings = null)Retrieve the details of a single RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
name |
RestorePlanNameRequired. Fully qualified RestorePlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRestorePlan |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestorePlanName name = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]");
// Make the request
RestorePlan response = await backupForGKEClient.GetRestorePlanAsync(name);
GetRestorePlanAsync(RestorePlanName, CancellationToken)
public virtual Task<RestorePlan> GetRestorePlanAsync(RestorePlanName name, CancellationToken cancellationToken)Retrieve the details of a single RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
name |
RestorePlanNameRequired. Fully qualified RestorePlan name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRestorePlan |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestorePlanName name = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]");
// Make the request
RestorePlan response = await backupForGKEClient.GetRestorePlanAsync(name);
GetRestorePlanAsync(string, CallSettings)
public virtual Task<RestorePlan> GetRestorePlanAsync(string name, CallSettings callSettings = null)Retrieve the details of a single RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestorePlan name.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRestorePlan |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]";
// Make the request
RestorePlan response = await backupForGKEClient.GetRestorePlanAsync(name);
GetRestorePlanAsync(string, CancellationToken)
public virtual Task<RestorePlan> GetRestorePlanAsync(string name, CancellationToken cancellationToken)Retrieve the details of a single RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestorePlan name.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRestorePlan |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]";
// Make the request
RestorePlan response = await backupForGKEClient.GetRestorePlanAsync(name);
GetRestorePlanBinding(GetRestorePlanBindingRequest, CallSettings)
public virtual RestorePlanBinding GetRestorePlanBinding(GetRestorePlanBindingRequest request, CallSettings callSettings = null)Retrieve the details of a single RestorePlanBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRestorePlanBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RestorePlanBinding |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
GetRestorePlanBindingRequest request = new GetRestorePlanBindingRequest
{
RestorePlanBindingName = RestorePlanBindingName.FromProjectLocationRestoreChannelRestorePlanBinding("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]", "[RESTORE_PLAN_BINDING]"),
};
// Make the request
RestorePlanBinding response = backupForGKEClient.GetRestorePlanBinding(request);
GetRestorePlanBinding(RestorePlanBindingName, CallSettings)
public virtual RestorePlanBinding GetRestorePlanBinding(RestorePlanBindingName name, CallSettings callSettings = null)Retrieve the details of a single RestorePlanBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RestorePlanBindingNameRequired. Fully qualified RestorePlanBinding name.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RestorePlanBinding |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
RestorePlanBindingName name = RestorePlanBindingName.FromProjectLocationRestoreChannelRestorePlanBinding("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]", "[RESTORE_PLAN_BINDING]");
// Make the request
RestorePlanBinding response = backupForGKEClient.GetRestorePlanBinding(name);
GetRestorePlanBinding(string, CallSettings)
public virtual RestorePlanBinding GetRestorePlanBinding(string name, CallSettings callSettings = null)Retrieve the details of a single RestorePlanBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestorePlanBinding name.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RestorePlanBinding |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restoreChannels/[RESTORE_CHANNEL]/restorePlanBindings/[RESTORE_PLAN_BINDING]";
// Make the request
RestorePlanBinding response = backupForGKEClient.GetRestorePlanBinding(name);
GetRestorePlanBindingAsync(GetRestorePlanBindingRequest, CallSettings)
public virtual Task<RestorePlanBinding> GetRestorePlanBindingAsync(GetRestorePlanBindingRequest request, CallSettings callSettings = null)Retrieve the details of a single RestorePlanBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRestorePlanBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRestorePlanBinding |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetRestorePlanBindingRequest request = new GetRestorePlanBindingRequest
{
RestorePlanBindingName = RestorePlanBindingName.FromProjectLocationRestoreChannelRestorePlanBinding("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]", "[RESTORE_PLAN_BINDING]"),
};
// Make the request
RestorePlanBinding response = await backupForGKEClient.GetRestorePlanBindingAsync(request);
GetRestorePlanBindingAsync(GetRestorePlanBindingRequest, CancellationToken)
public virtual Task<RestorePlanBinding> GetRestorePlanBindingAsync(GetRestorePlanBindingRequest request, CancellationToken cancellationToken)Retrieve the details of a single RestorePlanBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRestorePlanBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRestorePlanBinding |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetRestorePlanBindingRequest request = new GetRestorePlanBindingRequest
{
RestorePlanBindingName = RestorePlanBindingName.FromProjectLocationRestoreChannelRestorePlanBinding("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]", "[RESTORE_PLAN_BINDING]"),
};
// Make the request
RestorePlanBinding response = await backupForGKEClient.GetRestorePlanBindingAsync(request);
GetRestorePlanBindingAsync(RestorePlanBindingName, CallSettings)
public virtual Task<RestorePlanBinding> GetRestorePlanBindingAsync(RestorePlanBindingName name, CallSettings callSettings = null)Retrieve the details of a single RestorePlanBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RestorePlanBindingNameRequired. Fully qualified RestorePlanBinding name.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRestorePlanBinding |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestorePlanBindingName name = RestorePlanBindingName.FromProjectLocationRestoreChannelRestorePlanBinding("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]", "[RESTORE_PLAN_BINDING]");
// Make the request
RestorePlanBinding response = await backupForGKEClient.GetRestorePlanBindingAsync(name);
GetRestorePlanBindingAsync(RestorePlanBindingName, CancellationToken)
public virtual Task<RestorePlanBinding> GetRestorePlanBindingAsync(RestorePlanBindingName name, CancellationToken cancellationToken)Retrieve the details of a single RestorePlanBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RestorePlanBindingNameRequired. Fully qualified RestorePlanBinding name.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRestorePlanBinding |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestorePlanBindingName name = RestorePlanBindingName.FromProjectLocationRestoreChannelRestorePlanBinding("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]", "[RESTORE_PLAN_BINDING]");
// Make the request
RestorePlanBinding response = await backupForGKEClient.GetRestorePlanBindingAsync(name);
GetRestorePlanBindingAsync(string, CallSettings)
public virtual Task<RestorePlanBinding> GetRestorePlanBindingAsync(string name, CallSettings callSettings = null)Retrieve the details of a single RestorePlanBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestorePlanBinding name.
Format:
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRestorePlanBinding |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restoreChannels/[RESTORE_CHANNEL]/restorePlanBindings/[RESTORE_PLAN_BINDING]";
// Make the request
RestorePlanBinding response = await backupForGKEClient.GetRestorePlanBindingAsync(name);
GetRestorePlanBindingAsync(string, CancellationToken)
public virtual Task<RestorePlanBinding> GetRestorePlanBindingAsync(string name, CancellationToken cancellationToken)Retrieve the details of a single RestorePlanBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Fully qualified RestorePlanBinding name.
Format:
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRestorePlanBinding |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restoreChannels/[RESTORE_CHANNEL]/restorePlanBindings/[RESTORE_PLAN_BINDING]";
// Make the request
RestorePlanBinding response = await backupForGKEClient.GetRestorePlanBindingAsync(name);
GetVolumeBackup(GetVolumeBackupRequest, CallSettings)
public virtual VolumeBackup GetVolumeBackup(GetVolumeBackupRequest request, CallSettings callSettings = null)Retrieve the details of a single VolumeBackup.
| Parameters | |
|---|---|
| Name | Description |
request |
GetVolumeBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
VolumeBackup |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
GetVolumeBackupRequest request = new GetVolumeBackupRequest
{
VolumeBackupName = VolumeBackupName.FromProjectLocationBackupPlanBackupVolumeBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]", "[VOLUME_BACKUP]"),
};
// Make the request
VolumeBackup response = backupForGKEClient.GetVolumeBackup(request);
GetVolumeBackup(VolumeBackupName, CallSettings)
public virtual VolumeBackup GetVolumeBackup(VolumeBackupName name, CallSettings callSettings = null)Retrieve the details of a single VolumeBackup.
| Parameters | |
|---|---|
| Name | Description |
name |
VolumeBackupNameRequired. Full name of the VolumeBackup resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
VolumeBackup |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
VolumeBackupName name = VolumeBackupName.FromProjectLocationBackupPlanBackupVolumeBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]", "[VOLUME_BACKUP]");
// Make the request
VolumeBackup response = backupForGKEClient.GetVolumeBackup(name);
GetVolumeBackup(string, CallSettings)
public virtual VolumeBackup GetVolumeBackup(string name, CallSettings callSettings = null)Retrieve the details of a single VolumeBackup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full name of the VolumeBackup resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
VolumeBackup |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]/volumeBackups/[VOLUME_BACKUP]";
// Make the request
VolumeBackup response = backupForGKEClient.GetVolumeBackup(name);
GetVolumeBackupAsync(GetVolumeBackupRequest, CallSettings)
public virtual Task<VolumeBackup> GetVolumeBackupAsync(GetVolumeBackupRequest request, CallSettings callSettings = null)Retrieve the details of a single VolumeBackup.
| Parameters | |
|---|---|
| Name | Description |
request |
GetVolumeBackupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskVolumeBackup |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetVolumeBackupRequest request = new GetVolumeBackupRequest
{
VolumeBackupName = VolumeBackupName.FromProjectLocationBackupPlanBackupVolumeBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]", "[VOLUME_BACKUP]"),
};
// Make the request
VolumeBackup response = await backupForGKEClient.GetVolumeBackupAsync(request);
GetVolumeBackupAsync(GetVolumeBackupRequest, CancellationToken)
public virtual Task<VolumeBackup> GetVolumeBackupAsync(GetVolumeBackupRequest request, CancellationToken cancellationToken)Retrieve the details of a single VolumeBackup.
| Parameters | |
|---|---|
| Name | Description |
request |
GetVolumeBackupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskVolumeBackup |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetVolumeBackupRequest request = new GetVolumeBackupRequest
{
VolumeBackupName = VolumeBackupName.FromProjectLocationBackupPlanBackupVolumeBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]", "[VOLUME_BACKUP]"),
};
// Make the request
VolumeBackup response = await backupForGKEClient.GetVolumeBackupAsync(request);
GetVolumeBackupAsync(VolumeBackupName, CallSettings)
public virtual Task<VolumeBackup> GetVolumeBackupAsync(VolumeBackupName name, CallSettings callSettings = null)Retrieve the details of a single VolumeBackup.
| Parameters | |
|---|---|
| Name | Description |
name |
VolumeBackupNameRequired. Full name of the VolumeBackup resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskVolumeBackup |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
VolumeBackupName name = VolumeBackupName.FromProjectLocationBackupPlanBackupVolumeBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]", "[VOLUME_BACKUP]");
// Make the request
VolumeBackup response = await backupForGKEClient.GetVolumeBackupAsync(name);
GetVolumeBackupAsync(VolumeBackupName, CancellationToken)
public virtual Task<VolumeBackup> GetVolumeBackupAsync(VolumeBackupName name, CancellationToken cancellationToken)Retrieve the details of a single VolumeBackup.
| Parameters | |
|---|---|
| Name | Description |
name |
VolumeBackupNameRequired. Full name of the VolumeBackup resource.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskVolumeBackup |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
VolumeBackupName name = VolumeBackupName.FromProjectLocationBackupPlanBackupVolumeBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]", "[VOLUME_BACKUP]");
// Make the request
VolumeBackup response = await backupForGKEClient.GetVolumeBackupAsync(name);
GetVolumeBackupAsync(string, CallSettings)
public virtual Task<VolumeBackup> GetVolumeBackupAsync(string name, CallSettings callSettings = null)Retrieve the details of a single VolumeBackup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full name of the VolumeBackup resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskVolumeBackup |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]/volumeBackups/[VOLUME_BACKUP]";
// Make the request
VolumeBackup response = await backupForGKEClient.GetVolumeBackupAsync(name);
GetVolumeBackupAsync(string, CancellationToken)
public virtual Task<VolumeBackup> GetVolumeBackupAsync(string name, CancellationToken cancellationToken)Retrieve the details of a single VolumeBackup.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full name of the VolumeBackup resource.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskVolumeBackup |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]/volumeBackups/[VOLUME_BACKUP]";
// Make the request
VolumeBackup response = await backupForGKEClient.GetVolumeBackupAsync(name);
GetVolumeRestore(GetVolumeRestoreRequest, CallSettings)
public virtual VolumeRestore GetVolumeRestore(GetVolumeRestoreRequest request, CallSettings callSettings = null)Retrieve the details of a single VolumeRestore.
| Parameters | |
|---|---|
| Name | Description |
request |
GetVolumeRestoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
VolumeRestore |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
GetVolumeRestoreRequest request = new GetVolumeRestoreRequest
{
VolumeRestoreName = VolumeRestoreName.FromProjectLocationRestorePlanRestoreVolumeRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]", "[VOLUME_RESTORE]"),
};
// Make the request
VolumeRestore response = backupForGKEClient.GetVolumeRestore(request);
GetVolumeRestore(VolumeRestoreName, CallSettings)
public virtual VolumeRestore GetVolumeRestore(VolumeRestoreName name, CallSettings callSettings = null)Retrieve the details of a single VolumeRestore.
| Parameters | |
|---|---|
| Name | Description |
name |
VolumeRestoreNameRequired. Full name of the VolumeRestore resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
VolumeRestore |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
VolumeRestoreName name = VolumeRestoreName.FromProjectLocationRestorePlanRestoreVolumeRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]", "[VOLUME_RESTORE]");
// Make the request
VolumeRestore response = backupForGKEClient.GetVolumeRestore(name);
GetVolumeRestore(string, CallSettings)
public virtual VolumeRestore GetVolumeRestore(string name, CallSettings callSettings = null)Retrieve the details of a single VolumeRestore.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full name of the VolumeRestore resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
VolumeRestore |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]/restores/[RESTORE]/volumeRestores/[VOLUME_RESTORE]";
// Make the request
VolumeRestore response = backupForGKEClient.GetVolumeRestore(name);
GetVolumeRestoreAsync(GetVolumeRestoreRequest, CallSettings)
public virtual Task<VolumeRestore> GetVolumeRestoreAsync(GetVolumeRestoreRequest request, CallSettings callSettings = null)Retrieve the details of a single VolumeRestore.
| Parameters | |
|---|---|
| Name | Description |
request |
GetVolumeRestoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskVolumeRestore |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetVolumeRestoreRequest request = new GetVolumeRestoreRequest
{
VolumeRestoreName = VolumeRestoreName.FromProjectLocationRestorePlanRestoreVolumeRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]", "[VOLUME_RESTORE]"),
};
// Make the request
VolumeRestore response = await backupForGKEClient.GetVolumeRestoreAsync(request);
GetVolumeRestoreAsync(GetVolumeRestoreRequest, CancellationToken)
public virtual Task<VolumeRestore> GetVolumeRestoreAsync(GetVolumeRestoreRequest request, CancellationToken cancellationToken)Retrieve the details of a single VolumeRestore.
| Parameters | |
|---|---|
| Name | Description |
request |
GetVolumeRestoreRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskVolumeRestore |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
GetVolumeRestoreRequest request = new GetVolumeRestoreRequest
{
VolumeRestoreName = VolumeRestoreName.FromProjectLocationRestorePlanRestoreVolumeRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]", "[VOLUME_RESTORE]"),
};
// Make the request
VolumeRestore response = await backupForGKEClient.GetVolumeRestoreAsync(request);
GetVolumeRestoreAsync(VolumeRestoreName, CallSettings)
public virtual Task<VolumeRestore> GetVolumeRestoreAsync(VolumeRestoreName name, CallSettings callSettings = null)Retrieve the details of a single VolumeRestore.
| Parameters | |
|---|---|
| Name | Description |
name |
VolumeRestoreNameRequired. Full name of the VolumeRestore resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskVolumeRestore |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
VolumeRestoreName name = VolumeRestoreName.FromProjectLocationRestorePlanRestoreVolumeRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]", "[VOLUME_RESTORE]");
// Make the request
VolumeRestore response = await backupForGKEClient.GetVolumeRestoreAsync(name);
GetVolumeRestoreAsync(VolumeRestoreName, CancellationToken)
public virtual Task<VolumeRestore> GetVolumeRestoreAsync(VolumeRestoreName name, CancellationToken cancellationToken)Retrieve the details of a single VolumeRestore.
| Parameters | |
|---|---|
| Name | Description |
name |
VolumeRestoreNameRequired. Full name of the VolumeRestore resource.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskVolumeRestore |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
VolumeRestoreName name = VolumeRestoreName.FromProjectLocationRestorePlanRestoreVolumeRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]", "[VOLUME_RESTORE]");
// Make the request
VolumeRestore response = await backupForGKEClient.GetVolumeRestoreAsync(name);
GetVolumeRestoreAsync(string, CallSettings)
public virtual Task<VolumeRestore> GetVolumeRestoreAsync(string name, CallSettings callSettings = null)Retrieve the details of a single VolumeRestore.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full name of the VolumeRestore resource.
Format: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskVolumeRestore |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]/restores/[RESTORE]/volumeRestores/[VOLUME_RESTORE]";
// Make the request
VolumeRestore response = await backupForGKEClient.GetVolumeRestoreAsync(name);
GetVolumeRestoreAsync(string, CancellationToken)
public virtual Task<VolumeRestore> GetVolumeRestoreAsync(string name, CancellationToken cancellationToken)Retrieve the details of a single VolumeRestore.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Full name of the VolumeRestore resource.
Format: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskVolumeRestore |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]/restores/[RESTORE]/volumeRestores/[VOLUME_RESTORE]";
// Make the request
VolumeRestore response = await backupForGKEClient.GetVolumeRestoreAsync(name);
ListBackupChannels(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListBackupChannelsResponse, BackupChannel> ListBackupChannels(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists BackupChannels in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location that contains the BackupChannels to list.
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 |
PagedEnumerableListBackupChannelsResponseBackupChannel |
A pageable sequence of BackupChannel resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListBackupChannelsResponse, BackupChannel> response = backupForGKEClient.ListBackupChannels(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackupChannel 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 (ListBackupChannelsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupChannel 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<BackupChannel> 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 (BackupChannel 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;
ListBackupChannels(ListBackupChannelsRequest, CallSettings)
public virtual PagedEnumerable<ListBackupChannelsResponse, BackupChannel> ListBackupChannels(ListBackupChannelsRequest request, CallSettings callSettings = null)Lists BackupChannels in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBackupChannelsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBackupChannelsResponseBackupChannel |
A pageable sequence of BackupChannel resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
ListBackupChannelsRequest request = new ListBackupChannelsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListBackupChannelsResponse, BackupChannel> response = backupForGKEClient.ListBackupChannels(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackupChannel 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 (ListBackupChannelsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupChannel 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<BackupChannel> 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 (BackupChannel 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;
ListBackupChannels(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListBackupChannelsResponse, BackupChannel> ListBackupChannels(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists BackupChannels in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location that contains the BackupChannels to list.
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 |
PagedEnumerableListBackupChannelsResponseBackupChannel |
A pageable sequence of BackupChannel resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListBackupChannelsResponse, BackupChannel> response = backupForGKEClient.ListBackupChannels(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackupChannel 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 (ListBackupChannelsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupChannel 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<BackupChannel> 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 (BackupChannel 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;
ListBackupChannelsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBackupChannelsResponse, BackupChannel> ListBackupChannelsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists BackupChannels in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location that contains the BackupChannels to list.
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 |
PagedAsyncEnumerableListBackupChannelsResponseBackupChannel |
A pageable asynchronous sequence of BackupChannel resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListBackupChannelsResponse, BackupChannel> response = backupForGKEClient.ListBackupChannelsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupChannel 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((ListBackupChannelsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupChannel 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<BackupChannel> 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 (BackupChannel 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;
ListBackupChannelsAsync(ListBackupChannelsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListBackupChannelsResponse, BackupChannel> ListBackupChannelsAsync(ListBackupChannelsRequest request, CallSettings callSettings = null)Lists BackupChannels in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBackupChannelsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBackupChannelsResponseBackupChannel |
A pageable asynchronous sequence of BackupChannel resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
ListBackupChannelsRequest request = new ListBackupChannelsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListBackupChannelsResponse, BackupChannel> response = backupForGKEClient.ListBackupChannelsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupChannel 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((ListBackupChannelsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupChannel 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<BackupChannel> 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 (BackupChannel 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;
ListBackupChannelsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBackupChannelsResponse, BackupChannel> ListBackupChannelsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists BackupChannels in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location that contains the BackupChannels to list.
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 |
PagedAsyncEnumerableListBackupChannelsResponseBackupChannel |
A pageable asynchronous sequence of BackupChannel resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListBackupChannelsResponse, BackupChannel> response = backupForGKEClient.ListBackupChannelsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupChannel 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((ListBackupChannelsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupChannel 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<BackupChannel> 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 (BackupChannel 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;
ListBackupPlanBindings(BackupChannelName, string, int?, CallSettings)
public virtual PagedEnumerable<ListBackupPlanBindingsResponse, BackupPlanBinding> ListBackupPlanBindings(BackupChannelName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists BackupPlanBindings in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
BackupChannelNameRequired. The BackupChannel that contains the BackupPlanBindings to list.
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 |
PagedEnumerableListBackupPlanBindingsResponseBackupPlanBinding |
A pageable sequence of BackupPlanBinding resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupChannelName parent = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]");
// Make the request
PagedEnumerable<ListBackupPlanBindingsResponse, BackupPlanBinding> response = backupForGKEClient.ListBackupPlanBindings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackupPlanBinding 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 (ListBackupPlanBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupPlanBinding 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<BackupPlanBinding> 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 (BackupPlanBinding 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;
ListBackupPlanBindings(ListBackupPlanBindingsRequest, CallSettings)
public virtual PagedEnumerable<ListBackupPlanBindingsResponse, BackupPlanBinding> ListBackupPlanBindings(ListBackupPlanBindingsRequest request, CallSettings callSettings = null)Lists BackupPlanBindings in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBackupPlanBindingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBackupPlanBindingsResponseBackupPlanBinding |
A pageable sequence of BackupPlanBinding resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
ListBackupPlanBindingsRequest request = new ListBackupPlanBindingsRequest
{
ParentAsBackupChannelName = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListBackupPlanBindingsResponse, BackupPlanBinding> response = backupForGKEClient.ListBackupPlanBindings(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackupPlanBinding 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 (ListBackupPlanBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupPlanBinding 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<BackupPlanBinding> 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 (BackupPlanBinding 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;
ListBackupPlanBindings(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListBackupPlanBindingsResponse, BackupPlanBinding> ListBackupPlanBindings(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists BackupPlanBindings in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The BackupChannel that contains the BackupPlanBindings to list.
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 |
PagedEnumerableListBackupPlanBindingsResponseBackupPlanBinding |
A pageable sequence of BackupPlanBinding resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupChannels/[BACKUP_CHANNEL]";
// Make the request
PagedEnumerable<ListBackupPlanBindingsResponse, BackupPlanBinding> response = backupForGKEClient.ListBackupPlanBindings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackupPlanBinding 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 (ListBackupPlanBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupPlanBinding 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<BackupPlanBinding> 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 (BackupPlanBinding 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;
ListBackupPlanBindingsAsync(BackupChannelName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBackupPlanBindingsResponse, BackupPlanBinding> ListBackupPlanBindingsAsync(BackupChannelName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists BackupPlanBindings in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
BackupChannelNameRequired. The BackupChannel that contains the BackupPlanBindings to list.
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 |
PagedAsyncEnumerableListBackupPlanBindingsResponseBackupPlanBinding |
A pageable asynchronous sequence of BackupPlanBinding resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupChannelName parent = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]");
// Make the request
PagedAsyncEnumerable<ListBackupPlanBindingsResponse, BackupPlanBinding> response = backupForGKEClient.ListBackupPlanBindingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupPlanBinding 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((ListBackupPlanBindingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupPlanBinding 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<BackupPlanBinding> 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 (BackupPlanBinding 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;
ListBackupPlanBindingsAsync(ListBackupPlanBindingsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListBackupPlanBindingsResponse, BackupPlanBinding> ListBackupPlanBindingsAsync(ListBackupPlanBindingsRequest request, CallSettings callSettings = null)Lists BackupPlanBindings in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBackupPlanBindingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBackupPlanBindingsResponseBackupPlanBinding |
A pageable asynchronous sequence of BackupPlanBinding resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
ListBackupPlanBindingsRequest request = new ListBackupPlanBindingsRequest
{
ParentAsBackupChannelName = BackupChannelName.FromProjectLocationBackupChannel("[PROJECT]", "[LOCATION]", "[BACKUP_CHANNEL]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListBackupPlanBindingsResponse, BackupPlanBinding> response = backupForGKEClient.ListBackupPlanBindingsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupPlanBinding 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((ListBackupPlanBindingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupPlanBinding 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<BackupPlanBinding> 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 (BackupPlanBinding 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;
ListBackupPlanBindingsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBackupPlanBindingsResponse, BackupPlanBinding> ListBackupPlanBindingsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists BackupPlanBindings in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The BackupChannel that contains the BackupPlanBindings to list.
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 |
PagedAsyncEnumerableListBackupPlanBindingsResponseBackupPlanBinding |
A pageable asynchronous sequence of BackupPlanBinding resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupChannels/[BACKUP_CHANNEL]";
// Make the request
PagedAsyncEnumerable<ListBackupPlanBindingsResponse, BackupPlanBinding> response = backupForGKEClient.ListBackupPlanBindingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupPlanBinding 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((ListBackupPlanBindingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupPlanBinding 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<BackupPlanBinding> 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 (BackupPlanBinding 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;
ListBackupPlans(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListBackupPlansResponse, BackupPlan> ListBackupPlans(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists BackupPlans in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location that contains the BackupPlans to list.
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 |
PagedEnumerableListBackupPlansResponseBackupPlan |
A pageable sequence of BackupPlan resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListBackupPlansResponse, BackupPlan> response = backupForGKEClient.ListBackupPlans(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackupPlan 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 (ListBackupPlansResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupPlan 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<BackupPlan> 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 (BackupPlan 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;
ListBackupPlans(ListBackupPlansRequest, CallSettings)
public virtual PagedEnumerable<ListBackupPlansResponse, BackupPlan> ListBackupPlans(ListBackupPlansRequest request, CallSettings callSettings = null)Lists BackupPlans in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBackupPlansRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBackupPlansResponseBackupPlan |
A pageable sequence of BackupPlan resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
ListBackupPlansRequest request = new ListBackupPlansRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListBackupPlansResponse, BackupPlan> response = backupForGKEClient.ListBackupPlans(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackupPlan 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 (ListBackupPlansResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupPlan 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<BackupPlan> 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 (BackupPlan 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;
ListBackupPlans(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListBackupPlansResponse, BackupPlan> ListBackupPlans(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists BackupPlans in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location that contains the BackupPlans to list.
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 |
PagedEnumerableListBackupPlansResponseBackupPlan |
A pageable sequence of BackupPlan resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListBackupPlansResponse, BackupPlan> response = backupForGKEClient.ListBackupPlans(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (BackupPlan 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 (ListBackupPlansResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupPlan 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<BackupPlan> 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 (BackupPlan 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;
ListBackupPlansAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBackupPlansResponse, BackupPlan> ListBackupPlansAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists BackupPlans in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location that contains the BackupPlans to list.
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 |
PagedAsyncEnumerableListBackupPlansResponseBackupPlan |
A pageable asynchronous sequence of BackupPlan resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListBackupPlansResponse, BackupPlan> response = backupForGKEClient.ListBackupPlansAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupPlan 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((ListBackupPlansResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupPlan 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<BackupPlan> 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 (BackupPlan 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;
ListBackupPlansAsync(ListBackupPlansRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListBackupPlansResponse, BackupPlan> ListBackupPlansAsync(ListBackupPlansRequest request, CallSettings callSettings = null)Lists BackupPlans in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBackupPlansRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBackupPlansResponseBackupPlan |
A pageable asynchronous sequence of BackupPlan resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
ListBackupPlansRequest request = new ListBackupPlansRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListBackupPlansResponse, BackupPlan> response = backupForGKEClient.ListBackupPlansAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupPlan 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((ListBackupPlansResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupPlan 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<BackupPlan> 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 (BackupPlan 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;
ListBackupPlansAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBackupPlansResponse, BackupPlan> ListBackupPlansAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists BackupPlans in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location that contains the BackupPlans to list.
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 |
PagedAsyncEnumerableListBackupPlansResponseBackupPlan |
A pageable asynchronous sequence of BackupPlan resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListBackupPlansResponse, BackupPlan> response = backupForGKEClient.ListBackupPlansAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BackupPlan 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((ListBackupPlansResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (BackupPlan 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<BackupPlan> 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 (BackupPlan 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(BackupPlanName, string, int?, CallSettings)
public virtual PagedEnumerable<ListBackupsResponse, Backup> ListBackups(BackupPlanName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the Backups for a given BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
BackupPlanNameRequired. The BackupPlan that contains the Backups to list.
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
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupPlanName parent = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
// Make the request
PagedEnumerable<ListBackupsResponse, Backup> response = backupForGKEClient.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)Lists the Backups for a given BackupPlan.
| 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
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
ListBackupsRequest request = new ListBackupsRequest
{
ParentAsBackupPlanName = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]"),
Filter = "",
OrderBy = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<ListBackupsResponse, Backup> response = backupForGKEClient.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)Lists the Backups for a given BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The BackupPlan that contains the Backups to list.
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
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]";
// Make the request
PagedEnumerable<ListBackupsResponse, Backup> response = backupForGKEClient.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(BackupPlanName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBackupsResponse, Backup> ListBackupsAsync(BackupPlanName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the Backups for a given BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
BackupPlanNameRequired. The BackupPlan that contains the Backups to list.
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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupPlanName parent = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]");
// Make the request
PagedAsyncEnumerable<ListBackupsResponse, Backup> response = backupForGKEClient.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)Lists the Backups for a given BackupPlan.
| 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
ListBackupsRequest request = new ListBackupsRequest
{
ParentAsBackupPlanName = BackupPlanName.FromProjectLocationBackupPlan("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]"),
Filter = "",
OrderBy = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<ListBackupsResponse, Backup> response = backupForGKEClient.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)Lists the Backups for a given BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The BackupPlan that contains the Backups to list.
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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]";
// Make the request
PagedAsyncEnumerable<ListBackupsResponse, Backup> response = backupForGKEClient.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;
ListRestoreChannels(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListRestoreChannelsResponse, RestoreChannel> ListRestoreChannels(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists RestoreChannels in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location that contains the RestoreChannels to list.
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 |
PagedEnumerableListRestoreChannelsResponseRestoreChannel |
A pageable sequence of RestoreChannel resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListRestoreChannelsResponse, RestoreChannel> response = backupForGKEClient.ListRestoreChannels(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (RestoreChannel 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 (ListRestoreChannelsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestoreChannel 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<RestoreChannel> 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 (RestoreChannel 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;
ListRestoreChannels(ListRestoreChannelsRequest, CallSettings)
public virtual PagedEnumerable<ListRestoreChannelsResponse, RestoreChannel> ListRestoreChannels(ListRestoreChannelsRequest request, CallSettings callSettings = null)Lists RestoreChannels in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRestoreChannelsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListRestoreChannelsResponseRestoreChannel |
A pageable sequence of RestoreChannel resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
ListRestoreChannelsRequest request = new ListRestoreChannelsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListRestoreChannelsResponse, RestoreChannel> response = backupForGKEClient.ListRestoreChannels(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (RestoreChannel 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 (ListRestoreChannelsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestoreChannel 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<RestoreChannel> 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 (RestoreChannel 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;
ListRestoreChannels(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListRestoreChannelsResponse, RestoreChannel> ListRestoreChannels(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists RestoreChannels in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location that contains the RestoreChannels to list.
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 |
PagedEnumerableListRestoreChannelsResponseRestoreChannel |
A pageable sequence of RestoreChannel resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListRestoreChannelsResponse, RestoreChannel> response = backupForGKEClient.ListRestoreChannels(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (RestoreChannel 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 (ListRestoreChannelsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestoreChannel 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<RestoreChannel> 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 (RestoreChannel 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;
ListRestoreChannelsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRestoreChannelsResponse, RestoreChannel> ListRestoreChannelsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists RestoreChannels in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location that contains the RestoreChannels to list.
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 |
PagedAsyncEnumerableListRestoreChannelsResponseRestoreChannel |
A pageable asynchronous sequence of RestoreChannel resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListRestoreChannelsResponse, RestoreChannel> response = backupForGKEClient.ListRestoreChannelsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RestoreChannel 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((ListRestoreChannelsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestoreChannel 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<RestoreChannel> 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 (RestoreChannel 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;
ListRestoreChannelsAsync(ListRestoreChannelsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListRestoreChannelsResponse, RestoreChannel> ListRestoreChannelsAsync(ListRestoreChannelsRequest request, CallSettings callSettings = null)Lists RestoreChannels in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRestoreChannelsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListRestoreChannelsResponseRestoreChannel |
A pageable asynchronous sequence of RestoreChannel resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
ListRestoreChannelsRequest request = new ListRestoreChannelsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListRestoreChannelsResponse, RestoreChannel> response = backupForGKEClient.ListRestoreChannelsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RestoreChannel 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((ListRestoreChannelsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestoreChannel 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<RestoreChannel> 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 (RestoreChannel 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;
ListRestoreChannelsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRestoreChannelsResponse, RestoreChannel> ListRestoreChannelsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists RestoreChannels in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location that contains the RestoreChannels to list.
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 |
PagedAsyncEnumerableListRestoreChannelsResponseRestoreChannel |
A pageable asynchronous sequence of RestoreChannel resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListRestoreChannelsResponse, RestoreChannel> response = backupForGKEClient.ListRestoreChannelsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RestoreChannel 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((ListRestoreChannelsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestoreChannel 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<RestoreChannel> 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 (RestoreChannel 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;
ListRestorePlanBindings(ListRestorePlanBindingsRequest, CallSettings)
public virtual PagedEnumerable<ListRestorePlanBindingsResponse, RestorePlanBinding> ListRestorePlanBindings(ListRestorePlanBindingsRequest request, CallSettings callSettings = null)Lists RestorePlanBindings in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRestorePlanBindingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListRestorePlanBindingsResponseRestorePlanBinding |
A pageable sequence of RestorePlanBinding resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
ListRestorePlanBindingsRequest request = new ListRestorePlanBindingsRequest
{
ParentAsRestoreChannelName = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListRestorePlanBindingsResponse, RestorePlanBinding> response = backupForGKEClient.ListRestorePlanBindings(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (RestorePlanBinding 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 (ListRestorePlanBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestorePlanBinding 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<RestorePlanBinding> 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 (RestorePlanBinding 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;
ListRestorePlanBindings(RestoreChannelName, string, int?, CallSettings)
public virtual PagedEnumerable<ListRestorePlanBindingsResponse, RestorePlanBinding> ListRestorePlanBindings(RestoreChannelName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists RestorePlanBindings in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
RestoreChannelNameRequired. The RestoreChannel that contains the ListRestorePlanBindings to
list. 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 |
PagedEnumerableListRestorePlanBindingsResponseRestorePlanBinding |
A pageable sequence of RestorePlanBinding resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
RestoreChannelName parent = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]");
// Make the request
PagedEnumerable<ListRestorePlanBindingsResponse, RestorePlanBinding> response = backupForGKEClient.ListRestorePlanBindings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (RestorePlanBinding 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 (ListRestorePlanBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestorePlanBinding 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<RestorePlanBinding> 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 (RestorePlanBinding 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;
ListRestorePlanBindings(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListRestorePlanBindingsResponse, RestorePlanBinding> ListRestorePlanBindings(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists RestorePlanBindings in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The RestoreChannel that contains the ListRestorePlanBindings to
list. 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 |
PagedEnumerableListRestorePlanBindingsResponseRestorePlanBinding |
A pageable sequence of RestorePlanBinding resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/restoreChannels/[RESTORE_CHANNEL]";
// Make the request
PagedEnumerable<ListRestorePlanBindingsResponse, RestorePlanBinding> response = backupForGKEClient.ListRestorePlanBindings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (RestorePlanBinding 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 (ListRestorePlanBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestorePlanBinding 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<RestorePlanBinding> 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 (RestorePlanBinding 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;
ListRestorePlanBindingsAsync(ListRestorePlanBindingsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListRestorePlanBindingsResponse, RestorePlanBinding> ListRestorePlanBindingsAsync(ListRestorePlanBindingsRequest request, CallSettings callSettings = null)Lists RestorePlanBindings in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRestorePlanBindingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListRestorePlanBindingsResponseRestorePlanBinding |
A pageable asynchronous sequence of RestorePlanBinding resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
ListRestorePlanBindingsRequest request = new ListRestorePlanBindingsRequest
{
ParentAsRestoreChannelName = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListRestorePlanBindingsResponse, RestorePlanBinding> response = backupForGKEClient.ListRestorePlanBindingsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RestorePlanBinding 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((ListRestorePlanBindingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestorePlanBinding 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<RestorePlanBinding> 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 (RestorePlanBinding 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;
ListRestorePlanBindingsAsync(RestoreChannelName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRestorePlanBindingsResponse, RestorePlanBinding> ListRestorePlanBindingsAsync(RestoreChannelName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists RestorePlanBindings in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
RestoreChannelNameRequired. The RestoreChannel that contains the ListRestorePlanBindings to
list. 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 |
PagedAsyncEnumerableListRestorePlanBindingsResponseRestorePlanBinding |
A pageable asynchronous sequence of RestorePlanBinding resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestoreChannelName parent = RestoreChannelName.FromProjectLocationRestoreChannel("[PROJECT]", "[LOCATION]", "[RESTORE_CHANNEL]");
// Make the request
PagedAsyncEnumerable<ListRestorePlanBindingsResponse, RestorePlanBinding> response = backupForGKEClient.ListRestorePlanBindingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RestorePlanBinding 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((ListRestorePlanBindingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestorePlanBinding 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<RestorePlanBinding> 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 (RestorePlanBinding 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;
ListRestorePlanBindingsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRestorePlanBindingsResponse, RestorePlanBinding> ListRestorePlanBindingsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists RestorePlanBindings in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The RestoreChannel that contains the ListRestorePlanBindings to
list. 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 |
PagedAsyncEnumerableListRestorePlanBindingsResponseRestorePlanBinding |
A pageable asynchronous sequence of RestorePlanBinding resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/restoreChannels/[RESTORE_CHANNEL]";
// Make the request
PagedAsyncEnumerable<ListRestorePlanBindingsResponse, RestorePlanBinding> response = backupForGKEClient.ListRestorePlanBindingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RestorePlanBinding 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((ListRestorePlanBindingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestorePlanBinding 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<RestorePlanBinding> 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 (RestorePlanBinding 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;
ListRestorePlans(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListRestorePlansResponse, RestorePlan> ListRestorePlans(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists RestorePlans in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location that contains the RestorePlans to list.
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 |
PagedEnumerableListRestorePlansResponseRestorePlan |
A pageable sequence of RestorePlan resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListRestorePlansResponse, RestorePlan> response = backupForGKEClient.ListRestorePlans(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (RestorePlan 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 (ListRestorePlansResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestorePlan 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<RestorePlan> 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 (RestorePlan 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;
ListRestorePlans(ListRestorePlansRequest, CallSettings)
public virtual PagedEnumerable<ListRestorePlansResponse, RestorePlan> ListRestorePlans(ListRestorePlansRequest request, CallSettings callSettings = null)Lists RestorePlans in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRestorePlansRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListRestorePlansResponseRestorePlan |
A pageable sequence of RestorePlan resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
ListRestorePlansRequest request = new ListRestorePlansRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListRestorePlansResponse, RestorePlan> response = backupForGKEClient.ListRestorePlans(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (RestorePlan 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 (ListRestorePlansResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestorePlan 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<RestorePlan> 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 (RestorePlan 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;
ListRestorePlans(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListRestorePlansResponse, RestorePlan> ListRestorePlans(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists RestorePlans in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location that contains the RestorePlans to list.
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 |
PagedEnumerableListRestorePlansResponseRestorePlan |
A pageable sequence of RestorePlan resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListRestorePlansResponse, RestorePlan> response = backupForGKEClient.ListRestorePlans(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (RestorePlan 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 (ListRestorePlansResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestorePlan 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<RestorePlan> 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 (RestorePlan 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;
ListRestorePlansAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRestorePlansResponse, RestorePlan> ListRestorePlansAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists RestorePlans in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The location that contains the RestorePlans to list.
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 |
PagedAsyncEnumerableListRestorePlansResponseRestorePlan |
A pageable asynchronous sequence of RestorePlan resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListRestorePlansResponse, RestorePlan> response = backupForGKEClient.ListRestorePlansAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RestorePlan 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((ListRestorePlansResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestorePlan 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<RestorePlan> 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 (RestorePlan 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;
ListRestorePlansAsync(ListRestorePlansRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListRestorePlansResponse, RestorePlan> ListRestorePlansAsync(ListRestorePlansRequest request, CallSettings callSettings = null)Lists RestorePlans in a given location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRestorePlansRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListRestorePlansResponseRestorePlan |
A pageable asynchronous sequence of RestorePlan resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
ListRestorePlansRequest request = new ListRestorePlansRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListRestorePlansResponse, RestorePlan> response = backupForGKEClient.ListRestorePlansAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RestorePlan 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((ListRestorePlansResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestorePlan 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<RestorePlan> 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 (RestorePlan 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;
ListRestorePlansAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRestorePlansResponse, RestorePlan> ListRestorePlansAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists RestorePlans in a given location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The location that contains the RestorePlans to list.
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 |
PagedAsyncEnumerableListRestorePlansResponseRestorePlan |
A pageable asynchronous sequence of RestorePlan resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListRestorePlansResponse, RestorePlan> response = backupForGKEClient.ListRestorePlansAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RestorePlan 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((ListRestorePlansResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RestorePlan 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<RestorePlan> 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 (RestorePlan 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;
ListRestores(ListRestoresRequest, CallSettings)
public virtual PagedEnumerable<ListRestoresResponse, Restore> ListRestores(ListRestoresRequest request, CallSettings callSettings = null)Lists the Restores for a given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRestoresRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListRestoresResponseRestore |
A pageable sequence of Restore resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
ListRestoresRequest request = new ListRestoresRequest
{
ParentAsRestorePlanName = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListRestoresResponse, Restore> response = backupForGKEClient.ListRestores(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Restore 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 (ListRestoresResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Restore 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<Restore> 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 (Restore 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;
ListRestores(RestorePlanName, string, int?, CallSettings)
public virtual PagedEnumerable<ListRestoresResponse, Restore> ListRestores(RestorePlanName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the Restores for a given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
RestorePlanNameRequired. The RestorePlan that contains the Restores to list.
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 |
PagedEnumerableListRestoresResponseRestore |
A pageable sequence of Restore resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
RestorePlanName parent = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]");
// Make the request
PagedEnumerable<ListRestoresResponse, Restore> response = backupForGKEClient.ListRestores(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Restore 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 (ListRestoresResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Restore 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<Restore> 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 (Restore 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;
ListRestores(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListRestoresResponse, Restore> ListRestores(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the Restores for a given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The RestorePlan that contains the Restores to list.
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 |
PagedEnumerableListRestoresResponseRestore |
A pageable sequence of Restore resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]";
// Make the request
PagedEnumerable<ListRestoresResponse, Restore> response = backupForGKEClient.ListRestores(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Restore 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 (ListRestoresResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Restore 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<Restore> 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 (Restore 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;
ListRestoresAsync(ListRestoresRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListRestoresResponse, Restore> ListRestoresAsync(ListRestoresRequest request, CallSettings callSettings = null)Lists the Restores for a given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRestoresRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListRestoresResponseRestore |
A pageable asynchronous sequence of Restore resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
ListRestoresRequest request = new ListRestoresRequest
{
ParentAsRestorePlanName = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListRestoresResponse, Restore> response = backupForGKEClient.ListRestoresAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Restore 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((ListRestoresResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Restore 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<Restore> 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 (Restore 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;
ListRestoresAsync(RestorePlanName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRestoresResponse, Restore> ListRestoresAsync(RestorePlanName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the Restores for a given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
RestorePlanNameRequired. The RestorePlan that contains the Restores to list.
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 |
PagedAsyncEnumerableListRestoresResponseRestore |
A pageable asynchronous sequence of Restore resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestorePlanName parent = RestorePlanName.FromProjectLocationRestorePlan("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]");
// Make the request
PagedAsyncEnumerable<ListRestoresResponse, Restore> response = backupForGKEClient.ListRestoresAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Restore 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((ListRestoresResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Restore 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<Restore> 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 (Restore 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;
ListRestoresAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRestoresResponse, Restore> ListRestoresAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the Restores for a given RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The RestorePlan that contains the Restores to list.
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 |
PagedAsyncEnumerableListRestoresResponseRestore |
A pageable asynchronous sequence of Restore resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]";
// Make the request
PagedAsyncEnumerable<ListRestoresResponse, Restore> response = backupForGKEClient.ListRestoresAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Restore 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((ListRestoresResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Restore 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<Restore> 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 (Restore 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;
ListVolumeBackups(BackupName, string, int?, CallSettings)
public virtual PagedEnumerable<ListVolumeBackupsResponse, VolumeBackup> ListVolumeBackups(BackupName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the VolumeBackups for a given Backup.
| Parameters | |
|---|---|
| Name | Description |
parent |
BackupNameRequired. The Backup that contains the VolumeBackups to list.
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 |
PagedEnumerableListVolumeBackupsResponseVolumeBackup |
A pageable sequence of VolumeBackup resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupName parent = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]");
// Make the request
PagedEnumerable<ListVolumeBackupsResponse, VolumeBackup> response = backupForGKEClient.ListVolumeBackups(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (VolumeBackup 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 (ListVolumeBackupsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VolumeBackup 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<VolumeBackup> 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 (VolumeBackup 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;
ListVolumeBackups(ListVolumeBackupsRequest, CallSettings)
public virtual PagedEnumerable<ListVolumeBackupsResponse, VolumeBackup> ListVolumeBackups(ListVolumeBackupsRequest request, CallSettings callSettings = null)Lists the VolumeBackups for a given Backup.
| Parameters | |
|---|---|
| Name | Description |
request |
ListVolumeBackupsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListVolumeBackupsResponseVolumeBackup |
A pageable sequence of VolumeBackup resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
ListVolumeBackupsRequest request = new ListVolumeBackupsRequest
{
ParentAsBackupName = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListVolumeBackupsResponse, VolumeBackup> response = backupForGKEClient.ListVolumeBackups(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (VolumeBackup 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 (ListVolumeBackupsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VolumeBackup 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<VolumeBackup> 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 (VolumeBackup 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;
ListVolumeBackups(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListVolumeBackupsResponse, VolumeBackup> ListVolumeBackups(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the VolumeBackups for a given Backup.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The Backup that contains the VolumeBackups to list.
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 |
PagedEnumerableListVolumeBackupsResponseVolumeBackup |
A pageable sequence of VolumeBackup resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]";
// Make the request
PagedEnumerable<ListVolumeBackupsResponse, VolumeBackup> response = backupForGKEClient.ListVolumeBackups(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (VolumeBackup 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 (ListVolumeBackupsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VolumeBackup 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<VolumeBackup> 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 (VolumeBackup 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;
ListVolumeBackupsAsync(BackupName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListVolumeBackupsResponse, VolumeBackup> ListVolumeBackupsAsync(BackupName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the VolumeBackups for a given Backup.
| Parameters | |
|---|---|
| Name | Description |
parent |
BackupNameRequired. The Backup that contains the VolumeBackups to list.
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 |
PagedAsyncEnumerableListVolumeBackupsResponseVolumeBackup |
A pageable asynchronous sequence of VolumeBackup resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupName parent = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]");
// Make the request
PagedAsyncEnumerable<ListVolumeBackupsResponse, VolumeBackup> response = backupForGKEClient.ListVolumeBackupsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((VolumeBackup 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((ListVolumeBackupsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VolumeBackup 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<VolumeBackup> 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 (VolumeBackup 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;
ListVolumeBackupsAsync(ListVolumeBackupsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListVolumeBackupsResponse, VolumeBackup> ListVolumeBackupsAsync(ListVolumeBackupsRequest request, CallSettings callSettings = null)Lists the VolumeBackups for a given Backup.
| Parameters | |
|---|---|
| Name | Description |
request |
ListVolumeBackupsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListVolumeBackupsResponseVolumeBackup |
A pageable asynchronous sequence of VolumeBackup resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
ListVolumeBackupsRequest request = new ListVolumeBackupsRequest
{
ParentAsBackupName = BackupName.FromProjectLocationBackupPlanBackup("[PROJECT]", "[LOCATION]", "[BACKUP_PLAN]", "[BACKUP]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListVolumeBackupsResponse, VolumeBackup> response = backupForGKEClient.ListVolumeBackupsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((VolumeBackup 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((ListVolumeBackupsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VolumeBackup 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<VolumeBackup> 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 (VolumeBackup 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;
ListVolumeBackupsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListVolumeBackupsResponse, VolumeBackup> ListVolumeBackupsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the VolumeBackups for a given Backup.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The Backup that contains the VolumeBackups to list.
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 |
PagedAsyncEnumerableListVolumeBackupsResponseVolumeBackup |
A pageable asynchronous sequence of VolumeBackup resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/backupPlans/[BACKUP_PLAN]/backups/[BACKUP]";
// Make the request
PagedAsyncEnumerable<ListVolumeBackupsResponse, VolumeBackup> response = backupForGKEClient.ListVolumeBackupsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((VolumeBackup 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((ListVolumeBackupsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VolumeBackup 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<VolumeBackup> 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 (VolumeBackup 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;
ListVolumeRestores(ListVolumeRestoresRequest, CallSettings)
public virtual PagedEnumerable<ListVolumeRestoresResponse, VolumeRestore> ListVolumeRestores(ListVolumeRestoresRequest request, CallSettings callSettings = null)Lists the VolumeRestores for a given Restore.
| Parameters | |
|---|---|
| Name | Description |
request |
ListVolumeRestoresRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListVolumeRestoresResponseVolumeRestore |
A pageable sequence of VolumeRestore resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
ListVolumeRestoresRequest request = new ListVolumeRestoresRequest
{
ParentAsRestoreName = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListVolumeRestoresResponse, VolumeRestore> response = backupForGKEClient.ListVolumeRestores(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (VolumeRestore 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 (ListVolumeRestoresResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VolumeRestore 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<VolumeRestore> 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 (VolumeRestore 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;
ListVolumeRestores(RestoreName, string, int?, CallSettings)
public virtual PagedEnumerable<ListVolumeRestoresResponse, VolumeRestore> ListVolumeRestores(RestoreName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the VolumeRestores for a given Restore.
| Parameters | |
|---|---|
| Name | Description |
parent |
RestoreNameRequired. The Restore that contains the VolumeRestores to list.
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 |
PagedEnumerableListVolumeRestoresResponseVolumeRestore |
A pageable sequence of VolumeRestore resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
RestoreName parent = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]");
// Make the request
PagedEnumerable<ListVolumeRestoresResponse, VolumeRestore> response = backupForGKEClient.ListVolumeRestores(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (VolumeRestore 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 (ListVolumeRestoresResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VolumeRestore 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<VolumeRestore> 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 (VolumeRestore 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;
ListVolumeRestores(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListVolumeRestoresResponse, VolumeRestore> ListVolumeRestores(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the VolumeRestores for a given Restore.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The Restore that contains the VolumeRestores to list.
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 |
PagedEnumerableListVolumeRestoresResponseVolumeRestore |
A pageable sequence of VolumeRestore resources. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]/restores/[RESTORE]";
// Make the request
PagedEnumerable<ListVolumeRestoresResponse, VolumeRestore> response = backupForGKEClient.ListVolumeRestores(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (VolumeRestore 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 (ListVolumeRestoresResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VolumeRestore 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<VolumeRestore> 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 (VolumeRestore 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;
ListVolumeRestoresAsync(ListVolumeRestoresRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListVolumeRestoresResponse, VolumeRestore> ListVolumeRestoresAsync(ListVolumeRestoresRequest request, CallSettings callSettings = null)Lists the VolumeRestores for a given Restore.
| Parameters | |
|---|---|
| Name | Description |
request |
ListVolumeRestoresRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListVolumeRestoresResponseVolumeRestore |
A pageable asynchronous sequence of VolumeRestore resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
ListVolumeRestoresRequest request = new ListVolumeRestoresRequest
{
ParentAsRestoreName = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListVolumeRestoresResponse, VolumeRestore> response = backupForGKEClient.ListVolumeRestoresAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((VolumeRestore 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((ListVolumeRestoresResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VolumeRestore 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<VolumeRestore> 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 (VolumeRestore 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;
ListVolumeRestoresAsync(RestoreName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListVolumeRestoresResponse, VolumeRestore> ListVolumeRestoresAsync(RestoreName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the VolumeRestores for a given Restore.
| Parameters | |
|---|---|
| Name | Description |
parent |
RestoreNameRequired. The Restore that contains the VolumeRestores to list.
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 |
PagedAsyncEnumerableListVolumeRestoresResponseVolumeRestore |
A pageable asynchronous sequence of VolumeRestore resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestoreName parent = RestoreName.FromProjectLocationRestorePlanRestore("[PROJECT]", "[LOCATION]", "[RESTORE_PLAN]", "[RESTORE]");
// Make the request
PagedAsyncEnumerable<ListVolumeRestoresResponse, VolumeRestore> response = backupForGKEClient.ListVolumeRestoresAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((VolumeRestore 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((ListVolumeRestoresResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VolumeRestore 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<VolumeRestore> 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 (VolumeRestore 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;
ListVolumeRestoresAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListVolumeRestoresResponse, VolumeRestore> ListVolumeRestoresAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists the VolumeRestores for a given Restore.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The Restore that contains the VolumeRestores to list.
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 |
PagedAsyncEnumerableListVolumeRestoresResponseVolumeRestore |
A pageable asynchronous sequence of VolumeRestore resources. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/restorePlans/[RESTORE_PLAN]/restores/[RESTORE]";
// Make the request
PagedAsyncEnumerable<ListVolumeRestoresResponse, VolumeRestore> response = backupForGKEClient.ListVolumeRestoresAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((VolumeRestore 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((ListVolumeRestoresResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VolumeRestore 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<VolumeRestore> 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 (VolumeRestore 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;
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. |
PollOnceCreateBackupChannel(string, CallSettings)
public virtual Operation<BackupChannel, OperationMetadata> PollOnceCreateBackupChannel(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateBackupChannel
.
| 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 |
OperationBackupChannelOperationMetadata |
The result of polling the operation. |
PollOnceCreateBackupChannelAsync(string, CallSettings)
public virtual Task<Operation<BackupChannel, OperationMetadata>> PollOnceCreateBackupChannelAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateBackupChannel.
| 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 |
TaskOperationBackupChannelOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateBackupPlan(string, CallSettings)
public virtual Operation<BackupPlan, OperationMetadata> PollOnceCreateBackupPlan(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateBackupPlan.
| 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 |
OperationBackupPlanOperationMetadata |
The result of polling the operation. |
PollOnceCreateBackupPlanAsync(string, CallSettings)
public virtual Task<Operation<BackupPlan, OperationMetadata>> PollOnceCreateBackupPlanAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateBackupPlan.
| 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 |
TaskOperationBackupPlanOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateRestore(string, CallSettings)
public virtual Operation<Restore, OperationMetadata> PollOnceCreateRestore(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateRestore.
| 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 |
OperationRestoreOperationMetadata |
The result of polling the operation. |
PollOnceCreateRestoreAsync(string, CallSettings)
public virtual Task<Operation<Restore, OperationMetadata>> PollOnceCreateRestoreAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateRestore.
| 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 |
TaskOperationRestoreOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateRestoreChannel(string, CallSettings)
public virtual Operation<RestoreChannel, OperationMetadata> PollOnceCreateRestoreChannel(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateRestoreChannel
.
| 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 |
OperationRestoreChannelOperationMetadata |
The result of polling the operation. |
PollOnceCreateRestoreChannelAsync(string, CallSettings)
public virtual Task<Operation<RestoreChannel, OperationMetadata>> PollOnceCreateRestoreChannelAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateRestoreChannel.
| 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 |
TaskOperationRestoreChannelOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateRestorePlan(string, CallSettings)
public virtual Operation<RestorePlan, OperationMetadata> PollOnceCreateRestorePlan(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateRestorePlan
.
| 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 |
OperationRestorePlanOperationMetadata |
The result of polling the operation. |
PollOnceCreateRestorePlanAsync(string, CallSettings)
public virtual Task<Operation<RestorePlan, OperationMetadata>> PollOnceCreateRestorePlanAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateRestorePlan.
| 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 |
TaskOperationRestorePlanOperationMetadata |
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. |
PollOnceDeleteBackupChannel(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteBackupChannel(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteBackupChannel
.
| 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. |
PollOnceDeleteBackupChannelAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteBackupChannelAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteBackupChannel.
| 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. |
PollOnceDeleteBackupPlan(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteBackupPlan(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteBackupPlan.
| 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. |
PollOnceDeleteBackupPlanAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteBackupPlanAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteBackupPlan.
| 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. |
PollOnceDeleteRestore(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteRestore(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteRestore.
| 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. |
PollOnceDeleteRestoreAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteRestoreAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteRestore.
| 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. |
PollOnceDeleteRestoreChannel(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteRestoreChannel(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteRestoreChannel
.
| 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. |
PollOnceDeleteRestoreChannelAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteRestoreChannelAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteRestoreChannel.
| 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. |
PollOnceDeleteRestorePlan(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteRestorePlan(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteRestorePlan
.
| 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. |
PollOnceDeleteRestorePlanAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteRestorePlanAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteRestorePlan.
| 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. |
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. |
PollOnceUpdateBackupChannel(string, CallSettings)
public virtual Operation<BackupChannel, OperationMetadata> PollOnceUpdateBackupChannel(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateBackupChannel
.
| 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 |
OperationBackupChannelOperationMetadata |
The result of polling the operation. |
PollOnceUpdateBackupChannelAsync(string, CallSettings)
public virtual Task<Operation<BackupChannel, OperationMetadata>> PollOnceUpdateBackupChannelAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateBackupChannel.
| 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 |
TaskOperationBackupChannelOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateBackupPlan(string, CallSettings)
public virtual Operation<BackupPlan, OperationMetadata> PollOnceUpdateBackupPlan(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateBackupPlan.
| 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 |
OperationBackupPlanOperationMetadata |
The result of polling the operation. |
PollOnceUpdateBackupPlanAsync(string, CallSettings)
public virtual Task<Operation<BackupPlan, OperationMetadata>> PollOnceUpdateBackupPlanAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateBackupPlan.
| 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 |
TaskOperationBackupPlanOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateRestore(string, CallSettings)
public virtual Operation<Restore, OperationMetadata> PollOnceUpdateRestore(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateRestore.
| 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 |
OperationRestoreOperationMetadata |
The result of polling the operation. |
PollOnceUpdateRestoreAsync(string, CallSettings)
public virtual Task<Operation<Restore, OperationMetadata>> PollOnceUpdateRestoreAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateRestore.
| 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 |
TaskOperationRestoreOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateRestoreChannel(string, CallSettings)
public virtual Operation<RestoreChannel, OperationMetadata> PollOnceUpdateRestoreChannel(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateRestoreChannel
.
| 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 |
OperationRestoreChannelOperationMetadata |
The result of polling the operation. |
PollOnceUpdateRestoreChannelAsync(string, CallSettings)
public virtual Task<Operation<RestoreChannel, OperationMetadata>> PollOnceUpdateRestoreChannelAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateRestoreChannel.
| 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 |
TaskOperationRestoreChannelOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateRestorePlan(string, CallSettings)
public virtual Operation<RestorePlan, OperationMetadata> PollOnceUpdateRestorePlan(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateRestorePlan
.
| 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 |
OperationRestorePlanOperationMetadata |
The result of polling the operation. |
PollOnceUpdateRestorePlanAsync(string, CallSettings)
public virtual Task<Operation<RestorePlan, OperationMetadata>> PollOnceUpdateRestorePlanAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateRestorePlan.
| 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 |
TaskOperationRestorePlanOperationMetadata |
A task representing the result of polling the operation. |
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.
UpdateBackup(Backup, FieldMask, CallSettings)
public virtual Operation<Backup, OperationMetadata> UpdateBackup(Backup backup, FieldMask updateMask, CallSettings callSettings = null)Update a Backup.
| Parameters | |
|---|---|
| Name | Description |
backup |
BackupRequired. A new version of the Backup resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
Backup targeted for update. The values for each of these
updated fields will be taken from the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
Backup backup = new Backup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Backup, OperationMetadata> response = backupForGKEClient.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 = backupForGKEClient.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 a Backup.
| 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
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
UpdateBackupRequest request = new UpdateBackupRequest
{
Backup = new Backup(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Backup, OperationMetadata> response = backupForGKEClient.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 = backupForGKEClient.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 a Backup.
| Parameters | |
|---|---|
| Name | Description |
backup |
BackupRequired. A new version of the Backup resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
Backup targeted for update. The values for each of these
updated fields will be taken from the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
Backup backup = new Backup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Backup, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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 a Backup.
| Parameters | |
|---|---|
| Name | Description |
backup |
BackupRequired. A new version of the Backup resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
Backup targeted for update. The values for each of these
updated fields will be taken from the |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
Backup backup = new Backup();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Backup, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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 a Backup.
| 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
UpdateBackupRequest request = new UpdateBackupRequest
{
Backup = new Backup(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Backup, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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 a Backup.
| 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
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
UpdateBackupRequest request = new UpdateBackupRequest
{
Backup = new Backup(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Backup, OperationMetadata> response = await backupForGKEClient.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 backupForGKEClient.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;
}
UpdateBackupChannel(BackupChannel, FieldMask, CallSettings)
public virtual Operation<BackupChannel, OperationMetadata> UpdateBackupChannel(BackupChannel backupChannel, FieldMask updateMask, CallSettings callSettings = null)Update a BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
backupChannel |
BackupChannelRequired. A new version of the BackupChannel resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
BackupChannel targeted for update. The values for each of these
updated fields will be taken from the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupChannelOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupChannel backupChannel = new BackupChannel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackupChannel, OperationMetadata> response = backupForGKEClient.UpdateBackupChannel(backupChannel, updateMask);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceUpdateBackupChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
UpdateBackupChannel(UpdateBackupChannelRequest, CallSettings)
public virtual Operation<BackupChannel, OperationMetadata> UpdateBackupChannel(UpdateBackupChannelRequest request, CallSettings callSettings = null)Update a BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateBackupChannelRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupChannelOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
UpdateBackupChannelRequest request = new UpdateBackupChannelRequest
{
BackupChannel = new BackupChannel(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<BackupChannel, OperationMetadata> response = backupForGKEClient.UpdateBackupChannel(request);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceUpdateBackupChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
UpdateBackupChannelAsync(BackupChannel, FieldMask, CallSettings)
public virtual Task<Operation<BackupChannel, OperationMetadata>> UpdateBackupChannelAsync(BackupChannel backupChannel, FieldMask updateMask, CallSettings callSettings = null)Update a BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
backupChannel |
BackupChannelRequired. A new version of the BackupChannel resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
BackupChannel targeted for update. The values for each of these
updated fields will be taken from the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupChannel backupChannel = new BackupChannel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackupChannel, OperationMetadata> response = await backupForGKEClient.UpdateBackupChannelAsync(backupChannel, updateMask);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateBackupChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
UpdateBackupChannelAsync(BackupChannel, FieldMask, CancellationToken)
public virtual Task<Operation<BackupChannel, OperationMetadata>> UpdateBackupChannelAsync(BackupChannel backupChannel, FieldMask updateMask, CancellationToken cancellationToken)Update a BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
backupChannel |
BackupChannelRequired. A new version of the BackupChannel resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
BackupChannel targeted for update. The values for each of these
updated fields will be taken from the |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupChannel backupChannel = new BackupChannel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackupChannel, OperationMetadata> response = await backupForGKEClient.UpdateBackupChannelAsync(backupChannel, updateMask);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateBackupChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
UpdateBackupChannelAsync(UpdateBackupChannelRequest, CallSettings)
public virtual Task<Operation<BackupChannel, OperationMetadata>> UpdateBackupChannelAsync(UpdateBackupChannelRequest request, CallSettings callSettings = null)Update a BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateBackupChannelRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
UpdateBackupChannelRequest request = new UpdateBackupChannelRequest
{
BackupChannel = new BackupChannel(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<BackupChannel, OperationMetadata> response = await backupForGKEClient.UpdateBackupChannelAsync(request);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateBackupChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
UpdateBackupChannelAsync(UpdateBackupChannelRequest, CancellationToken)
public virtual Task<Operation<BackupChannel, OperationMetadata>> UpdateBackupChannelAsync(UpdateBackupChannelRequest request, CancellationToken cancellationToken)Update a BackupChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateBackupChannelRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
UpdateBackupChannelRequest request = new UpdateBackupChannelRequest
{
BackupChannel = new BackupChannel(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<BackupChannel, OperationMetadata> response = await backupForGKEClient.UpdateBackupChannelAsync(request);
// Poll until the returned long-running operation is complete
Operation<BackupChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateBackupChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupChannel retrievedResult = retrievedResponse.Result;
}
UpdateBackupPlan(BackupPlan, FieldMask, CallSettings)
public virtual Operation<BackupPlan, OperationMetadata> UpdateBackupPlan(BackupPlan backupPlan, FieldMask updateMask, CallSettings callSettings = null)Update a BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
backupPlan |
BackupPlanRequired. A new version of the BackupPlan resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
BackupPlan targeted for update. The values for each of these
updated fields will be taken from the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupPlanOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
BackupPlan backupPlan = new BackupPlan();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackupPlan, OperationMetadata> response = backupForGKEClient.UpdateBackupPlan(backupPlan, updateMask);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceUpdateBackupPlan(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
UpdateBackupPlan(UpdateBackupPlanRequest, CallSettings)
public virtual Operation<BackupPlan, OperationMetadata> UpdateBackupPlan(UpdateBackupPlanRequest request, CallSettings callSettings = null)Update a BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateBackupPlanRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBackupPlanOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
UpdateBackupPlanRequest request = new UpdateBackupPlanRequest
{
BackupPlan = new BackupPlan(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<BackupPlan, OperationMetadata> response = backupForGKEClient.UpdateBackupPlan(request);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceUpdateBackupPlan(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
UpdateBackupPlanAsync(BackupPlan, FieldMask, CallSettings)
public virtual Task<Operation<BackupPlan, OperationMetadata>> UpdateBackupPlanAsync(BackupPlan backupPlan, FieldMask updateMask, CallSettings callSettings = null)Update a BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
backupPlan |
BackupPlanRequired. A new version of the BackupPlan resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
BackupPlan targeted for update. The values for each of these
updated fields will be taken from the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupPlan backupPlan = new BackupPlan();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackupPlan, OperationMetadata> response = await backupForGKEClient.UpdateBackupPlanAsync(backupPlan, updateMask);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateBackupPlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
UpdateBackupPlanAsync(BackupPlan, FieldMask, CancellationToken)
public virtual Task<Operation<BackupPlan, OperationMetadata>> UpdateBackupPlanAsync(BackupPlan backupPlan, FieldMask updateMask, CancellationToken cancellationToken)Update a BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
backupPlan |
BackupPlanRequired. A new version of the BackupPlan resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
BackupPlan targeted for update. The values for each of these
updated fields will be taken from the |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
BackupPlan backupPlan = new BackupPlan();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<BackupPlan, OperationMetadata> response = await backupForGKEClient.UpdateBackupPlanAsync(backupPlan, updateMask);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateBackupPlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
UpdateBackupPlanAsync(UpdateBackupPlanRequest, CallSettings)
public virtual Task<Operation<BackupPlan, OperationMetadata>> UpdateBackupPlanAsync(UpdateBackupPlanRequest request, CallSettings callSettings = null)Update a BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateBackupPlanRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
UpdateBackupPlanRequest request = new UpdateBackupPlanRequest
{
BackupPlan = new BackupPlan(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<BackupPlan, OperationMetadata> response = await backupForGKEClient.UpdateBackupPlanAsync(request);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateBackupPlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
UpdateBackupPlanAsync(UpdateBackupPlanRequest, CancellationToken)
public virtual Task<Operation<BackupPlan, OperationMetadata>> UpdateBackupPlanAsync(UpdateBackupPlanRequest request, CancellationToken cancellationToken)Update a BackupPlan.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateBackupPlanRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBackupPlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
UpdateBackupPlanRequest request = new UpdateBackupPlanRequest
{
BackupPlan = new BackupPlan(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<BackupPlan, OperationMetadata> response = await backupForGKEClient.UpdateBackupPlanAsync(request);
// Poll until the returned long-running operation is complete
Operation<BackupPlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
BackupPlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<BackupPlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateBackupPlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
BackupPlan retrievedResult = retrievedResponse.Result;
}
UpdateRestore(Restore, FieldMask, CallSettings)
public virtual Operation<Restore, OperationMetadata> UpdateRestore(Restore restore, FieldMask updateMask, CallSettings callSettings = null)Update a Restore.
| Parameters | |
|---|---|
| Name | Description |
restore |
RestoreRequired. A new version of the Restore resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
Restore targeted for update. The values for each of these
updated fields will be taken from the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestoreOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
Restore restore = new Restore();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Restore, OperationMetadata> response = backupForGKEClient.UpdateRestore(restore, updateMask);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceUpdateRestore(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
UpdateRestore(UpdateRestoreRequest, CallSettings)
public virtual Operation<Restore, OperationMetadata> UpdateRestore(UpdateRestoreRequest request, CallSettings callSettings = null)Update a Restore.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateRestoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestoreOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
UpdateRestoreRequest request = new UpdateRestoreRequest
{
Restore = new Restore(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Restore, OperationMetadata> response = backupForGKEClient.UpdateRestore(request);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceUpdateRestore(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
UpdateRestoreAsync(Restore, FieldMask, CallSettings)
public virtual Task<Operation<Restore, OperationMetadata>> UpdateRestoreAsync(Restore restore, FieldMask updateMask, CallSettings callSettings = null)Update a Restore.
| Parameters | |
|---|---|
| Name | Description |
restore |
RestoreRequired. A new version of the Restore resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
Restore targeted for update. The values for each of these
updated fields will be taken from the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
Restore restore = new Restore();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Restore, OperationMetadata> response = await backupForGKEClient.UpdateRestoreAsync(restore, updateMask);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateRestoreAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
UpdateRestoreAsync(Restore, FieldMask, CancellationToken)
public virtual Task<Operation<Restore, OperationMetadata>> UpdateRestoreAsync(Restore restore, FieldMask updateMask, CancellationToken cancellationToken)Update a Restore.
| Parameters | |
|---|---|
| Name | Description |
restore |
RestoreRequired. A new version of the Restore resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
Restore targeted for update. The values for each of these
updated fields will be taken from the |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
Restore restore = new Restore();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Restore, OperationMetadata> response = await backupForGKEClient.UpdateRestoreAsync(restore, updateMask);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateRestoreAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
UpdateRestoreAsync(UpdateRestoreRequest, CallSettings)
public virtual Task<Operation<Restore, OperationMetadata>> UpdateRestoreAsync(UpdateRestoreRequest request, CallSettings callSettings = null)Update a Restore.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateRestoreRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
UpdateRestoreRequest request = new UpdateRestoreRequest
{
Restore = new Restore(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Restore, OperationMetadata> response = await backupForGKEClient.UpdateRestoreAsync(request);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateRestoreAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
UpdateRestoreAsync(UpdateRestoreRequest, CancellationToken)
public virtual Task<Operation<Restore, OperationMetadata>> UpdateRestoreAsync(UpdateRestoreRequest request, CancellationToken cancellationToken)Update a Restore.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateRestoreRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
UpdateRestoreRequest request = new UpdateRestoreRequest
{
Restore = new Restore(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Restore, OperationMetadata> response = await backupForGKEClient.UpdateRestoreAsync(request);
// Poll until the returned long-running operation is complete
Operation<Restore, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Restore result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Restore, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateRestoreAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Restore retrievedResult = retrievedResponse.Result;
}
UpdateRestoreChannel(RestoreChannel, FieldMask, CallSettings)
public virtual Operation<RestoreChannel, OperationMetadata> UpdateRestoreChannel(RestoreChannel restoreChannel, FieldMask updateMask, CallSettings callSettings = null)Update a RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
restoreChannel |
RestoreChannelRequired. A new version of the RestoreChannel resource that contains
updated fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
RestoreChannel targeted for update. The values for each of these
updated fields will be taken from the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestoreChannelOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
RestoreChannel restoreChannel = new RestoreChannel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<RestoreChannel, OperationMetadata> response = backupForGKEClient.UpdateRestoreChannel(restoreChannel, updateMask);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceUpdateRestoreChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
UpdateRestoreChannel(UpdateRestoreChannelRequest, CallSettings)
public virtual Operation<RestoreChannel, OperationMetadata> UpdateRestoreChannel(UpdateRestoreChannelRequest request, CallSettings callSettings = null)Update a RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateRestoreChannelRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestoreChannelOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
UpdateRestoreChannelRequest request = new UpdateRestoreChannelRequest
{
RestoreChannel = new RestoreChannel(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<RestoreChannel, OperationMetadata> response = backupForGKEClient.UpdateRestoreChannel(request);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceUpdateRestoreChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
UpdateRestoreChannelAsync(RestoreChannel, FieldMask, CallSettings)
public virtual Task<Operation<RestoreChannel, OperationMetadata>> UpdateRestoreChannelAsync(RestoreChannel restoreChannel, FieldMask updateMask, CallSettings callSettings = null)Update a RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
restoreChannel |
RestoreChannelRequired. A new version of the RestoreChannel resource that contains
updated fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
RestoreChannel targeted for update. The values for each of these
updated fields will be taken from the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestoreChannel restoreChannel = new RestoreChannel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<RestoreChannel, OperationMetadata> response = await backupForGKEClient.UpdateRestoreChannelAsync(restoreChannel, updateMask);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateRestoreChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
UpdateRestoreChannelAsync(RestoreChannel, FieldMask, CancellationToken)
public virtual Task<Operation<RestoreChannel, OperationMetadata>> UpdateRestoreChannelAsync(RestoreChannel restoreChannel, FieldMask updateMask, CancellationToken cancellationToken)Update a RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
restoreChannel |
RestoreChannelRequired. A new version of the RestoreChannel resource that contains
updated fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
RestoreChannel targeted for update. The values for each of these
updated fields will be taken from the |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestoreChannel restoreChannel = new RestoreChannel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<RestoreChannel, OperationMetadata> response = await backupForGKEClient.UpdateRestoreChannelAsync(restoreChannel, updateMask);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateRestoreChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
UpdateRestoreChannelAsync(UpdateRestoreChannelRequest, CallSettings)
public virtual Task<Operation<RestoreChannel, OperationMetadata>> UpdateRestoreChannelAsync(UpdateRestoreChannelRequest request, CallSettings callSettings = null)Update a RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateRestoreChannelRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
UpdateRestoreChannelRequest request = new UpdateRestoreChannelRequest
{
RestoreChannel = new RestoreChannel(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<RestoreChannel, OperationMetadata> response = await backupForGKEClient.UpdateRestoreChannelAsync(request);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateRestoreChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
UpdateRestoreChannelAsync(UpdateRestoreChannelRequest, CancellationToken)
public virtual Task<Operation<RestoreChannel, OperationMetadata>> UpdateRestoreChannelAsync(UpdateRestoreChannelRequest request, CancellationToken cancellationToken)Update a RestoreChannel.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateRestoreChannelRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestoreChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
UpdateRestoreChannelRequest request = new UpdateRestoreChannelRequest
{
RestoreChannel = new RestoreChannel(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<RestoreChannel, OperationMetadata> response = await backupForGKEClient.UpdateRestoreChannelAsync(request);
// Poll until the returned long-running operation is complete
Operation<RestoreChannel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestoreChannel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestoreChannel, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateRestoreChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestoreChannel retrievedResult = retrievedResponse.Result;
}
UpdateRestorePlan(RestorePlan, FieldMask, CallSettings)
public virtual Operation<RestorePlan, OperationMetadata> UpdateRestorePlan(RestorePlan restorePlan, FieldMask updateMask, CallSettings callSettings = null)Update a RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
restorePlan |
RestorePlanRequired. A new version of the RestorePlan resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
RestorePlan targeted for update. The values for each of these
updated fields will be taken from the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestorePlanOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
RestorePlan restorePlan = new RestorePlan();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<RestorePlan, OperationMetadata> response = backupForGKEClient.UpdateRestorePlan(restorePlan, updateMask);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceUpdateRestorePlan(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
UpdateRestorePlan(UpdateRestorePlanRequest, CallSettings)
public virtual Operation<RestorePlan, OperationMetadata> UpdateRestorePlan(UpdateRestorePlanRequest request, CallSettings callSettings = null)Update a RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateRestorePlanRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRestorePlanOperationMetadata |
The RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = BackupForGKEClient.Create();
// Initialize request argument(s)
UpdateRestorePlanRequest request = new UpdateRestorePlanRequest
{
RestorePlan = new RestorePlan(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<RestorePlan, OperationMetadata> response = backupForGKEClient.UpdateRestorePlan(request);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = backupForGKEClient.PollOnceUpdateRestorePlan(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
UpdateRestorePlanAsync(RestorePlan, FieldMask, CallSettings)
public virtual Task<Operation<RestorePlan, OperationMetadata>> UpdateRestorePlanAsync(RestorePlan restorePlan, FieldMask updateMask, CallSettings callSettings = null)Update a RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
restorePlan |
RestorePlanRequired. A new version of the RestorePlan resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
RestorePlan targeted for update. The values for each of these
updated fields will be taken from the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestorePlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestorePlan restorePlan = new RestorePlan();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<RestorePlan, OperationMetadata> response = await backupForGKEClient.UpdateRestorePlanAsync(restorePlan, updateMask);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateRestorePlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
UpdateRestorePlanAsync(RestorePlan, FieldMask, CancellationToken)
public virtual Task<Operation<RestorePlan, OperationMetadata>> UpdateRestorePlanAsync(RestorePlan restorePlan, FieldMask updateMask, CancellationToken cancellationToken)Update a RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
restorePlan |
RestorePlanRequired. A new version of the RestorePlan resource that contains updated
fields. This may be sparsely populated if an |
updateMask |
FieldMaskOptional. This is used to specify the fields to be overwritten in the
RestorePlan targeted for update. The values for each of these
updated fields will be taken from the |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestorePlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
RestorePlan restorePlan = new RestorePlan();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<RestorePlan, OperationMetadata> response = await backupForGKEClient.UpdateRestorePlanAsync(restorePlan, updateMask);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateRestorePlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
UpdateRestorePlanAsync(UpdateRestorePlanRequest, CallSettings)
public virtual Task<Operation<RestorePlan, OperationMetadata>> UpdateRestorePlanAsync(UpdateRestorePlanRequest request, CallSettings callSettings = null)Update a RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateRestorePlanRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestorePlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
UpdateRestorePlanRequest request = new UpdateRestorePlanRequest
{
RestorePlan = new RestorePlan(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<RestorePlan, OperationMetadata> response = await backupForGKEClient.UpdateRestorePlanAsync(request);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateRestorePlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}
UpdateRestorePlanAsync(UpdateRestorePlanRequest, CancellationToken)
public virtual Task<Operation<RestorePlan, OperationMetadata>> UpdateRestorePlanAsync(UpdateRestorePlanRequest request, CancellationToken cancellationToken)Update a RestorePlan.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateRestorePlanRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRestorePlanOperationMetadata |
A Task containing the RPC response. |
// Create client
BackupForGKEClient backupForGKEClient = await BackupForGKEClient.CreateAsync();
// Initialize request argument(s)
UpdateRestorePlanRequest request = new UpdateRestorePlanRequest
{
RestorePlan = new RestorePlan(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<RestorePlan, OperationMetadata> response = await backupForGKEClient.UpdateRestorePlanAsync(request);
// Poll until the returned long-running operation is complete
Operation<RestorePlan, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RestorePlan result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RestorePlan, OperationMetadata> retrievedResponse = await backupForGKEClient.PollOnceUpdateRestorePlanAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RestorePlan retrievedResult = retrievedResponse.Result;
}