diff --git a/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/BigtableTableAdminClientSnippets.g.cs b/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/BigtableTableAdminClientSnippets.g.cs
index 24745307430e..1491609a7ba0 100644
--- a/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/BigtableTableAdminClientSnippets.g.cs
+++ b/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Snippets/BigtableTableAdminClientSnippets.g.cs
@@ -1836,6 +1836,132 @@ public async Task CreateBackupRequestObjectAsync()
// End snippet
}
+ /// Snippet for CreateBackup
+ public void CreateBackup()
+ {
+ // Snippet: CreateBackup(string, string, Backup, CallSettings)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]";
+ string backupId = "";
+ Backup backup = new Backup();
+ // Make the request
+ Operation response = bigtableTableAdminClient.CreateBackup(parent, backupId, backup);
+
+ // Poll until the returned long-running operation is complete
+ Operation 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 retrievedResponse = bigtableTableAdminClient.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;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateBackupAsync
+ public async Task CreateBackupAsync()
+ {
+ // Snippet: CreateBackupAsync(string, string, Backup, CallSettings)
+ // Additional: CreateBackupAsync(string, string, Backup, CancellationToken)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]";
+ string backupId = "";
+ Backup backup = new Backup();
+ // Make the request
+ Operation response = await bigtableTableAdminClient.CreateBackupAsync(parent, backupId, backup);
+
+ // Poll until the returned long-running operation is complete
+ Operation 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 retrievedResponse = await bigtableTableAdminClient.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;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateBackup
+ public void CreateBackupResourceNames()
+ {
+ // Snippet: CreateBackup(ClusterName, string, Backup, CallSettings)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create();
+ // Initialize request argument(s)
+ ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]");
+ string backupId = "";
+ Backup backup = new Backup();
+ // Make the request
+ Operation response = bigtableTableAdminClient.CreateBackup(parent, backupId, backup);
+
+ // Poll until the returned long-running operation is complete
+ Operation 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 retrievedResponse = bigtableTableAdminClient.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;
+ }
+ // End snippet
+ }
+
+ /// Snippet for CreateBackupAsync
+ public async Task CreateBackupResourceNamesAsync()
+ {
+ // Snippet: CreateBackupAsync(ClusterName, string, Backup, CallSettings)
+ // Additional: CreateBackupAsync(ClusterName, string, Backup, CancellationToken)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync();
+ // Initialize request argument(s)
+ ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]");
+ string backupId = "";
+ Backup backup = new Backup();
+ // Make the request
+ Operation response = await bigtableTableAdminClient.CreateBackupAsync(parent, backupId, backup);
+
+ // Poll until the returned long-running operation is complete
+ Operation 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 retrievedResponse = await bigtableTableAdminClient.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;
+ }
+ // End snippet
+ }
+
/// Snippet for GetBackup
public void GetBackupRequestObject()
{
@@ -1869,6 +1995,60 @@ public async Task GetBackupRequestObjectAsync()
// End snippet
}
+ /// Snippet for GetBackup
+ public void GetBackup()
+ {
+ // Snippet: GetBackup(string, CallSettings)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]";
+ // Make the request
+ Backup response = bigtableTableAdminClient.GetBackup(name);
+ // End snippet
+ }
+
+ /// Snippet for GetBackupAsync
+ public async Task GetBackupAsync()
+ {
+ // Snippet: GetBackupAsync(string, CallSettings)
+ // Additional: GetBackupAsync(string, CancellationToken)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]";
+ // Make the request
+ Backup response = await bigtableTableAdminClient.GetBackupAsync(name);
+ // End snippet
+ }
+
+ /// Snippet for GetBackup
+ public void GetBackupResourceNames()
+ {
+ // Snippet: GetBackup(BackupName, CallSettings)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create();
+ // Initialize request argument(s)
+ BackupName name = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]");
+ // Make the request
+ Backup response = bigtableTableAdminClient.GetBackup(name);
+ // End snippet
+ }
+
+ /// Snippet for GetBackupAsync
+ public async Task GetBackupResourceNamesAsync()
+ {
+ // Snippet: GetBackupAsync(BackupName, CallSettings)
+ // Additional: GetBackupAsync(BackupName, CancellationToken)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync();
+ // Initialize request argument(s)
+ BackupName name = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]");
+ // Make the request
+ Backup response = await bigtableTableAdminClient.GetBackupAsync(name);
+ // End snippet
+ }
+
/// Snippet for UpdateBackup
public void UpdateBackupRequestObject()
{
@@ -1904,6 +2084,35 @@ public async Task UpdateBackupRequestObjectAsync()
// End snippet
}
+ /// Snippet for UpdateBackup
+ public void UpdateBackup()
+ {
+ // Snippet: UpdateBackup(Backup, FieldMask, CallSettings)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create();
+ // Initialize request argument(s)
+ Backup backup = new Backup();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ Backup response = bigtableTableAdminClient.UpdateBackup(backup, updateMask);
+ // End snippet
+ }
+
+ /// Snippet for UpdateBackupAsync
+ public async Task UpdateBackupAsync()
+ {
+ // Snippet: UpdateBackupAsync(Backup, FieldMask, CallSettings)
+ // Additional: UpdateBackupAsync(Backup, FieldMask, CancellationToken)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync();
+ // Initialize request argument(s)
+ Backup backup = new Backup();
+ FieldMask updateMask = new FieldMask();
+ // Make the request
+ Backup response = await bigtableTableAdminClient.UpdateBackupAsync(backup, updateMask);
+ // End snippet
+ }
+
/// Snippet for DeleteBackup
public void DeleteBackupRequestObject()
{
@@ -1937,6 +2146,60 @@ public async Task DeleteBackupRequestObjectAsync()
// End snippet
}
+ /// Snippet for DeleteBackup
+ public void DeleteBackup()
+ {
+ // Snippet: DeleteBackup(string, CallSettings)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]";
+ // Make the request
+ bigtableTableAdminClient.DeleteBackup(name);
+ // End snippet
+ }
+
+ /// Snippet for DeleteBackupAsync
+ public async Task DeleteBackupAsync()
+ {
+ // Snippet: DeleteBackupAsync(string, CallSettings)
+ // Additional: DeleteBackupAsync(string, CancellationToken)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync();
+ // Initialize request argument(s)
+ string name = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]/backups/[BACKUP]";
+ // Make the request
+ await bigtableTableAdminClient.DeleteBackupAsync(name);
+ // End snippet
+ }
+
+ /// Snippet for DeleteBackup
+ public void DeleteBackupResourceNames()
+ {
+ // Snippet: DeleteBackup(BackupName, CallSettings)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create();
+ // Initialize request argument(s)
+ BackupName name = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]");
+ // Make the request
+ bigtableTableAdminClient.DeleteBackup(name);
+ // End snippet
+ }
+
+ /// Snippet for DeleteBackupAsync
+ public async Task DeleteBackupResourceNamesAsync()
+ {
+ // Snippet: DeleteBackupAsync(BackupName, CallSettings)
+ // Additional: DeleteBackupAsync(BackupName, CancellationToken)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync();
+ // Initialize request argument(s)
+ BackupName name = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]");
+ // Make the request
+ await bigtableTableAdminClient.DeleteBackupAsync(name);
+ // End snippet
+ }
+
/// Snippet for ListBackups
public void ListBackupsRequestObject()
{
@@ -2037,6 +2300,186 @@ await response.AsRawResponses().ForEachAsync((ListBackupsResponse page) =>
// End snippet
}
+ /// Snippet for ListBackups
+ public void ListBackups()
+ {
+ // Snippet: ListBackups(string, string, int?, CallSettings)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]";
+ // Make the request
+ PagedEnumerable response = bigtableTableAdminClient.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 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;
+ // End snippet
+ }
+
+ /// Snippet for ListBackups
+ public async Task ListBackupsAsync()
+ {
+ // Snippet: ListBackupsAsync(string, string, int?, CallSettings)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync();
+ // Initialize request argument(s)
+ string parent = "projects/[PROJECT]/instances/[INSTANCE]/clusters/[CLUSTER]";
+ // Make the request
+ PagedAsyncEnumerable response = bigtableTableAdminClient.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 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;
+ // End snippet
+ }
+
+ /// Snippet for ListBackups
+ public void ListBackupsResourceNames()
+ {
+ // Snippet: ListBackups(ClusterName, string, int?, CallSettings)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = BigtableTableAdminClient.Create();
+ // Initialize request argument(s)
+ ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]");
+ // Make the request
+ PagedEnumerable response = bigtableTableAdminClient.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 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;
+ // End snippet
+ }
+
+ /// Snippet for ListBackups
+ public async Task ListBackupsResourceNamesAsync()
+ {
+ // Snippet: ListBackupsAsync(ClusterName, string, int?, CallSettings)
+ // Create client
+ BigtableTableAdminClient bigtableTableAdminClient = await BigtableTableAdminClient.CreateAsync();
+ // Initialize request argument(s)
+ ClusterName parent = ClusterName.FromProjectInstanceCluster("[PROJECT]", "[INSTANCE]", "[CLUSTER]");
+ // Make the request
+ PagedAsyncEnumerable response = bigtableTableAdminClient.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 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;
+ // End snippet
+ }
+
/// Snippet for RestoreTable
public void RestoreTableRequestObject()
{
diff --git a/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Tests/BigtableTableAdminClientTest.g.cs b/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Tests/BigtableTableAdminClientTest.g.cs
index 6c03a6be7b8e..90bc51acdf01 100644
--- a/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Tests/BigtableTableAdminClientTest.g.cs
+++ b/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2.Tests/BigtableTableAdminClientTest.g.cs
@@ -1435,6 +1435,114 @@ public void GetBackupRequestObject()
mockGrpcClient.VerifyAll();
}
+ [xunit::FactAttribute]
+ public void GetBackup()
+ {
+ moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict);
+ mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object);
+ GetBackupRequest request = new GetBackupRequest
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ };
+ Backup expectedResponse = new Backup
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ SourceTable = "source_table3c9665d0",
+ ExpireTime = new wkt::Timestamp(),
+ StartTime = new wkt::Timestamp(),
+ EndTime = new wkt::Timestamp(),
+ SizeBytes = 4628423819757039038L,
+ State = Backup.Types.State.Unspecified,
+ };
+ mockGrpcClient.Setup(x => x.GetBackup(request, moq::It.IsAny())).Returns(expectedResponse);
+ BigtableTableAdminClient client = new BigtableTableAdminClientImpl(mockGrpcClient.Object, null);
+ Backup response = client.GetBackup(request.Name);
+ xunit::Assert.Same(expectedResponse, response);
+ mockGrpcClient.VerifyAll();
+ }
+
+ [xunit::FactAttribute]
+ public async stt::Task GetBackupAsync()
+ {
+ moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict);
+ mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object);
+ GetBackupRequest request = new GetBackupRequest
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ };
+ Backup expectedResponse = new Backup
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ SourceTable = "source_table3c9665d0",
+ ExpireTime = new wkt::Timestamp(),
+ StartTime = new wkt::Timestamp(),
+ EndTime = new wkt::Timestamp(),
+ SizeBytes = 4628423819757039038L,
+ State = Backup.Types.State.Unspecified,
+ };
+ mockGrpcClient.Setup(x => x.GetBackupAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null));
+ BigtableTableAdminClient client = new BigtableTableAdminClientImpl(mockGrpcClient.Object, null);
+ Backup responseCallSettings = await client.GetBackupAsync(request.Name, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None));
+ xunit::Assert.Same(expectedResponse, responseCallSettings);
+ Backup responseCancellationToken = await client.GetBackupAsync(request.Name, st::CancellationToken.None);
+ xunit::Assert.Same(expectedResponse, responseCancellationToken);
+ mockGrpcClient.VerifyAll();
+ }
+
+ [xunit::FactAttribute]
+ public void GetBackupResourceNames()
+ {
+ moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict);
+ mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object);
+ GetBackupRequest request = new GetBackupRequest
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ };
+ Backup expectedResponse = new Backup
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ SourceTable = "source_table3c9665d0",
+ ExpireTime = new wkt::Timestamp(),
+ StartTime = new wkt::Timestamp(),
+ EndTime = new wkt::Timestamp(),
+ SizeBytes = 4628423819757039038L,
+ State = Backup.Types.State.Unspecified,
+ };
+ mockGrpcClient.Setup(x => x.GetBackup(request, moq::It.IsAny())).Returns(expectedResponse);
+ BigtableTableAdminClient client = new BigtableTableAdminClientImpl(mockGrpcClient.Object, null);
+ Backup response = client.GetBackup(request.BackupName);
+ xunit::Assert.Same(expectedResponse, response);
+ mockGrpcClient.VerifyAll();
+ }
+
+ [xunit::FactAttribute]
+ public async stt::Task GetBackupResourceNamesAsync()
+ {
+ moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict);
+ mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object);
+ GetBackupRequest request = new GetBackupRequest
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ };
+ Backup expectedResponse = new Backup
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ SourceTable = "source_table3c9665d0",
+ ExpireTime = new wkt::Timestamp(),
+ StartTime = new wkt::Timestamp(),
+ EndTime = new wkt::Timestamp(),
+ SizeBytes = 4628423819757039038L,
+ State = Backup.Types.State.Unspecified,
+ };
+ mockGrpcClient.Setup(x => x.GetBackupAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null));
+ BigtableTableAdminClient client = new BigtableTableAdminClientImpl(mockGrpcClient.Object, null);
+ Backup responseCallSettings = await client.GetBackupAsync(request.BackupName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None));
+ xunit::Assert.Same(expectedResponse, responseCallSettings);
+ Backup responseCancellationToken = await client.GetBackupAsync(request.BackupName, st::CancellationToken.None);
+ xunit::Assert.Same(expectedResponse, responseCancellationToken);
+ mockGrpcClient.VerifyAll();
+ }
+
[xunit::FactAttribute]
public void UpdateBackupRequestObject()
{
@@ -1491,6 +1599,62 @@ public void UpdateBackupRequestObject()
mockGrpcClient.VerifyAll();
}
+ [xunit::FactAttribute]
+ public void UpdateBackup()
+ {
+ moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict);
+ mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object);
+ UpdateBackupRequest request = new UpdateBackupRequest
+ {
+ Backup = new Backup(),
+ UpdateMask = new wkt::FieldMask(),
+ };
+ Backup expectedResponse = new Backup
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ SourceTable = "source_table3c9665d0",
+ ExpireTime = new wkt::Timestamp(),
+ StartTime = new wkt::Timestamp(),
+ EndTime = new wkt::Timestamp(),
+ SizeBytes = 4628423819757039038L,
+ State = Backup.Types.State.Unspecified,
+ };
+ mockGrpcClient.Setup(x => x.UpdateBackup(request, moq::It.IsAny())).Returns(expectedResponse);
+ BigtableTableAdminClient client = new BigtableTableAdminClientImpl(mockGrpcClient.Object, null);
+ Backup response = client.UpdateBackup(request.Backup, request.UpdateMask);
+ xunit::Assert.Same(expectedResponse, response);
+ mockGrpcClient.VerifyAll();
+ }
+
+ [xunit::FactAttribute]
+ public async stt::Task UpdateBackupAsync()
+ {
+ moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict);
+ mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object);
+ UpdateBackupRequest request = new UpdateBackupRequest
+ {
+ Backup = new Backup(),
+ UpdateMask = new wkt::FieldMask(),
+ };
+ Backup expectedResponse = new Backup
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ SourceTable = "source_table3c9665d0",
+ ExpireTime = new wkt::Timestamp(),
+ StartTime = new wkt::Timestamp(),
+ EndTime = new wkt::Timestamp(),
+ SizeBytes = 4628423819757039038L,
+ State = Backup.Types.State.Unspecified,
+ };
+ mockGrpcClient.Setup(x => x.UpdateBackupAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null));
+ BigtableTableAdminClient client = new BigtableTableAdminClientImpl(mockGrpcClient.Object, null);
+ Backup responseCallSettings = await client.UpdateBackupAsync(request.Backup, request.UpdateMask, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None));
+ xunit::Assert.Same(expectedResponse, responseCallSettings);
+ Backup responseCancellationToken = await client.UpdateBackupAsync(request.Backup, request.UpdateMask, st::CancellationToken.None);
+ xunit::Assert.Same(expectedResponse, responseCancellationToken);
+ mockGrpcClient.VerifyAll();
+ }
+
[xunit::FactAttribute]
public void DeleteBackupRequestObject()
{
@@ -1524,6 +1688,72 @@ public void DeleteBackupRequestObject()
mockGrpcClient.VerifyAll();
}
+ [xunit::FactAttribute]
+ public void DeleteBackup()
+ {
+ moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict);
+ mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object);
+ DeleteBackupRequest request = new DeleteBackupRequest
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ };
+ wkt::Empty expectedResponse = new wkt::Empty { };
+ mockGrpcClient.Setup(x => x.DeleteBackup(request, moq::It.IsAny())).Returns(expectedResponse);
+ BigtableTableAdminClient client = new BigtableTableAdminClientImpl(mockGrpcClient.Object, null);
+ client.DeleteBackup(request.Name);
+ mockGrpcClient.VerifyAll();
+ }
+
+ [xunit::FactAttribute]
+ public async stt::Task DeleteBackupAsync()
+ {
+ moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict);
+ mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object);
+ DeleteBackupRequest request = new DeleteBackupRequest
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ };
+ wkt::Empty expectedResponse = new wkt::Empty { };
+ mockGrpcClient.Setup(x => x.DeleteBackupAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null));
+ BigtableTableAdminClient client = new BigtableTableAdminClientImpl(mockGrpcClient.Object, null);
+ await client.DeleteBackupAsync(request.Name, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None));
+ await client.DeleteBackupAsync(request.Name, st::CancellationToken.None);
+ mockGrpcClient.VerifyAll();
+ }
+
+ [xunit::FactAttribute]
+ public void DeleteBackupResourceNames()
+ {
+ moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict);
+ mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object);
+ DeleteBackupRequest request = new DeleteBackupRequest
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ };
+ wkt::Empty expectedResponse = new wkt::Empty { };
+ mockGrpcClient.Setup(x => x.DeleteBackup(request, moq::It.IsAny())).Returns(expectedResponse);
+ BigtableTableAdminClient client = new BigtableTableAdminClientImpl(mockGrpcClient.Object, null);
+ client.DeleteBackup(request.BackupName);
+ mockGrpcClient.VerifyAll();
+ }
+
+ [xunit::FactAttribute]
+ public async stt::Task DeleteBackupResourceNamesAsync()
+ {
+ moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict);
+ mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object);
+ DeleteBackupRequest request = new DeleteBackupRequest
+ {
+ BackupName = BackupName.FromProjectInstanceClusterBackup("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"),
+ };
+ wkt::Empty expectedResponse = new wkt::Empty { };
+ mockGrpcClient.Setup(x => x.DeleteBackupAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null));
+ BigtableTableAdminClient client = new BigtableTableAdminClientImpl(mockGrpcClient.Object, null);
+ await client.DeleteBackupAsync(request.BackupName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None));
+ await client.DeleteBackupAsync(request.BackupName, st::CancellationToken.None);
+ mockGrpcClient.VerifyAll();
+ }
+
[xunit::FactAttribute]
public void GetIamPolicyRequestObject()
{
diff --git a/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdmin.cs b/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdmin.cs
index ad74b6e5a6ea..7c130aa28dc2 100644
--- a/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdmin.cs
+++ b/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdmin.cs
@@ -125,7 +125,7 @@ static BigtableTableAdminReflection() {
"YmxlLmFkbWluLnYyLk9wZXJhdGlvblByb2dyZXNzQg0KC3NvdXJjZV9pbmZv",
"ImwKHU9wdGltaXplUmVzdG9yZWRUYWJsZU1ldGFkYXRhEgwKBG5hbWUYASAB",
"KAkSPQoIcHJvZ3Jlc3MYAiABKAsyKy5nb29nbGUuYmlndGFibGUuYWRtaW4u",
- "djIuT3BlcmF0aW9uUHJvZ3Jlc3MygSQKEkJpZ3RhYmxlVGFibGVBZG1pbhKr",
+ "djIuT3BlcmF0aW9uUHJvZ3Jlc3MyyCQKEkJpZ3RhYmxlVGFibGVBZG1pbhKr",
"AQoLQ3JlYXRlVGFibGUSLC5nb29nbGUuYmlndGFibGUuYWRtaW4udjIuQ3Jl",
"YXRlVGFibGVSZXF1ZXN0Gh8uZ29vZ2xlLmJpZ3RhYmxlLmFkbWluLnYyLlRh",
"YmxlIk2C0+ST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aWd0YWJsZS5hZG1pbixodHRw",
+ "czovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Nsb3VkLWJpZ3RhYmxlLmFk",
+ "bWluLnRhYmxlLGh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvY2xv",
+ "dWQtcGxhdGZvcm0saHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9j",
+ "bG91ZC1wbGF0Zm9ybS5yZWFkLW9ubHlCugEKHGNvbS5nb29nbGUuYmlndGFi",
+ "bGUuYWRtaW4udjJCF0JpZ3RhYmxlVGFibGVBZG1pblByb3RvUAFaPWdvb2ds",
+ "ZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYmlndGFibGUvYWRt",
+ "aW4vdjI7YWRtaW6qAh5Hb29nbGUuQ2xvdWQuQmlndGFibGUuQWRtaW4uVjLK",
+ "Ah5Hb29nbGVcQ2xvdWRcQmlndGFibGVcQWRtaW5cVjJiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.Bigtable.Admin.V2.CommonReflection.Descriptor, global::Google.Cloud.Bigtable.Admin.V2.TableReflection.Descriptor, global::Google.Cloud.Iam.V1.IamPolicyReflection.Descriptor, global::Google.Cloud.Iam.V1.PolicyReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
diff --git a/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminClient.g.cs b/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminClient.g.cs
index 31eb67bdec5d..07e276c72766 100644
--- a/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminClient.g.cs
+++ b/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminClient.g.cs
@@ -2814,6 +2814,212 @@ public virtual void DeleteSnapshot(SnapshotName name, gaxgrpc::CallSettings call
public virtual stt::Task> PollOnceCreateBackupAsync(string operationName, gaxgrpc::CallSettings callSettings = null) =>
lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), CreateBackupOperationsClient, callSettings);
+ ///
+ /// Starts creating a new Cloud Bigtable Backup. The returned backup
+ /// [long-running operation][google.longrunning.Operation] can be used to
+ /// track creation of the backup. The
+ /// [metadata][google.longrunning.Operation.metadata] field type is
+ /// [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The
+ /// [response][google.longrunning.Operation.response] field type is
+ /// [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the
+ /// returned operation will stop the creation and delete the backup.
+ ///
+ ///
+ /// Required. This must be one of the clusters in the instance in which this
+ /// table is located. The backup will be stored in this cluster. Values are
+ /// of the form `projects/{project}/instances/{instance}/clusters/{cluster}`.
+ ///
+ ///
+ /// Required. The id of the backup to be created. The `backup_id` along with
+ /// the parent `parent` are combined as {parent}/backups/{backup_id} to create
+ /// the full backup name, of the form:
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+ /// This string must be between 1 and 50 characters in length and match the
+ /// regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+ ///
+ ///
+ /// Required. The backup to create.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The RPC response.
+ public virtual lro::Operation CreateBackup(string parent, string backupId, Backup backup, gaxgrpc::CallSettings callSettings = null) =>
+ CreateBackup(new CreateBackupRequest
+ {
+ Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)),
+ BackupId = gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId)),
+ Backup = gax::GaxPreconditions.CheckNotNull(backup, nameof(backup)),
+ }, callSettings);
+
+ ///
+ /// Starts creating a new Cloud Bigtable Backup. The returned backup
+ /// [long-running operation][google.longrunning.Operation] can be used to
+ /// track creation of the backup. The
+ /// [metadata][google.longrunning.Operation.metadata] field type is
+ /// [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The
+ /// [response][google.longrunning.Operation.response] field type is
+ /// [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the
+ /// returned operation will stop the creation and delete the backup.
+ ///
+ ///
+ /// Required. This must be one of the clusters in the instance in which this
+ /// table is located. The backup will be stored in this cluster. Values are
+ /// of the form `projects/{project}/instances/{instance}/clusters/{cluster}`.
+ ///
+ ///
+ /// Required. The id of the backup to be created. The `backup_id` along with
+ /// the parent `parent` are combined as {parent}/backups/{backup_id} to create
+ /// the full backup name, of the form:
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+ /// This string must be between 1 and 50 characters in length and match the
+ /// regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+ ///
+ ///
+ /// Required. The backup to create.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A Task containing the RPC response.
+ public virtual stt::Task> CreateBackupAsync(string parent, string backupId, Backup backup, gaxgrpc::CallSettings callSettings = null) =>
+ CreateBackupAsync(new CreateBackupRequest
+ {
+ Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)),
+ BackupId = gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId)),
+ Backup = gax::GaxPreconditions.CheckNotNull(backup, nameof(backup)),
+ }, callSettings);
+
+ ///
+ /// Starts creating a new Cloud Bigtable Backup. The returned backup
+ /// [long-running operation][google.longrunning.Operation] can be used to
+ /// track creation of the backup. The
+ /// [metadata][google.longrunning.Operation.metadata] field type is
+ /// [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The
+ /// [response][google.longrunning.Operation.response] field type is
+ /// [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the
+ /// returned operation will stop the creation and delete the backup.
+ ///
+ ///
+ /// Required. This must be one of the clusters in the instance in which this
+ /// table is located. The backup will be stored in this cluster. Values are
+ /// of the form `projects/{project}/instances/{instance}/clusters/{cluster}`.
+ ///
+ ///
+ /// Required. The id of the backup to be created. The `backup_id` along with
+ /// the parent `parent` are combined as {parent}/backups/{backup_id} to create
+ /// the full backup name, of the form:
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+ /// This string must be between 1 and 50 characters in length and match the
+ /// regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+ ///
+ ///
+ /// Required. The backup to create.
+ ///
+ /// A to use for this RPC.
+ /// A Task containing the RPC response.
+ public virtual stt::Task> CreateBackupAsync(string parent, string backupId, Backup backup, st::CancellationToken cancellationToken) =>
+ CreateBackupAsync(parent, backupId, backup, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
+ ///
+ /// Starts creating a new Cloud Bigtable Backup. The returned backup
+ /// [long-running operation][google.longrunning.Operation] can be used to
+ /// track creation of the backup. The
+ /// [metadata][google.longrunning.Operation.metadata] field type is
+ /// [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The
+ /// [response][google.longrunning.Operation.response] field type is
+ /// [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the
+ /// returned operation will stop the creation and delete the backup.
+ ///
+ ///
+ /// Required. This must be one of the clusters in the instance in which this
+ /// table is located. The backup will be stored in this cluster. Values are
+ /// of the form `projects/{project}/instances/{instance}/clusters/{cluster}`.
+ ///
+ ///
+ /// Required. The id of the backup to be created. The `backup_id` along with
+ /// the parent `parent` are combined as {parent}/backups/{backup_id} to create
+ /// the full backup name, of the form:
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+ /// This string must be between 1 and 50 characters in length and match the
+ /// regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+ ///
+ ///
+ /// Required. The backup to create.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The RPC response.
+ public virtual lro::Operation CreateBackup(ClusterName parent, string backupId, Backup backup, gaxgrpc::CallSettings callSettings = null) =>
+ CreateBackup(new CreateBackupRequest
+ {
+ ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
+ BackupId = gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId)),
+ Backup = gax::GaxPreconditions.CheckNotNull(backup, nameof(backup)),
+ }, callSettings);
+
+ ///
+ /// Starts creating a new Cloud Bigtable Backup. The returned backup
+ /// [long-running operation][google.longrunning.Operation] can be used to
+ /// track creation of the backup. The
+ /// [metadata][google.longrunning.Operation.metadata] field type is
+ /// [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The
+ /// [response][google.longrunning.Operation.response] field type is
+ /// [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the
+ /// returned operation will stop the creation and delete the backup.
+ ///
+ ///
+ /// Required. This must be one of the clusters in the instance in which this
+ /// table is located. The backup will be stored in this cluster. Values are
+ /// of the form `projects/{project}/instances/{instance}/clusters/{cluster}`.
+ ///
+ ///
+ /// Required. The id of the backup to be created. The `backup_id` along with
+ /// the parent `parent` are combined as {parent}/backups/{backup_id} to create
+ /// the full backup name, of the form:
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+ /// This string must be between 1 and 50 characters in length and match the
+ /// regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+ ///
+ ///
+ /// Required. The backup to create.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A Task containing the RPC response.
+ public virtual stt::Task> CreateBackupAsync(ClusterName parent, string backupId, Backup backup, gaxgrpc::CallSettings callSettings = null) =>
+ CreateBackupAsync(new CreateBackupRequest
+ {
+ ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
+ BackupId = gax::GaxPreconditions.CheckNotNullOrEmpty(backupId, nameof(backupId)),
+ Backup = gax::GaxPreconditions.CheckNotNull(backup, nameof(backup)),
+ }, callSettings);
+
+ ///
+ /// Starts creating a new Cloud Bigtable Backup. The returned backup
+ /// [long-running operation][google.longrunning.Operation] can be used to
+ /// track creation of the backup. The
+ /// [metadata][google.longrunning.Operation.metadata] field type is
+ /// [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The
+ /// [response][google.longrunning.Operation.response] field type is
+ /// [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the
+ /// returned operation will stop the creation and delete the backup.
+ ///
+ ///
+ /// Required. This must be one of the clusters in the instance in which this
+ /// table is located. The backup will be stored in this cluster. Values are
+ /// of the form `projects/{project}/instances/{instance}/clusters/{cluster}`.
+ ///
+ ///
+ /// Required. The id of the backup to be created. The `backup_id` along with
+ /// the parent `parent` are combined as {parent}/backups/{backup_id} to create
+ /// the full backup name, of the form:
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+ /// This string must be between 1 and 50 characters in length and match the
+ /// regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+ ///
+ ///
+ /// Required. The backup to create.
+ ///
+ /// A to use for this RPC.
+ /// A Task containing the RPC response.
+ public virtual stt::Task> CreateBackupAsync(ClusterName parent, string backupId, Backup backup, st::CancellationToken cancellationToken) =>
+ CreateBackupAsync(parent, backupId, backup, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
///
/// Gets metadata on a pending or completed Cloud Bigtable Backup.
///
@@ -2841,6 +3047,96 @@ public virtual Backup GetBackup(GetBackupRequest request, gaxgrpc::CallSettings
public virtual stt::Task GetBackupAsync(GetBackupRequest request, st::CancellationToken cancellationToken) =>
GetBackupAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+ ///
+ /// Gets metadata on a pending or completed Cloud Bigtable Backup.
+ ///
+ ///
+ /// Required. Name of the backup.
+ /// Values are of the form
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The RPC response.
+ public virtual Backup GetBackup(string name, gaxgrpc::CallSettings callSettings = null) =>
+ GetBackup(new GetBackupRequest
+ {
+ Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)),
+ }, callSettings);
+
+ ///
+ /// Gets metadata on a pending or completed Cloud Bigtable Backup.
+ ///
+ ///
+ /// Required. Name of the backup.
+ /// Values are of the form
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A Task containing the RPC response.
+ public virtual stt::Task GetBackupAsync(string name, gaxgrpc::CallSettings callSettings = null) =>
+ GetBackupAsync(new GetBackupRequest
+ {
+ Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)),
+ }, callSettings);
+
+ ///
+ /// Gets metadata on a pending or completed Cloud Bigtable Backup.
+ ///
+ ///
+ /// Required. Name of the backup.
+ /// Values are of the form
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`.
+ ///
+ /// A to use for this RPC.
+ /// A Task containing the RPC response.
+ public virtual stt::Task GetBackupAsync(string name, st::CancellationToken cancellationToken) =>
+ GetBackupAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
+ ///
+ /// Gets metadata on a pending or completed Cloud Bigtable Backup.
+ ///
+ ///
+ /// Required. Name of the backup.
+ /// Values are of the form
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The RPC response.
+ public virtual Backup GetBackup(BackupName name, gaxgrpc::CallSettings callSettings = null) =>
+ GetBackup(new GetBackupRequest
+ {
+ BackupName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
+ }, callSettings);
+
+ ///
+ /// Gets metadata on a pending or completed Cloud Bigtable Backup.
+ ///
+ ///
+ /// Required. Name of the backup.
+ /// Values are of the form
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A Task containing the RPC response.
+ public virtual stt::Task GetBackupAsync(BackupName name, gaxgrpc::CallSettings callSettings = null) =>
+ GetBackupAsync(new GetBackupRequest
+ {
+ BackupName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
+ }, callSettings);
+
+ ///
+ /// Gets metadata on a pending or completed Cloud Bigtable Backup.
+ ///
+ ///
+ /// Required. Name of the backup.
+ /// Values are of the form
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`.
+ ///
+ /// A to use for this RPC.
+ /// A Task containing the RPC response.
+ public virtual stt::Task GetBackupAsync(BackupName name, st::CancellationToken cancellationToken) =>
+ GetBackupAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
///
/// Updates a pending or completed Cloud Bigtable Backup.
///
@@ -2868,6 +3164,77 @@ public virtual Backup UpdateBackup(UpdateBackupRequest request, gaxgrpc::CallSet
public virtual stt::Task UpdateBackupAsync(UpdateBackupRequest request, st::CancellationToken cancellationToken) =>
UpdateBackupAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+ ///
+ /// Updates a pending or completed Cloud Bigtable Backup.
+ ///
+ ///
+ /// Required. The backup to update. `backup.name`, and the fields to be updated
+ /// as specified by `update_mask` are required. Other fields are ignored.
+ /// Update is only supported for the following fields:
+ /// * `backup.expire_time`.
+ ///
+ ///
+ /// Required. A mask specifying which fields (e.g. `expire_time`) in the
+ /// Backup resource should be updated. This mask is relative to the Backup
+ /// resource, not to the request message. The field mask must always be
+ /// specified; this prevents any future fields from being erased accidentally
+ /// by clients that do not know about them.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The RPC response.
+ public virtual Backup UpdateBackup(Backup backup, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) =>
+ UpdateBackup(new UpdateBackupRequest
+ {
+ Backup = gax::GaxPreconditions.CheckNotNull(backup, nameof(backup)),
+ UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)),
+ }, callSettings);
+
+ ///
+ /// Updates a pending or completed Cloud Bigtable Backup.
+ ///
+ ///
+ /// Required. The backup to update. `backup.name`, and the fields to be updated
+ /// as specified by `update_mask` are required. Other fields are ignored.
+ /// Update is only supported for the following fields:
+ /// * `backup.expire_time`.
+ ///
+ ///
+ /// Required. A mask specifying which fields (e.g. `expire_time`) in the
+ /// Backup resource should be updated. This mask is relative to the Backup
+ /// resource, not to the request message. The field mask must always be
+ /// specified; this prevents any future fields from being erased accidentally
+ /// by clients that do not know about them.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A Task containing the RPC response.
+ public virtual stt::Task UpdateBackupAsync(Backup backup, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) =>
+ UpdateBackupAsync(new UpdateBackupRequest
+ {
+ Backup = gax::GaxPreconditions.CheckNotNull(backup, nameof(backup)),
+ UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)),
+ }, callSettings);
+
+ ///
+ /// Updates a pending or completed Cloud Bigtable Backup.
+ ///
+ ///
+ /// Required. The backup to update. `backup.name`, and the fields to be updated
+ /// as specified by `update_mask` are required. Other fields are ignored.
+ /// Update is only supported for the following fields:
+ /// * `backup.expire_time`.
+ ///
+ ///
+ /// Required. A mask specifying which fields (e.g. `expire_time`) in the
+ /// Backup resource should be updated. This mask is relative to the Backup
+ /// resource, not to the request message. The field mask must always be
+ /// specified; this prevents any future fields from being erased accidentally
+ /// by clients that do not know about them.
+ ///
+ /// A to use for this RPC.
+ /// A Task containing the RPC response.
+ public virtual stt::Task UpdateBackupAsync(Backup backup, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) =>
+ UpdateBackupAsync(backup, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
///
/// Deletes a pending or completed Cloud Bigtable backup.
///
@@ -2895,6 +3262,96 @@ public virtual void DeleteBackup(DeleteBackupRequest request, gaxgrpc::CallSetti
public virtual stt::Task DeleteBackupAsync(DeleteBackupRequest request, st::CancellationToken cancellationToken) =>
DeleteBackupAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+ ///
+ /// Deletes a pending or completed Cloud Bigtable backup.
+ ///
+ ///
+ /// Required. Name of the backup to delete.
+ /// Values are of the form
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The RPC response.
+ public virtual void DeleteBackup(string name, gaxgrpc::CallSettings callSettings = null) =>
+ DeleteBackup(new DeleteBackupRequest
+ {
+ Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)),
+ }, callSettings);
+
+ ///
+ /// Deletes a pending or completed Cloud Bigtable backup.
+ ///
+ ///
+ /// Required. Name of the backup to delete.
+ /// Values are of the form
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A Task containing the RPC response.
+ public virtual stt::Task DeleteBackupAsync(string name, gaxgrpc::CallSettings callSettings = null) =>
+ DeleteBackupAsync(new DeleteBackupRequest
+ {
+ Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)),
+ }, callSettings);
+
+ ///
+ /// Deletes a pending or completed Cloud Bigtable backup.
+ ///
+ ///
+ /// Required. Name of the backup to delete.
+ /// Values are of the form
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`.
+ ///
+ /// A to use for this RPC.
+ /// A Task containing the RPC response.
+ public virtual stt::Task DeleteBackupAsync(string name, st::CancellationToken cancellationToken) =>
+ DeleteBackupAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
+ ///
+ /// Deletes a pending or completed Cloud Bigtable backup.
+ ///
+ ///
+ /// Required. Name of the backup to delete.
+ /// Values are of the form
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// The RPC response.
+ public virtual void DeleteBackup(BackupName name, gaxgrpc::CallSettings callSettings = null) =>
+ DeleteBackup(new DeleteBackupRequest
+ {
+ BackupName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
+ }, callSettings);
+
+ ///
+ /// Deletes a pending or completed Cloud Bigtable backup.
+ ///
+ ///
+ /// Required. Name of the backup to delete.
+ /// Values are of the form
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A Task containing the RPC response.
+ public virtual stt::Task DeleteBackupAsync(BackupName name, gaxgrpc::CallSettings callSettings = null) =>
+ DeleteBackupAsync(new DeleteBackupRequest
+ {
+ BackupName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
+ }, callSettings);
+
+ ///
+ /// Deletes a pending or completed Cloud Bigtable backup.
+ ///
+ ///
+ /// Required. Name of the backup to delete.
+ /// Values are of the form
+ /// `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`.
+ ///
+ /// A to use for this RPC.
+ /// A Task containing the RPC response.
+ public virtual stt::Task DeleteBackupAsync(BackupName name, st::CancellationToken cancellationToken) =>
+ DeleteBackupAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
+
///
/// Lists Cloud Bigtable backups. Returns both completed and pending
/// backups.
@@ -2915,6 +3372,118 @@ public virtual void DeleteBackup(DeleteBackupRequest request, gaxgrpc::CallSetti
public virtual gax::PagedAsyncEnumerable ListBackupsAsync(ListBackupsRequest request, gaxgrpc::CallSettings callSettings = null) =>
throw new sys::NotImplementedException();
+ ///
+ /// Lists Cloud Bigtable backups. Returns both completed and pending
+ /// backups.
+ ///
+ ///
+ /// Required. The cluster to list backups from. Values are of the
+ /// form `projects/{project}/instances/{instance}/clusters/{cluster}`.
+ /// Use `{cluster} = '-'` to list backups for all clusters in an instance,
+ /// e.g., `projects/{project}/instances/{instance}/clusters/-`.
+ ///
+ ///
+ /// The token returned from the previous request. A value of null or an empty string retrieves the first
+ /// page.
+ ///
+ ///
+ /// The size of page to request. The response will not be larger than this, but may be smaller. A value of
+ /// null or 0 uses a server-defined page size.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A pageable sequence of resources.
+ public virtual gax::PagedEnumerable ListBackups(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) =>
+ ListBackups(new ListBackupsRequest
+ {
+ Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)),
+ PageToken = pageToken ?? "",
+ PageSize = pageSize ?? 0,
+ }, callSettings);
+
+ ///
+ /// Lists Cloud Bigtable backups. Returns both completed and pending
+ /// backups.
+ ///
+ ///
+ /// Required. The cluster to list backups from. Values are of the
+ /// form `projects/{project}/instances/{instance}/clusters/{cluster}`.
+ /// Use `{cluster} = '-'` to list backups for all clusters in an instance,
+ /// e.g., `projects/{project}/instances/{instance}/clusters/-`.
+ ///
+ ///
+ /// The token returned from the previous request. A value of null or an empty string retrieves the first
+ /// page.
+ ///
+ ///
+ /// The size of page to request. The response will not be larger than this, but may be smaller. A value of
+ /// null or 0 uses a server-defined page size.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A pageable asynchronous sequence of resources.
+ public virtual gax::PagedAsyncEnumerable ListBackupsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) =>
+ ListBackupsAsync(new ListBackupsRequest
+ {
+ Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)),
+ PageToken = pageToken ?? "",
+ PageSize = pageSize ?? 0,
+ }, callSettings);
+
+ ///
+ /// Lists Cloud Bigtable backups. Returns both completed and pending
+ /// backups.
+ ///
+ ///
+ /// Required. The cluster to list backups from. Values are of the
+ /// form `projects/{project}/instances/{instance}/clusters/{cluster}`.
+ /// Use `{cluster} = '-'` to list backups for all clusters in an instance,
+ /// e.g., `projects/{project}/instances/{instance}/clusters/-`.
+ ///
+ ///
+ /// The token returned from the previous request. A value of null or an empty string retrieves the first
+ /// page.
+ ///
+ ///
+ /// The size of page to request. The response will not be larger than this, but may be smaller. A value of
+ /// null or 0 uses a server-defined page size.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A pageable sequence of resources.
+ public virtual gax::PagedEnumerable ListBackups(ClusterName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) =>
+ ListBackups(new ListBackupsRequest
+ {
+ ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
+ PageToken = pageToken ?? "",
+ PageSize = pageSize ?? 0,
+ }, callSettings);
+
+ ///
+ /// Lists Cloud Bigtable backups. Returns both completed and pending
+ /// backups.
+ ///
+ ///
+ /// Required. The cluster to list backups from. Values are of the
+ /// form `projects/{project}/instances/{instance}/clusters/{cluster}`.
+ /// Use `{cluster} = '-'` to list backups for all clusters in an instance,
+ /// e.g., `projects/{project}/instances/{instance}/clusters/-`.
+ ///
+ ///
+ /// The token returned from the previous request. A value of null or an empty string retrieves the first
+ /// page.
+ ///
+ ///
+ /// The size of page to request. The response will not be larger than this, but may be smaller. A value of
+ /// null or 0 uses a server-defined page size.
+ ///
+ /// If not null, applies overrides to this RPC call.
+ /// A pageable asynchronous sequence of resources.
+ public virtual gax::PagedAsyncEnumerable ListBackupsAsync(ClusterName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) =>
+ ListBackupsAsync(new ListBackupsRequest
+ {
+ ParentAsClusterName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)),
+ PageToken = pageToken ?? "",
+ PageSize = pageSize ?? 0,
+ }, callSettings);
+
///
/// Create a new table by restoring from a completed backup. The new table
/// must be in the same instance as the instance containing the backup. The
diff --git a/apis/Google.Cloud.Bigtable.Admin.V2/synth.metadata b/apis/Google.Cloud.Bigtable.Admin.V2/synth.metadata
index 5da0e493fb8b..f281c56f991a 100644
--- a/apis/Google.Cloud.Bigtable.Admin.V2/synth.metadata
+++ b/apis/Google.Cloud.Bigtable.Admin.V2/synth.metadata
@@ -1,18 +1,11 @@
{
"sources": [
- {
- "git": {
- "name": ".",
- "remote": "https://github.com/googleapis/google-cloud-dotnet.git",
- "sha": "f3e627ac0972417f8af7e51937b3a8541c089cac"
- }
- },
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "80dac49dd5f407b14f15ac86b4922967b5dd6508"
+ "sha": "756b174de4a122461993c1c583345533d819936d"
}
}
]
-}
\ No newline at end of file
+}