diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupAsyncSnippet.g.cs
deleted file mode 100644
index 19a304756dca..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupAsyncSnippet.g.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_AbandonBackup_async_flattened]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for AbandonBackupAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task AbandonBackupAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = await backupDRClient.AbandonBackupAsync(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = await backupDRClient.PollOnceAbandonBackupAsync(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;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_AbandonBackup_async_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupRequestObjectAsyncSnippet.g.cs
deleted file mode 100644
index 562a7a3db9ce..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupRequestObjectAsyncSnippet.g.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_AbandonBackup_async]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for AbandonBackupAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task AbandonBackupRequestObjectAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- AbandonBackupRequest request = new AbandonBackupRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- RequestId = "",
- };
- // Make the request
- Operation response = await backupDRClient.AbandonBackupAsync(request);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = await backupDRClient.PollOnceAbandonBackupAsync(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;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_AbandonBackup_async]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupRequestObjectSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupRequestObjectSnippet.g.cs
deleted file mode 100644
index cf0cd7344e02..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupRequestObjectSnippet.g.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_AbandonBackup_sync]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for AbandonBackup
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void AbandonBackupRequestObject()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- AbandonBackupRequest request = new AbandonBackupRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- RequestId = "",
- };
- // Make the request
- Operation response = backupDRClient.AbandonBackup(request);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = backupDRClient.PollOnceAbandonBackup(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;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_AbandonBackup_sync]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupResourceNamesAsyncSnippet.g.cs
deleted file mode 100644
index 068e13f84eb8..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupResourceNamesAsyncSnippet.g.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_AbandonBackup_async_flattened_resourceNames]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for AbandonBackupAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task AbandonBackupResourceNamesAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = await backupDRClient.AbandonBackupAsync(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = await backupDRClient.PollOnceAbandonBackupAsync(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;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_AbandonBackup_async_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupResourceNamesSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupResourceNamesSnippet.g.cs
deleted file mode 100644
index 44afc3b0b63a..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupResourceNamesSnippet.g.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_AbandonBackup_sync_flattened_resourceNames]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for AbandonBackup
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void AbandonBackupResourceNames()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = backupDRClient.AbandonBackup(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = backupDRClient.PollOnceAbandonBackup(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;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_AbandonBackup_sync_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupSnippet.g.cs
deleted file mode 100644
index 5416f46a7177..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.AbandonBackupSnippet.g.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_AbandonBackup_sync_flattened]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for AbandonBackup
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void AbandonBackup()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = backupDRClient.AbandonBackup(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = backupDRClient.PollOnceAbandonBackup(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;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_AbandonBackup_sync_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenAsyncSnippet.g.cs
deleted file mode 100644
index cb75e7209221..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenAsyncSnippet.g.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_FetchAccessToken_async_flattened]
- using Google.Cloud.BackupDR.V1;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for FetchAccessTokenAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task FetchAccessTokenAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- FetchAccessTokenResponse response = await backupDRClient.FetchAccessTokenAsync(name);
- }
- }
- // [END backupdr_v1_generated_BackupDR_FetchAccessToken_async_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenRequestObjectAsyncSnippet.g.cs
deleted file mode 100644
index 693a09a148b9..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenRequestObjectAsyncSnippet.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_FetchAccessToken_async]
- using Google.Cloud.BackupDR.V1;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for FetchAccessTokenAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task FetchAccessTokenRequestObjectAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- FetchAccessTokenRequest request = new FetchAccessTokenRequest
- {
- DataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- GenerationId = 0,
- };
- // Make the request
- FetchAccessTokenResponse response = await backupDRClient.FetchAccessTokenAsync(request);
- }
- }
- // [END backupdr_v1_generated_BackupDR_FetchAccessToken_async]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenRequestObjectSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenRequestObjectSnippet.g.cs
deleted file mode 100644
index e7343a148f8b..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenRequestObjectSnippet.g.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_FetchAccessToken_sync]
- using Google.Cloud.BackupDR.V1;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for FetchAccessToken
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void FetchAccessTokenRequestObject()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- FetchAccessTokenRequest request = new FetchAccessTokenRequest
- {
- DataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- GenerationId = 0,
- };
- // Make the request
- FetchAccessTokenResponse response = backupDRClient.FetchAccessToken(request);
- }
- }
- // [END backupdr_v1_generated_BackupDR_FetchAccessToken_sync]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenResourceNamesAsyncSnippet.g.cs
deleted file mode 100644
index fca024bc6f98..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenResourceNamesAsyncSnippet.g.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_FetchAccessToken_async_flattened_resourceNames]
- using Google.Cloud.BackupDR.V1;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for FetchAccessTokenAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task FetchAccessTokenResourceNamesAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- DataSourceName name = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- FetchAccessTokenResponse response = await backupDRClient.FetchAccessTokenAsync(name);
- }
- }
- // [END backupdr_v1_generated_BackupDR_FetchAccessToken_async_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenResourceNamesSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenResourceNamesSnippet.g.cs
deleted file mode 100644
index 015c429d78f7..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenResourceNamesSnippet.g.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_FetchAccessToken_sync_flattened_resourceNames]
- using Google.Cloud.BackupDR.V1;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for FetchAccessToken
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void FetchAccessTokenResourceNames()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- DataSourceName name = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- FetchAccessTokenResponse response = backupDRClient.FetchAccessToken(name);
- }
- }
- // [END backupdr_v1_generated_BackupDR_FetchAccessToken_sync_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenSnippet.g.cs
deleted file mode 100644
index 4b40937df195..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FetchAccessTokenSnippet.g.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_FetchAccessToken_sync_flattened]
- using Google.Cloud.BackupDR.V1;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for FetchAccessToken
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void FetchAccessToken()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- FetchAccessTokenResponse response = backupDRClient.FetchAccessToken(name);
- }
- }
- // [END backupdr_v1_generated_BackupDR_FetchAccessToken_sync_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupAsyncSnippet.g.cs
deleted file mode 100644
index 8d62066ffce4..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupAsyncSnippet.g.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_FinalizeBackup_async_flattened]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for FinalizeBackupAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task FinalizeBackupAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = await backupDRClient.FinalizeBackupAsync(dataSource);
-
- // 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 backupDRClient.PollOnceFinalizeBackupAsync(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 backupdr_v1_generated_BackupDR_FinalizeBackup_async_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupRequestObjectAsyncSnippet.g.cs
deleted file mode 100644
index 163c4e721213..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupRequestObjectAsyncSnippet.g.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_FinalizeBackup_async]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for FinalizeBackupAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task FinalizeBackupRequestObjectAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- FinalizeBackupRequest request = new FinalizeBackupRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- Description = "",
- ConsistencyTime = new Timestamp(),
- RequestId = "",
- BackupId = "",
- RecoveryRangeStartTime = new Timestamp(),
- RecoveryRangeEndTime = new Timestamp(),
- RetentionDuration = new Duration(),
- };
- // Make the request
- Operation response = await backupDRClient.FinalizeBackupAsync(request);
-
- // 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 backupDRClient.PollOnceFinalizeBackupAsync(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 backupdr_v1_generated_BackupDR_FinalizeBackup_async]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupRequestObjectSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupRequestObjectSnippet.g.cs
deleted file mode 100644
index f54c3b49722b..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupRequestObjectSnippet.g.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_FinalizeBackup_sync]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for FinalizeBackup
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void FinalizeBackupRequestObject()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- FinalizeBackupRequest request = new FinalizeBackupRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- Description = "",
- ConsistencyTime = new Timestamp(),
- RequestId = "",
- BackupId = "",
- RecoveryRangeStartTime = new Timestamp(),
- RecoveryRangeEndTime = new Timestamp(),
- RetentionDuration = new Duration(),
- };
- // Make the request
- Operation response = backupDRClient.FinalizeBackup(request);
-
- // 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 = backupDRClient.PollOnceFinalizeBackup(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 backupdr_v1_generated_BackupDR_FinalizeBackup_sync]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupResourceNamesAsyncSnippet.g.cs
deleted file mode 100644
index c5bb2b7be868..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupResourceNamesAsyncSnippet.g.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_FinalizeBackup_async_flattened_resourceNames]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for FinalizeBackupAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task FinalizeBackupResourceNamesAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = await backupDRClient.FinalizeBackupAsync(dataSource);
-
- // 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 backupDRClient.PollOnceFinalizeBackupAsync(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 backupdr_v1_generated_BackupDR_FinalizeBackup_async_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupResourceNamesSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupResourceNamesSnippet.g.cs
deleted file mode 100644
index 1277164986dc..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupResourceNamesSnippet.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_FinalizeBackup_sync_flattened_resourceNames]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for FinalizeBackup
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void FinalizeBackupResourceNames()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = backupDRClient.FinalizeBackup(dataSource);
-
- // 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 = backupDRClient.PollOnceFinalizeBackup(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 backupdr_v1_generated_BackupDR_FinalizeBackup_sync_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupSnippet.g.cs
deleted file mode 100644
index 860ac82da25c..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.FinalizeBackupSnippet.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_FinalizeBackup_sync_flattened]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for FinalizeBackup
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void FinalizeBackup()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = backupDRClient.FinalizeBackup(dataSource);
-
- // 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 = backupDRClient.PollOnceFinalizeBackup(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 backupdr_v1_generated_BackupDR_FinalizeBackup_sync_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupAsyncSnippet.g.cs
deleted file mode 100644
index 97e4d5783f3e..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupAsyncSnippet.g.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_InitiateBackup_async_flattened]
- using Google.Cloud.BackupDR.V1;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for InitiateBackupAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task InitiateBackupAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- InitiateBackupResponse response = await backupDRClient.InitiateBackupAsync(dataSource);
- }
- }
- // [END backupdr_v1_generated_BackupDR_InitiateBackup_async_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupRequestObjectAsyncSnippet.g.cs
deleted file mode 100644
index bd2e71b855b4..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupRequestObjectAsyncSnippet.g.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_InitiateBackup_async]
- using Google.Cloud.BackupDR.V1;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for InitiateBackupAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task InitiateBackupRequestObjectAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- InitiateBackupRequest request = new InitiateBackupRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- RequestId = "",
- BackupId = "",
- };
- // Make the request
- InitiateBackupResponse response = await backupDRClient.InitiateBackupAsync(request);
- }
- }
- // [END backupdr_v1_generated_BackupDR_InitiateBackup_async]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupRequestObjectSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupRequestObjectSnippet.g.cs
deleted file mode 100644
index 82d1522cd5e8..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupRequestObjectSnippet.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_InitiateBackup_sync]
- using Google.Cloud.BackupDR.V1;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for InitiateBackup
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void InitiateBackupRequestObject()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- InitiateBackupRequest request = new InitiateBackupRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- RequestId = "",
- BackupId = "",
- };
- // Make the request
- InitiateBackupResponse response = backupDRClient.InitiateBackup(request);
- }
- }
- // [END backupdr_v1_generated_BackupDR_InitiateBackup_sync]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupResourceNamesAsyncSnippet.g.cs
deleted file mode 100644
index d1bf1c681ba9..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupResourceNamesAsyncSnippet.g.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_InitiateBackup_async_flattened_resourceNames]
- using Google.Cloud.BackupDR.V1;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for InitiateBackupAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task InitiateBackupResourceNamesAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- InitiateBackupResponse response = await backupDRClient.InitiateBackupAsync(dataSource);
- }
- }
- // [END backupdr_v1_generated_BackupDR_InitiateBackup_async_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupResourceNamesSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupResourceNamesSnippet.g.cs
deleted file mode 100644
index 1ea4c9c32671..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupResourceNamesSnippet.g.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_InitiateBackup_sync_flattened_resourceNames]
- using Google.Cloud.BackupDR.V1;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for InitiateBackup
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void InitiateBackupResourceNames()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- InitiateBackupResponse response = backupDRClient.InitiateBackup(dataSource);
- }
- }
- // [END backupdr_v1_generated_BackupDR_InitiateBackup_sync_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupSnippet.g.cs
deleted file mode 100644
index 8fa836473254..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.InitiateBackupSnippet.g.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_InitiateBackup_sync_flattened]
- using Google.Cloud.BackupDR.V1;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for InitiateBackup
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void InitiateBackup()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- InitiateBackupResponse response = backupDRClient.InitiateBackup(dataSource);
- }
- }
- // [END backupdr_v1_generated_BackupDR_InitiateBackup_sync_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceAsyncSnippet.g.cs
deleted file mode 100644
index 8b3dc04529e9..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceAsyncSnippet.g.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_RemoveDataSource_async_flattened]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for RemoveDataSourceAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task RemoveDataSourceAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = await backupDRClient.RemoveDataSourceAsync(name);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = await backupDRClient.PollOnceRemoveDataSourceAsync(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;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_RemoveDataSource_async_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceRequestObjectAsyncSnippet.g.cs
deleted file mode 100644
index c22b88e67250..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceRequestObjectAsyncSnippet.g.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_RemoveDataSource_async]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for RemoveDataSourceAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task RemoveDataSourceRequestObjectAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- RemoveDataSourceRequest request = new RemoveDataSourceRequest
- {
- DataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- RequestId = "",
- };
- // Make the request
- Operation response = await backupDRClient.RemoveDataSourceAsync(request);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = await backupDRClient.PollOnceRemoveDataSourceAsync(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;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_RemoveDataSource_async]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceRequestObjectSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceRequestObjectSnippet.g.cs
deleted file mode 100644
index 5b177db92eae..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceRequestObjectSnippet.g.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_RemoveDataSource_sync]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for RemoveDataSource
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void RemoveDataSourceRequestObject()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- RemoveDataSourceRequest request = new RemoveDataSourceRequest
- {
- DataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- RequestId = "",
- };
- // Make the request
- Operation response = backupDRClient.RemoveDataSource(request);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = backupDRClient.PollOnceRemoveDataSource(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;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_RemoveDataSource_sync]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceResourceNamesAsyncSnippet.g.cs
deleted file mode 100644
index 7a9daf1dbd34..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceResourceNamesAsyncSnippet.g.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_RemoveDataSource_async_flattened_resourceNames]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for RemoveDataSourceAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task RemoveDataSourceResourceNamesAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- DataSourceName name = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = await backupDRClient.RemoveDataSourceAsync(name);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = await backupDRClient.PollOnceRemoveDataSourceAsync(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;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_RemoveDataSource_async_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceResourceNamesSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceResourceNamesSnippet.g.cs
deleted file mode 100644
index 76558172e285..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceResourceNamesSnippet.g.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_RemoveDataSource_sync_flattened_resourceNames]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for RemoveDataSource
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void RemoveDataSourceResourceNames()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- DataSourceName name = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = backupDRClient.RemoveDataSource(name);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = backupDRClient.PollOnceRemoveDataSource(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;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_RemoveDataSource_sync_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceSnippet.g.cs
deleted file mode 100644
index ffd32de97db9..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.RemoveDataSourceSnippet.g.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_RemoveDataSource_sync_flattened]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf.WellKnownTypes;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for RemoveDataSource
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void RemoveDataSource()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = backupDRClient.RemoveDataSource(name);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = backupDRClient.PollOnceRemoveDataSource(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;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_RemoveDataSource_sync_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusAsyncSnippet.g.cs
deleted file mode 100644
index 7a89ad4f65d5..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusAsyncSnippet.g.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_SetInternalStatus_async_flattened]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for SetInternalStatusAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task SetInternalStatusAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = await backupDRClient.SetInternalStatusAsync(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation completedResponse = await response.PollUntilCompletedAsync();
- // Retrieve the operation result
- SetInternalStatusResponse result = completedResponse.Result;
-
- // Or get 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 backupDRClient.PollOnceSetInternalStatusAsync(operationName);
- // Check if the retrieved long-running operation has completed
- if (retrievedResponse.IsCompleted)
- {
- // If it has completed, then access the result
- SetInternalStatusResponse retrievedResult = retrievedResponse.Result;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_SetInternalStatus_async_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusRequestObjectAsyncSnippet.g.cs
deleted file mode 100644
index 4edc7009dfb7..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusRequestObjectAsyncSnippet.g.cs
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_SetInternalStatus_async]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for SetInternalStatusAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task SetInternalStatusRequestObjectAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- SetInternalStatusRequest request = new SetInternalStatusRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- Value = ByteString.Empty,
- BackupConfigState = BackupConfigState.Unspecified,
- RequestId = "",
- };
- // Make the request
- Operation response = await backupDRClient.SetInternalStatusAsync(request);
-
- // Poll until the returned long-running operation is complete
- Operation completedResponse = await response.PollUntilCompletedAsync();
- // Retrieve the operation result
- SetInternalStatusResponse result = completedResponse.Result;
-
- // Or get 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 backupDRClient.PollOnceSetInternalStatusAsync(operationName);
- // Check if the retrieved long-running operation has completed
- if (retrievedResponse.IsCompleted)
- {
- // If it has completed, then access the result
- SetInternalStatusResponse retrievedResult = retrievedResponse.Result;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_SetInternalStatus_async]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusRequestObjectSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusRequestObjectSnippet.g.cs
deleted file mode 100644
index dfceabf4f3ac..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusRequestObjectSnippet.g.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_SetInternalStatus_sync]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using Google.Protobuf;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for SetInternalStatus
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void SetInternalStatusRequestObject()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- SetInternalStatusRequest request = new SetInternalStatusRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- Value = ByteString.Empty,
- BackupConfigState = BackupConfigState.Unspecified,
- RequestId = "",
- };
- // Make the request
- Operation response = backupDRClient.SetInternalStatus(request);
-
- // Poll until the returned long-running operation is complete
- Operation completedResponse = response.PollUntilCompleted();
- // Retrieve the operation result
- SetInternalStatusResponse result = completedResponse.Result;
-
- // Or get 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 = backupDRClient.PollOnceSetInternalStatus(operationName);
- // Check if the retrieved long-running operation has completed
- if (retrievedResponse.IsCompleted)
- {
- // If it has completed, then access the result
- SetInternalStatusResponse retrievedResult = retrievedResponse.Result;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_SetInternalStatus_sync]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusResourceNamesAsyncSnippet.g.cs
deleted file mode 100644
index fe05edc86d3b..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusResourceNamesAsyncSnippet.g.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_SetInternalStatus_async_flattened_resourceNames]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for SetInternalStatusAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task SetInternalStatusResourceNamesAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = await backupDRClient.SetInternalStatusAsync(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation completedResponse = await response.PollUntilCompletedAsync();
- // Retrieve the operation result
- SetInternalStatusResponse result = completedResponse.Result;
-
- // Or get 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 backupDRClient.PollOnceSetInternalStatusAsync(operationName);
- // Check if the retrieved long-running operation has completed
- if (retrievedResponse.IsCompleted)
- {
- // If it has completed, then access the result
- SetInternalStatusResponse retrievedResult = retrievedResponse.Result;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_SetInternalStatus_async_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusResourceNamesSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusResourceNamesSnippet.g.cs
deleted file mode 100644
index 8cb66d297ce0..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusResourceNamesSnippet.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_SetInternalStatus_sync_flattened_resourceNames]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for SetInternalStatus
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void SetInternalStatusResourceNames()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = backupDRClient.SetInternalStatus(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation completedResponse = response.PollUntilCompleted();
- // Retrieve the operation result
- SetInternalStatusResponse result = completedResponse.Result;
-
- // Or get 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 = backupDRClient.PollOnceSetInternalStatus(operationName);
- // Check if the retrieved long-running operation has completed
- if (retrievedResponse.IsCompleted)
- {
- // If it has completed, then access the result
- SetInternalStatusResponse retrievedResult = retrievedResponse.Result;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_SetInternalStatus_sync_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusSnippet.g.cs
deleted file mode 100644
index 75de957733d3..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.SetInternalStatusSnippet.g.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_SetInternalStatus_sync_flattened]
- using Google.Cloud.BackupDR.V1;
- using Google.LongRunning;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for SetInternalStatus
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void SetInternalStatus()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = backupDRClient.SetInternalStatus(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation completedResponse = response.PollUntilCompleted();
- // Retrieve the operation result
- SetInternalStatusResponse result = completedResponse.Result;
-
- // Or get 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 = backupDRClient.PollOnceSetInternalStatus(operationName);
- // Check if the retrieved long-running operation has completed
- if (retrievedResponse.IsCompleted)
- {
- // If it has completed, then access the result
- SetInternalStatusResponse retrievedResult = retrievedResponse.Result;
- }
- }
- }
- // [END backupdr_v1_generated_BackupDR_SetInternalStatus_sync_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsAsyncSnippet.g.cs
deleted file mode 100644
index 616737fddb9a..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsAsyncSnippet.g.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_TestIamPermissions_async_flattened]
- using Google.Cloud.BackupDR.V1;
- using Google.Cloud.Iam.V1;
- using System.Collections.Generic;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for TestIamPermissionsAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task TestIamPermissionsAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string resource = "a/wildcard/resource";
- IEnumerable permissions = new string[] { "", };
- // Make the request
- TestIamPermissionsResponse response = await backupDRClient.TestIamPermissionsAsync(resource, permissions);
- }
- }
- // [END backupdr_v1_generated_BackupDR_TestIamPermissions_async_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs
deleted file mode 100644
index f39c36ac37b5..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_TestIamPermissions_async]
- using Google.Api.Gax;
- using Google.Cloud.BackupDR.V1;
- using Google.Cloud.Iam.V1;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for TestIamPermissionsAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task TestIamPermissionsRequestObjectAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- TestIamPermissionsRequest request = new TestIamPermissionsRequest
- {
- ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
- Permissions = { "", },
- };
- // Make the request
- TestIamPermissionsResponse response = await backupDRClient.TestIamPermissionsAsync(request);
- }
- }
- // [END backupdr_v1_generated_BackupDR_TestIamPermissions_async]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsRequestObjectSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsRequestObjectSnippet.g.cs
deleted file mode 100644
index 6f2621b21f7b..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsRequestObjectSnippet.g.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_TestIamPermissions_sync]
- using Google.Api.Gax;
- using Google.Cloud.BackupDR.V1;
- using Google.Cloud.Iam.V1;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for TestIamPermissions
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void TestIamPermissionsRequestObject()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- TestIamPermissionsRequest request = new TestIamPermissionsRequest
- {
- ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
- Permissions = { "", },
- };
- // Make the request
- TestIamPermissionsResponse response = backupDRClient.TestIamPermissions(request);
- }
- }
- // [END backupdr_v1_generated_BackupDR_TestIamPermissions_sync]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs
deleted file mode 100644
index c4ef45e4723d..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_TestIamPermissions_async_flattened_resourceNames]
- using Google.Api.Gax;
- using Google.Cloud.BackupDR.V1;
- using Google.Cloud.Iam.V1;
- using System.Collections.Generic;
- using System.Threading.Tasks;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for TestIamPermissionsAsync
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public async Task TestIamPermissionsResourceNamesAsync()
- {
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
- IEnumerable permissions = new string[] { "", };
- // Make the request
- TestIamPermissionsResponse response = await backupDRClient.TestIamPermissionsAsync(resource, permissions);
- }
- }
- // [END backupdr_v1_generated_BackupDR_TestIamPermissions_async_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsResourceNamesSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsResourceNamesSnippet.g.cs
deleted file mode 100644
index 7a6aa05ebc46..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsResourceNamesSnippet.g.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_TestIamPermissions_sync_flattened_resourceNames]
- using Google.Api.Gax;
- using Google.Cloud.BackupDR.V1;
- using Google.Cloud.Iam.V1;
- using System.Collections.Generic;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for TestIamPermissions
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void TestIamPermissionsResourceNames()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
- IEnumerable permissions = new string[] { "", };
- // Make the request
- TestIamPermissionsResponse response = backupDRClient.TestIamPermissions(resource, permissions);
- }
- }
- // [END backupdr_v1_generated_BackupDR_TestIamPermissions_sync_flattened_resourceNames]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsSnippet.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsSnippet.g.cs
deleted file mode 100644
index ae667eb1f7a9..000000000000
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/BackupDRClient.TestIamPermissionsSnippet.g.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// Generated code. DO NOT EDIT!
-
-namespace GoogleCSharpSnippets
-{
- // [START backupdr_v1_generated_BackupDR_TestIamPermissions_sync_flattened]
- using Google.Cloud.BackupDR.V1;
- using Google.Cloud.Iam.V1;
- using System.Collections.Generic;
-
- public sealed partial class GeneratedBackupDRClientSnippets
- {
- /// Snippet for TestIamPermissions
- ///
- /// This snippet has been automatically generated and should be regarded as a code template only.
- /// It will require modifications to work:
- /// - It may require correct/in-range values for request initialization.
- /// - It may require specifying regional endpoints when creating the service client as shown in
- /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
- ///
- public void TestIamPermissions()
- {
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string resource = "a/wildcard/resource";
- IEnumerable permissions = new string[] { "", };
- // Make the request
- TestIamPermissionsResponse response = backupDRClient.TestIamPermissions(resource, permissions);
- }
- }
- // [END backupdr_v1_generated_BackupDR_TestIamPermissions_sync_flattened]
-}
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/snippet_metadata_google.cloud.backupdr.v1.json b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/snippet_metadata_google.cloud.backupdr.v1.json
index 6e88b4dd7b57..6e97993edb57 100644
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/snippet_metadata_google.cloud.backupdr.v1.json
+++ b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.GeneratedSnippets/snippet_metadata_google.cloud.backupdr.v1.json
@@ -2953,309 +2953,6 @@
}
]
},
- {
- "regionTag": "backupdr_v1_generated_BackupDR_TestIamPermissions_sync",
- "title": "TestIamPermissionsRequestObject",
- "description": "Snippet for TestIamPermissions",
- "file": "BackupDRClient.TestIamPermissionsRequestObjectSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "TestIamPermissions",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.TestIamPermissions",
- "parameters": [
- {
- "type": "Google.Cloud.Iam.V1.TestIamPermissionsRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "TestIamPermissions",
- "fullName": "google.cloud.backupdr.v1.BackupDR.TestIamPermissions",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 47,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 45,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_TestIamPermissions_async",
- "title": "TestIamPermissionsRequestObjectAsync",
- "description": "Snippet for TestIamPermissionsAsync",
- "file": "BackupDRClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "TestIamPermissionsAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.TestIamPermissionsAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Cloud.Iam.V1.TestIamPermissionsRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "TestIamPermissions",
- "fullName": "google.cloud.backupdr.v1.BackupDR.TestIamPermissions",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 48,
- "type": "FULL"
- },
- {
- "start": 37,
- "end": 46,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_TestIamPermissions_sync_flattened",
- "title": "TestIamPermissions",
- "description": "Snippet for TestIamPermissions",
- "file": "BackupDRClient.TestIamPermissionsSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "TestIamPermissions",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.TestIamPermissions",
- "parameters": [
- {
- "type": "System.String",
- "name": "resource"
- },
- {
- "type": "System.Collections.Generic.IEnumerable",
- "name": "permissions"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "TestIamPermissions",
- "fullName": "google.cloud.backupdr.v1.BackupDR.TestIamPermissions",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 44,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 42,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_TestIamPermissions_async_flattened",
- "title": "TestIamPermissionsAsync",
- "description": "Snippet for TestIamPermissionsAsync",
- "file": "BackupDRClient.TestIamPermissionsAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "TestIamPermissionsAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.TestIamPermissionsAsync",
- "async": true,
- "parameters": [
- {
- "type": "System.String",
- "name": "resource"
- },
- {
- "type": "System.Collections.Generic.IEnumerable",
- "name": "permissions"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "TestIamPermissions",
- "fullName": "google.cloud.backupdr.v1.BackupDR.TestIamPermissions",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 45,
- "type": "FULL"
- },
- {
- "start": 37,
- "end": 43,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_TestIamPermissions_sync_flattened_resourceNames",
- "title": "TestIamPermissionsResourceNames",
- "description": "Snippet for TestIamPermissions",
- "file": "BackupDRClient.TestIamPermissionsResourceNamesSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "TestIamPermissions",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.TestIamPermissions",
- "parameters": [
- {
- "type": "Google.Api.Gax.IResourceName",
- "name": "resource"
- },
- {
- "type": "System.Collections.Generic.IEnumerable",
- "name": "permissions"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "TestIamPermissions",
- "fullName": "google.cloud.backupdr.v1.BackupDR.TestIamPermissions",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 45,
- "type": "FULL"
- },
- {
- "start": 37,
- "end": 43,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_TestIamPermissions_async_flattened_resourceNames",
- "title": "TestIamPermissionsResourceNamesAsync",
- "description": "Snippet for TestIamPermissionsAsync",
- "file": "BackupDRClient.TestIamPermissionsResourceNamesAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "TestIamPermissionsAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.TestIamPermissionsAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Api.Gax.IResourceName",
- "name": "resource"
- },
- {
- "type": "System.Collections.Generic.IEnumerable",
- "name": "permissions"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "TestIamPermissions",
- "fullName": "google.cloud.backupdr.v1.BackupDR.TestIamPermissions",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 46,
- "type": "FULL"
- },
- {
- "start": 38,
- "end": 44,
- "type": "SHORT"
- }
- ]
- },
{
"regionTag": "backupdr_v1_generated_BackupDR_ListDataSources_sync",
"title": "ListDataSourcesRequestObject",
@@ -4062,1728 +3759,6 @@
}
]
},
- {
- "regionTag": "backupdr_v1_generated_BackupDR_RemoveDataSource_sync",
- "title": "RemoveDataSourceRequestObject",
- "description": "Snippet for RemoveDataSource",
- "file": "BackupDRClient.RemoveDataSourceRequestObjectSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "RemoveDataSource",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.RemoveDataSource",
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.RemoveDataSourceRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.LongRunning.Operation",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "RemoveDataSource",
- "fullName": "google.cloud.backupdr.v1.BackupDR.RemoveDataSource",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 63,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 61,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_RemoveDataSource_async",
- "title": "RemoveDataSourceRequestObjectAsync",
- "description": "Snippet for RemoveDataSourceAsync",
- "file": "BackupDRClient.RemoveDataSourceRequestObjectAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "RemoveDataSourceAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.RemoveDataSourceAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.RemoveDataSourceRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task>",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "RemoveDataSource",
- "fullName": "google.cloud.backupdr.v1.BackupDR.RemoveDataSource",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 64,
- "type": "FULL"
- },
- {
- "start": 37,
- "end": 62,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_RemoveDataSource_sync_flattened",
- "title": "RemoveDataSource",
- "description": "Snippet for RemoveDataSource",
- "file": "BackupDRClient.RemoveDataSourceSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "RemoveDataSource",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.RemoveDataSource",
- "parameters": [
- {
- "type": "System.String",
- "name": "name"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.LongRunning.Operation",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "RemoveDataSource",
- "fullName": "google.cloud.backupdr.v1.BackupDR.RemoveDataSource",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 59,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 57,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_RemoveDataSource_async_flattened",
- "title": "RemoveDataSourceAsync",
- "description": "Snippet for RemoveDataSourceAsync",
- "file": "BackupDRClient.RemoveDataSourceAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "RemoveDataSourceAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.RemoveDataSourceAsync",
- "async": true,
- "parameters": [
- {
- "type": "System.String",
- "name": "name"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task>",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "RemoveDataSource",
- "fullName": "google.cloud.backupdr.v1.BackupDR.RemoveDataSource",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 60,
- "type": "FULL"
- },
- {
- "start": 37,
- "end": 58,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_RemoveDataSource_sync_flattened_resourceNames",
- "title": "RemoveDataSourceResourceNames",
- "description": "Snippet for RemoveDataSource",
- "file": "BackupDRClient.RemoveDataSourceResourceNamesSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "RemoveDataSource",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.RemoveDataSource",
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.DataSourceName",
- "name": "name"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.LongRunning.Operation",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "RemoveDataSource",
- "fullName": "google.cloud.backupdr.v1.BackupDR.RemoveDataSource",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 59,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 57,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_RemoveDataSource_async_flattened_resourceNames",
- "title": "RemoveDataSourceResourceNamesAsync",
- "description": "Snippet for RemoveDataSourceAsync",
- "file": "BackupDRClient.RemoveDataSourceResourceNamesAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "RemoveDataSourceAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.RemoveDataSourceAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.DataSourceName",
- "name": "name"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task>",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "RemoveDataSource",
- "fullName": "google.cloud.backupdr.v1.BackupDR.RemoveDataSource",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 60,
- "type": "FULL"
- },
- {
- "start": 37,
- "end": 58,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_SetInternalStatus_sync",
- "title": "SetInternalStatusRequestObject",
- "description": "Snippet for SetInternalStatus",
- "file": "BackupDRClient.SetInternalStatusRequestObjectSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "SetInternalStatus",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.SetInternalStatus",
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.SetInternalStatusRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.LongRunning.Operation",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "SetInternalStatus",
- "fullName": "google.cloud.backupdr.v1.BackupDR.SetInternalStatus",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 65,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 63,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_SetInternalStatus_async",
- "title": "SetInternalStatusRequestObjectAsync",
- "description": "Snippet for SetInternalStatusAsync",
- "file": "BackupDRClient.SetInternalStatusRequestObjectAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "SetInternalStatusAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.SetInternalStatusAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.SetInternalStatusRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task>",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "SetInternalStatus",
- "fullName": "google.cloud.backupdr.v1.BackupDR.SetInternalStatus",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 66,
- "type": "FULL"
- },
- {
- "start": 37,
- "end": 64,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_SetInternalStatus_sync_flattened",
- "title": "SetInternalStatus",
- "description": "Snippet for SetInternalStatus",
- "file": "BackupDRClient.SetInternalStatusSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "SetInternalStatus",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.SetInternalStatus",
- "parameters": [
- {
- "type": "System.String",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.LongRunning.Operation",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "SetInternalStatus",
- "fullName": "google.cloud.backupdr.v1.BackupDR.SetInternalStatus",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 58,
- "type": "FULL"
- },
- {
- "start": 35,
- "end": 56,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_SetInternalStatus_async_flattened",
- "title": "SetInternalStatusAsync",
- "description": "Snippet for SetInternalStatusAsync",
- "file": "BackupDRClient.SetInternalStatusAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "SetInternalStatusAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.SetInternalStatusAsync",
- "async": true,
- "parameters": [
- {
- "type": "System.String",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task>",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "SetInternalStatus",
- "fullName": "google.cloud.backupdr.v1.BackupDR.SetInternalStatus",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 59,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 57,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_SetInternalStatus_sync_flattened_resourceNames",
- "title": "SetInternalStatusResourceNames",
- "description": "Snippet for SetInternalStatus",
- "file": "BackupDRClient.SetInternalStatusResourceNamesSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "SetInternalStatus",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.SetInternalStatus",
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.DataSourceName",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.LongRunning.Operation",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "SetInternalStatus",
- "fullName": "google.cloud.backupdr.v1.BackupDR.SetInternalStatus",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 58,
- "type": "FULL"
- },
- {
- "start": 35,
- "end": 56,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_SetInternalStatus_async_flattened_resourceNames",
- "title": "SetInternalStatusResourceNamesAsync",
- "description": "Snippet for SetInternalStatusAsync",
- "file": "BackupDRClient.SetInternalStatusResourceNamesAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "SetInternalStatusAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.SetInternalStatusAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.DataSourceName",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task>",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "SetInternalStatus",
- "fullName": "google.cloud.backupdr.v1.BackupDR.SetInternalStatus",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 59,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 57,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_InitiateBackup_sync",
- "title": "InitiateBackupRequestObject",
- "description": "Snippet for InitiateBackup",
- "file": "BackupDRClient.InitiateBackupRequestObjectSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "InitiateBackup",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.InitiateBackup",
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.InitiateBackupRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.Cloud.BackupDR.V1.InitiateBackupResponse",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "InitiateBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.InitiateBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 46,
- "type": "FULL"
- },
- {
- "start": 34,
- "end": 44,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_InitiateBackup_async",
- "title": "InitiateBackupRequestObjectAsync",
- "description": "Snippet for InitiateBackupAsync",
- "file": "BackupDRClient.InitiateBackupRequestObjectAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "InitiateBackupAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.InitiateBackupAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.InitiateBackupRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "InitiateBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.InitiateBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 47,
- "type": "FULL"
- },
- {
- "start": 35,
- "end": 45,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_InitiateBackup_sync_flattened",
- "title": "InitiateBackup",
- "description": "Snippet for InitiateBackup",
- "file": "BackupDRClient.InitiateBackupSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "InitiateBackup",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.InitiateBackup",
- "parameters": [
- {
- "type": "System.String",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.Cloud.BackupDR.V1.InitiateBackupResponse",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "InitiateBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.InitiateBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 41,
- "type": "FULL"
- },
- {
- "start": 34,
- "end": 39,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_InitiateBackup_async_flattened",
- "title": "InitiateBackupAsync",
- "description": "Snippet for InitiateBackupAsync",
- "file": "BackupDRClient.InitiateBackupAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "InitiateBackupAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.InitiateBackupAsync",
- "async": true,
- "parameters": [
- {
- "type": "System.String",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "InitiateBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.InitiateBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 42,
- "type": "FULL"
- },
- {
- "start": 35,
- "end": 40,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_InitiateBackup_sync_flattened_resourceNames",
- "title": "InitiateBackupResourceNames",
- "description": "Snippet for InitiateBackup",
- "file": "BackupDRClient.InitiateBackupResourceNamesSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "InitiateBackup",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.InitiateBackup",
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.DataSourceName",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.Cloud.BackupDR.V1.InitiateBackupResponse",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "InitiateBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.InitiateBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 41,
- "type": "FULL"
- },
- {
- "start": 34,
- "end": 39,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_InitiateBackup_async_flattened_resourceNames",
- "title": "InitiateBackupResourceNamesAsync",
- "description": "Snippet for InitiateBackupAsync",
- "file": "BackupDRClient.InitiateBackupResourceNamesAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "InitiateBackupAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.InitiateBackupAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.DataSourceName",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "InitiateBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.InitiateBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 42,
- "type": "FULL"
- },
- {
- "start": 35,
- "end": 40,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_AbandonBackup_sync",
- "title": "AbandonBackupRequestObject",
- "description": "Snippet for AbandonBackup",
- "file": "BackupDRClient.AbandonBackupRequestObjectSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "AbandonBackup",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.AbandonBackup",
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.AbandonBackupRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.LongRunning.Operation",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "AbandonBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.AbandonBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 63,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 61,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_AbandonBackup_async",
- "title": "AbandonBackupRequestObjectAsync",
- "description": "Snippet for AbandonBackupAsync",
- "file": "BackupDRClient.AbandonBackupRequestObjectAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "AbandonBackupAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.AbandonBackupAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.AbandonBackupRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task>",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "AbandonBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.AbandonBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 64,
- "type": "FULL"
- },
- {
- "start": 37,
- "end": 62,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_AbandonBackup_sync_flattened",
- "title": "AbandonBackup",
- "description": "Snippet for AbandonBackup",
- "file": "BackupDRClient.AbandonBackupSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "AbandonBackup",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.AbandonBackup",
- "parameters": [
- {
- "type": "System.String",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.LongRunning.Operation",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "AbandonBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.AbandonBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 59,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 57,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_AbandonBackup_async_flattened",
- "title": "AbandonBackupAsync",
- "description": "Snippet for AbandonBackupAsync",
- "file": "BackupDRClient.AbandonBackupAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "AbandonBackupAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.AbandonBackupAsync",
- "async": true,
- "parameters": [
- {
- "type": "System.String",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task>",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "AbandonBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.AbandonBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 60,
- "type": "FULL"
- },
- {
- "start": 37,
- "end": 58,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_AbandonBackup_sync_flattened_resourceNames",
- "title": "AbandonBackupResourceNames",
- "description": "Snippet for AbandonBackup",
- "file": "BackupDRClient.AbandonBackupResourceNamesSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "AbandonBackup",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.AbandonBackup",
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.DataSourceName",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.LongRunning.Operation",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "AbandonBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.AbandonBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 59,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 57,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_AbandonBackup_async_flattened_resourceNames",
- "title": "AbandonBackupResourceNamesAsync",
- "description": "Snippet for AbandonBackupAsync",
- "file": "BackupDRClient.AbandonBackupResourceNamesAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "AbandonBackupAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.AbandonBackupAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.DataSourceName",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task>",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "AbandonBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.AbandonBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 60,
- "type": "FULL"
- },
- {
- "start": 37,
- "end": 58,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_FinalizeBackup_sync",
- "title": "FinalizeBackupRequestObject",
- "description": "Snippet for FinalizeBackup",
- "file": "BackupDRClient.FinalizeBackupRequestObjectSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "FinalizeBackup",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.FinalizeBackup",
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.FinalizeBackupRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.LongRunning.Operation",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "FinalizeBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.FinalizeBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 69,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 67,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_FinalizeBackup_async",
- "title": "FinalizeBackupRequestObjectAsync",
- "description": "Snippet for FinalizeBackupAsync",
- "file": "BackupDRClient.FinalizeBackupRequestObjectAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "FinalizeBackupAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.FinalizeBackupAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.FinalizeBackupRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task>",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "FinalizeBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.FinalizeBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 70,
- "type": "FULL"
- },
- {
- "start": 37,
- "end": 68,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_FinalizeBackup_sync_flattened",
- "title": "FinalizeBackup",
- "description": "Snippet for FinalizeBackup",
- "file": "BackupDRClient.FinalizeBackupSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "FinalizeBackup",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.FinalizeBackup",
- "parameters": [
- {
- "type": "System.String",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.LongRunning.Operation",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "FinalizeBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.FinalizeBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 58,
- "type": "FULL"
- },
- {
- "start": 35,
- "end": 56,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_FinalizeBackup_async_flattened",
- "title": "FinalizeBackupAsync",
- "description": "Snippet for FinalizeBackupAsync",
- "file": "BackupDRClient.FinalizeBackupAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "FinalizeBackupAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.FinalizeBackupAsync",
- "async": true,
- "parameters": [
- {
- "type": "System.String",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task>",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "FinalizeBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.FinalizeBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 59,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 57,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_FinalizeBackup_sync_flattened_resourceNames",
- "title": "FinalizeBackupResourceNames",
- "description": "Snippet for FinalizeBackup",
- "file": "BackupDRClient.FinalizeBackupResourceNamesSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "FinalizeBackup",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.FinalizeBackup",
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.DataSourceName",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.LongRunning.Operation",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "FinalizeBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.FinalizeBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 58,
- "type": "FULL"
- },
- {
- "start": 35,
- "end": 56,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_FinalizeBackup_async_flattened_resourceNames",
- "title": "FinalizeBackupResourceNamesAsync",
- "description": "Snippet for FinalizeBackupAsync",
- "file": "BackupDRClient.FinalizeBackupResourceNamesAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "FinalizeBackupAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.FinalizeBackupAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.DataSourceName",
- "name": "dataSource"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task>",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "FinalizeBackup",
- "fullName": "google.cloud.backupdr.v1.BackupDR.FinalizeBackup",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 59,
- "type": "FULL"
- },
- {
- "start": 36,
- "end": 57,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_FetchAccessToken_sync",
- "title": "FetchAccessTokenRequestObject",
- "description": "Snippet for FetchAccessToken",
- "file": "BackupDRClient.FetchAccessTokenRequestObjectSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "FetchAccessToken",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.FetchAccessToken",
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.FetchAccessTokenRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.Cloud.BackupDR.V1.FetchAccessTokenResponse",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "FetchAccessToken",
- "fullName": "google.cloud.backupdr.v1.BackupDR.FetchAccessToken",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 45,
- "type": "FULL"
- },
- {
- "start": 34,
- "end": 43,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_FetchAccessToken_async",
- "title": "FetchAccessTokenRequestObjectAsync",
- "description": "Snippet for FetchAccessTokenAsync",
- "file": "BackupDRClient.FetchAccessTokenRequestObjectAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "FetchAccessTokenAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.FetchAccessTokenAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.FetchAccessTokenRequest",
- "name": "request"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "FetchAccessToken",
- "fullName": "google.cloud.backupdr.v1.BackupDR.FetchAccessToken",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "canonical": true,
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 46,
- "type": "FULL"
- },
- {
- "start": 35,
- "end": 44,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_FetchAccessToken_sync_flattened",
- "title": "FetchAccessToken",
- "description": "Snippet for FetchAccessToken",
- "file": "BackupDRClient.FetchAccessTokenSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "FetchAccessToken",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.FetchAccessToken",
- "parameters": [
- {
- "type": "System.String",
- "name": "name"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.Cloud.BackupDR.V1.FetchAccessTokenResponse",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "FetchAccessToken",
- "fullName": "google.cloud.backupdr.v1.BackupDR.FetchAccessToken",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 41,
- "type": "FULL"
- },
- {
- "start": 34,
- "end": 39,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_FetchAccessToken_async_flattened",
- "title": "FetchAccessTokenAsync",
- "description": "Snippet for FetchAccessTokenAsync",
- "file": "BackupDRClient.FetchAccessTokenAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "FetchAccessTokenAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.FetchAccessTokenAsync",
- "async": true,
- "parameters": [
- {
- "type": "System.String",
- "name": "name"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "FetchAccessToken",
- "fullName": "google.cloud.backupdr.v1.BackupDR.FetchAccessToken",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 42,
- "type": "FULL"
- },
- {
- "start": 35,
- "end": 40,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_FetchAccessToken_sync_flattened_resourceNames",
- "title": "FetchAccessTokenResourceNames",
- "description": "Snippet for FetchAccessToken",
- "file": "BackupDRClient.FetchAccessTokenResourceNamesSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "FetchAccessToken",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.FetchAccessToken",
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.DataSourceName",
- "name": "name"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "Google.Cloud.BackupDR.V1.FetchAccessTokenResponse",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "FetchAccessToken",
- "fullName": "google.cloud.backupdr.v1.BackupDR.FetchAccessToken",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 41,
- "type": "FULL"
- },
- {
- "start": 34,
- "end": 39,
- "type": "SHORT"
- }
- ]
- },
- {
- "regionTag": "backupdr_v1_generated_BackupDR_FetchAccessToken_async_flattened_resourceNames",
- "title": "FetchAccessTokenResourceNamesAsync",
- "description": "Snippet for FetchAccessTokenAsync",
- "file": "BackupDRClient.FetchAccessTokenResourceNamesAsyncSnippet.g.cs",
- "language": "C_SHARP",
- "clientMethod": {
- "shortName": "FetchAccessTokenAsync",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient.FetchAccessTokenAsync",
- "async": true,
- "parameters": [
- {
- "type": "Google.Cloud.BackupDR.V1.DataSourceName",
- "name": "name"
- },
- {
- "type": "Google.Api.Gax.Grpc.CallSettings",
- "name": "callSettings"
- }
- ],
- "resultType": "System.Threading.Tasks.Task",
- "client": {
- "shortName": "BackupDRClient",
- "fullName": "Google.Cloud.BackupDR.V1.BackupDRClient"
- },
- "method": {
- "shortName": "FetchAccessToken",
- "fullName": "google.cloud.backupdr.v1.BackupDR.FetchAccessToken",
- "service": {
- "shortName": "BackupDR",
- "fullName": "google.cloud.backupdr.v1.BackupDR"
- }
- }
- },
- "origin": "API_DEFINITION",
- "segments": [
- {
- "start": 20,
- "end": 42,
- "type": "FULL"
- },
- {
- "start": 35,
- "end": 40,
- "type": "SHORT"
- }
- ]
- },
{
"regionTag": "backupdr_v1_generated_BackupDR_ListBackups_sync",
"title": "ListBackupsRequestObject",
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.Snippets/BackupDRClientSnippets.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.Snippets/BackupDRClientSnippets.g.cs
index 6a48d521676a..893b7521ba5b 100644
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.Snippets/BackupDRClientSnippets.g.cs
+++ b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1.Snippets/BackupDRClientSnippets.g.cs
@@ -19,12 +19,9 @@ namespace GoogleCSharpSnippets
using Google.Api.Gax;
using Google.Api.Gax.ResourceNames;
using Google.Cloud.BackupDR.V1;
- using Google.Cloud.Iam.V1;
using Google.LongRunning;
- using Google.Protobuf;
using Google.Protobuf.WellKnownTypes;
using System;
- using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
@@ -1957,99 +1954,6 @@ public async Task DeleteBackupVaultResourceNamesAsync()
// End snippet
}
- /// Snippet for TestIamPermissions
- public void TestIamPermissionsRequestObject()
- {
- // Snippet: TestIamPermissions(TestIamPermissionsRequest, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- TestIamPermissionsRequest request = new TestIamPermissionsRequest
- {
- ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
- Permissions = { "", },
- };
- // Make the request
- TestIamPermissionsResponse response = backupDRClient.TestIamPermissions(request);
- // End snippet
- }
-
- /// Snippet for TestIamPermissionsAsync
- public async Task TestIamPermissionsRequestObjectAsync()
- {
- // Snippet: TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)
- // Additional: TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- TestIamPermissionsRequest request = new TestIamPermissionsRequest
- {
- ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
- Permissions = { "", },
- };
- // Make the request
- TestIamPermissionsResponse response = await backupDRClient.TestIamPermissionsAsync(request);
- // End snippet
- }
-
- /// Snippet for TestIamPermissions
- public void TestIamPermissions()
- {
- // Snippet: TestIamPermissions(string, IEnumerable, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string resource = "a/wildcard/resource";
- IEnumerable permissions = new string[] { "", };
- // Make the request
- TestIamPermissionsResponse response = backupDRClient.TestIamPermissions(resource, permissions);
- // End snippet
- }
-
- /// Snippet for TestIamPermissionsAsync
- public async Task TestIamPermissionsAsync()
- {
- // Snippet: TestIamPermissionsAsync(string, IEnumerable, CallSettings)
- // Additional: TestIamPermissionsAsync(string, IEnumerable, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string resource = "a/wildcard/resource";
- IEnumerable permissions = new string[] { "", };
- // Make the request
- TestIamPermissionsResponse response = await backupDRClient.TestIamPermissionsAsync(resource, permissions);
- // End snippet
- }
-
- /// Snippet for TestIamPermissions
- public void TestIamPermissionsResourceNames()
- {
- // Snippet: TestIamPermissions(IResourceName, IEnumerable, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
- IEnumerable permissions = new string[] { "", };
- // Make the request
- TestIamPermissionsResponse response = backupDRClient.TestIamPermissions(resource, permissions);
- // End snippet
- }
-
- /// Snippet for TestIamPermissionsAsync
- public async Task TestIamPermissionsResourceNamesAsync()
- {
- // Snippet: TestIamPermissionsAsync(IResourceName, IEnumerable, CallSettings)
- // Additional: TestIamPermissionsAsync(IResourceName, IEnumerable, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
- IEnumerable permissions = new string[] { "", };
- // Make the request
- TestIamPermissionsResponse response = await backupDRClient.TestIamPermissionsAsync(resource, permissions);
- // End snippet
- }
-
/// Snippet for ListDataSources
public void ListDataSourcesRequestObject()
{
@@ -2549,942 +2453,6 @@ public async Task UpdateDataSourceAsync()
// End snippet
}
- /// Snippet for RemoveDataSource
- public void RemoveDataSourceRequestObject()
- {
- // Snippet: RemoveDataSource(RemoveDataSourceRequest, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- RemoveDataSourceRequest request = new RemoveDataSourceRequest
- {
- DataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- RequestId = "",
- };
- // Make the request
- Operation response = backupDRClient.RemoveDataSource(request);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = backupDRClient.PollOnceRemoveDataSource(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;
- }
- // End snippet
- }
-
- /// Snippet for RemoveDataSourceAsync
- public async Task RemoveDataSourceRequestObjectAsync()
- {
- // Snippet: RemoveDataSourceAsync(RemoveDataSourceRequest, CallSettings)
- // Additional: RemoveDataSourceAsync(RemoveDataSourceRequest, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- RemoveDataSourceRequest request = new RemoveDataSourceRequest
- {
- DataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- RequestId = "",
- };
- // Make the request
- Operation response = await backupDRClient.RemoveDataSourceAsync(request);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = await backupDRClient.PollOnceRemoveDataSourceAsync(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;
- }
- // End snippet
- }
-
- /// Snippet for RemoveDataSource
- public void RemoveDataSource()
- {
- // Snippet: RemoveDataSource(string, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = backupDRClient.RemoveDataSource(name);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = backupDRClient.PollOnceRemoveDataSource(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;
- }
- // End snippet
- }
-
- /// Snippet for RemoveDataSourceAsync
- public async Task RemoveDataSourceAsync()
- {
- // Snippet: RemoveDataSourceAsync(string, CallSettings)
- // Additional: RemoveDataSourceAsync(string, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = await backupDRClient.RemoveDataSourceAsync(name);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = await backupDRClient.PollOnceRemoveDataSourceAsync(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;
- }
- // End snippet
- }
-
- /// Snippet for RemoveDataSource
- public void RemoveDataSourceResourceNames()
- {
- // Snippet: RemoveDataSource(DataSourceName, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- DataSourceName name = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = backupDRClient.RemoveDataSource(name);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = backupDRClient.PollOnceRemoveDataSource(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;
- }
- // End snippet
- }
-
- /// Snippet for RemoveDataSourceAsync
- public async Task RemoveDataSourceResourceNamesAsync()
- {
- // Snippet: RemoveDataSourceAsync(DataSourceName, CallSettings)
- // Additional: RemoveDataSourceAsync(DataSourceName, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- DataSourceName name = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = await backupDRClient.RemoveDataSourceAsync(name);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = await backupDRClient.PollOnceRemoveDataSourceAsync(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;
- }
- // End snippet
- }
-
- /// Snippet for SetInternalStatus
- public void SetInternalStatusRequestObject()
- {
- // Snippet: SetInternalStatus(SetInternalStatusRequest, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- SetInternalStatusRequest request = new SetInternalStatusRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- Value = ByteString.Empty,
- BackupConfigState = BackupConfigState.Unspecified,
- RequestId = "",
- };
- // Make the request
- Operation response = backupDRClient.SetInternalStatus(request);
-
- // Poll until the returned long-running operation is complete
- Operation completedResponse = response.PollUntilCompleted();
- // Retrieve the operation result
- SetInternalStatusResponse result = completedResponse.Result;
-
- // Or get 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 = backupDRClient.PollOnceSetInternalStatus(operationName);
- // Check if the retrieved long-running operation has completed
- if (retrievedResponse.IsCompleted)
- {
- // If it has completed, then access the result
- SetInternalStatusResponse retrievedResult = retrievedResponse.Result;
- }
- // End snippet
- }
-
- /// Snippet for SetInternalStatusAsync
- public async Task SetInternalStatusRequestObjectAsync()
- {
- // Snippet: SetInternalStatusAsync(SetInternalStatusRequest, CallSettings)
- // Additional: SetInternalStatusAsync(SetInternalStatusRequest, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- SetInternalStatusRequest request = new SetInternalStatusRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- Value = ByteString.Empty,
- BackupConfigState = BackupConfigState.Unspecified,
- RequestId = "",
- };
- // Make the request
- Operation response = await backupDRClient.SetInternalStatusAsync(request);
-
- // Poll until the returned long-running operation is complete
- Operation completedResponse = await response.PollUntilCompletedAsync();
- // Retrieve the operation result
- SetInternalStatusResponse result = completedResponse.Result;
-
- // Or get 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 backupDRClient.PollOnceSetInternalStatusAsync(operationName);
- // Check if the retrieved long-running operation has completed
- if (retrievedResponse.IsCompleted)
- {
- // If it has completed, then access the result
- SetInternalStatusResponse retrievedResult = retrievedResponse.Result;
- }
- // End snippet
- }
-
- /// Snippet for SetInternalStatus
- public void SetInternalStatus()
- {
- // Snippet: SetInternalStatus(string, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = backupDRClient.SetInternalStatus(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation completedResponse = response.PollUntilCompleted();
- // Retrieve the operation result
- SetInternalStatusResponse result = completedResponse.Result;
-
- // Or get 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 = backupDRClient.PollOnceSetInternalStatus(operationName);
- // Check if the retrieved long-running operation has completed
- if (retrievedResponse.IsCompleted)
- {
- // If it has completed, then access the result
- SetInternalStatusResponse retrievedResult = retrievedResponse.Result;
- }
- // End snippet
- }
-
- /// Snippet for SetInternalStatusAsync
- public async Task SetInternalStatusAsync()
- {
- // Snippet: SetInternalStatusAsync(string, CallSettings)
- // Additional: SetInternalStatusAsync(string, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = await backupDRClient.SetInternalStatusAsync(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation completedResponse = await response.PollUntilCompletedAsync();
- // Retrieve the operation result
- SetInternalStatusResponse result = completedResponse.Result;
-
- // Or get 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 backupDRClient.PollOnceSetInternalStatusAsync(operationName);
- // Check if the retrieved long-running operation has completed
- if (retrievedResponse.IsCompleted)
- {
- // If it has completed, then access the result
- SetInternalStatusResponse retrievedResult = retrievedResponse.Result;
- }
- // End snippet
- }
-
- /// Snippet for SetInternalStatus
- public void SetInternalStatusResourceNames()
- {
- // Snippet: SetInternalStatus(DataSourceName, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = backupDRClient.SetInternalStatus(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation completedResponse = response.PollUntilCompleted();
- // Retrieve the operation result
- SetInternalStatusResponse result = completedResponse.Result;
-
- // Or get 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 = backupDRClient.PollOnceSetInternalStatus(operationName);
- // Check if the retrieved long-running operation has completed
- if (retrievedResponse.IsCompleted)
- {
- // If it has completed, then access the result
- SetInternalStatusResponse retrievedResult = retrievedResponse.Result;
- }
- // End snippet
- }
-
- /// Snippet for SetInternalStatusAsync
- public async Task SetInternalStatusResourceNamesAsync()
- {
- // Snippet: SetInternalStatusAsync(DataSourceName, CallSettings)
- // Additional: SetInternalStatusAsync(DataSourceName, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = await backupDRClient.SetInternalStatusAsync(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation completedResponse = await response.PollUntilCompletedAsync();
- // Retrieve the operation result
- SetInternalStatusResponse result = completedResponse.Result;
-
- // Or get 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 backupDRClient.PollOnceSetInternalStatusAsync(operationName);
- // Check if the retrieved long-running operation has completed
- if (retrievedResponse.IsCompleted)
- {
- // If it has completed, then access the result
- SetInternalStatusResponse retrievedResult = retrievedResponse.Result;
- }
- // End snippet
- }
-
- /// Snippet for InitiateBackup
- public void InitiateBackupRequestObject()
- {
- // Snippet: InitiateBackup(InitiateBackupRequest, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- InitiateBackupRequest request = new InitiateBackupRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- RequestId = "",
- BackupId = "",
- };
- // Make the request
- InitiateBackupResponse response = backupDRClient.InitiateBackup(request);
- // End snippet
- }
-
- /// Snippet for InitiateBackupAsync
- public async Task InitiateBackupRequestObjectAsync()
- {
- // Snippet: InitiateBackupAsync(InitiateBackupRequest, CallSettings)
- // Additional: InitiateBackupAsync(InitiateBackupRequest, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- InitiateBackupRequest request = new InitiateBackupRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- RequestId = "",
- BackupId = "",
- };
- // Make the request
- InitiateBackupResponse response = await backupDRClient.InitiateBackupAsync(request);
- // End snippet
- }
-
- /// Snippet for InitiateBackup
- public void InitiateBackup()
- {
- // Snippet: InitiateBackup(string, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- InitiateBackupResponse response = backupDRClient.InitiateBackup(dataSource);
- // End snippet
- }
-
- /// Snippet for InitiateBackupAsync
- public async Task InitiateBackupAsync()
- {
- // Snippet: InitiateBackupAsync(string, CallSettings)
- // Additional: InitiateBackupAsync(string, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- InitiateBackupResponse response = await backupDRClient.InitiateBackupAsync(dataSource);
- // End snippet
- }
-
- /// Snippet for InitiateBackup
- public void InitiateBackupResourceNames()
- {
- // Snippet: InitiateBackup(DataSourceName, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- InitiateBackupResponse response = backupDRClient.InitiateBackup(dataSource);
- // End snippet
- }
-
- /// Snippet for InitiateBackupAsync
- public async Task InitiateBackupResourceNamesAsync()
- {
- // Snippet: InitiateBackupAsync(DataSourceName, CallSettings)
- // Additional: InitiateBackupAsync(DataSourceName, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- InitiateBackupResponse response = await backupDRClient.InitiateBackupAsync(dataSource);
- // End snippet
- }
-
- /// Snippet for AbandonBackup
- public void AbandonBackupRequestObject()
- {
- // Snippet: AbandonBackup(AbandonBackupRequest, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- AbandonBackupRequest request = new AbandonBackupRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- RequestId = "",
- };
- // Make the request
- Operation response = backupDRClient.AbandonBackup(request);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = backupDRClient.PollOnceAbandonBackup(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;
- }
- // End snippet
- }
-
- /// Snippet for AbandonBackupAsync
- public async Task AbandonBackupRequestObjectAsync()
- {
- // Snippet: AbandonBackupAsync(AbandonBackupRequest, CallSettings)
- // Additional: AbandonBackupAsync(AbandonBackupRequest, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- AbandonBackupRequest request = new AbandonBackupRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- RequestId = "",
- };
- // Make the request
- Operation response = await backupDRClient.AbandonBackupAsync(request);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = await backupDRClient.PollOnceAbandonBackupAsync(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;
- }
- // End snippet
- }
-
- /// Snippet for AbandonBackup
- public void AbandonBackup()
- {
- // Snippet: AbandonBackup(string, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = backupDRClient.AbandonBackup(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = backupDRClient.PollOnceAbandonBackup(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;
- }
- // End snippet
- }
-
- /// Snippet for AbandonBackupAsync
- public async Task AbandonBackupAsync()
- {
- // Snippet: AbandonBackupAsync(string, CallSettings)
- // Additional: AbandonBackupAsync(string, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = await backupDRClient.AbandonBackupAsync(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = await backupDRClient.PollOnceAbandonBackupAsync(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;
- }
- // End snippet
- }
-
- /// Snippet for AbandonBackup
- public void AbandonBackupResourceNames()
- {
- // Snippet: AbandonBackup(DataSourceName, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = backupDRClient.AbandonBackup(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = backupDRClient.PollOnceAbandonBackup(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;
- }
- // End snippet
- }
-
- /// Snippet for AbandonBackupAsync
- public async Task AbandonBackupResourceNamesAsync()
- {
- // Snippet: AbandonBackupAsync(DataSourceName, CallSettings)
- // Additional: AbandonBackupAsync(DataSourceName, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = await backupDRClient.AbandonBackupAsync(dataSource);
-
- // Poll until the returned long-running operation is complete
- Operation 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 retrievedResponse = await backupDRClient.PollOnceAbandonBackupAsync(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;
- }
- // End snippet
- }
-
- /// Snippet for FinalizeBackup
- public void FinalizeBackupRequestObject()
- {
- // Snippet: FinalizeBackup(FinalizeBackupRequest, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- FinalizeBackupRequest request = new FinalizeBackupRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- Description = "",
- ConsistencyTime = new Timestamp(),
- RequestId = "",
- BackupId = "",
- RecoveryRangeStartTime = new Timestamp(),
- RecoveryRangeEndTime = new Timestamp(),
- RetentionDuration = new Duration(),
- };
- // Make the request
- Operation response = backupDRClient.FinalizeBackup(request);
-
- // 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 = backupDRClient.PollOnceFinalizeBackup(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 FinalizeBackupAsync
- public async Task FinalizeBackupRequestObjectAsync()
- {
- // Snippet: FinalizeBackupAsync(FinalizeBackupRequest, CallSettings)
- // Additional: FinalizeBackupAsync(FinalizeBackupRequest, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- FinalizeBackupRequest request = new FinalizeBackupRequest
- {
- DataSourceAsDataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- Description = "",
- ConsistencyTime = new Timestamp(),
- RequestId = "",
- BackupId = "",
- RecoveryRangeStartTime = new Timestamp(),
- RecoveryRangeEndTime = new Timestamp(),
- RetentionDuration = new Duration(),
- };
- // Make the request
- Operation response = await backupDRClient.FinalizeBackupAsync(request);
-
- // 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 backupDRClient.PollOnceFinalizeBackupAsync(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 FinalizeBackup
- public void FinalizeBackup()
- {
- // Snippet: FinalizeBackup(string, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = backupDRClient.FinalizeBackup(dataSource);
-
- // 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 = backupDRClient.PollOnceFinalizeBackup(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 FinalizeBackupAsync
- public async Task FinalizeBackupAsync()
- {
- // Snippet: FinalizeBackupAsync(string, CallSettings)
- // Additional: FinalizeBackupAsync(string, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string dataSource = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- Operation response = await backupDRClient.FinalizeBackupAsync(dataSource);
-
- // 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 backupDRClient.PollOnceFinalizeBackupAsync(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 FinalizeBackup
- public void FinalizeBackupResourceNames()
- {
- // Snippet: FinalizeBackup(DataSourceName, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = backupDRClient.FinalizeBackup(dataSource);
-
- // 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 = backupDRClient.PollOnceFinalizeBackup(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 FinalizeBackupAsync
- public async Task FinalizeBackupResourceNamesAsync()
- {
- // Snippet: FinalizeBackupAsync(DataSourceName, CallSettings)
- // Additional: FinalizeBackupAsync(DataSourceName, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- DataSourceName dataSource = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- Operation response = await backupDRClient.FinalizeBackupAsync(dataSource);
-
- // 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 backupDRClient.PollOnceFinalizeBackupAsync(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 FetchAccessToken
- public void FetchAccessTokenRequestObject()
- {
- // Snippet: FetchAccessToken(FetchAccessTokenRequest, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- FetchAccessTokenRequest request = new FetchAccessTokenRequest
- {
- DataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- GenerationId = 0,
- };
- // Make the request
- FetchAccessTokenResponse response = backupDRClient.FetchAccessToken(request);
- // End snippet
- }
-
- /// Snippet for FetchAccessTokenAsync
- public async Task FetchAccessTokenRequestObjectAsync()
- {
- // Snippet: FetchAccessTokenAsync(FetchAccessTokenRequest, CallSettings)
- // Additional: FetchAccessTokenAsync(FetchAccessTokenRequest, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- FetchAccessTokenRequest request = new FetchAccessTokenRequest
- {
- DataSourceName = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]"),
- GenerationId = 0,
- };
- // Make the request
- FetchAccessTokenResponse response = await backupDRClient.FetchAccessTokenAsync(request);
- // End snippet
- }
-
- /// Snippet for FetchAccessToken
- public void FetchAccessToken()
- {
- // Snippet: FetchAccessToken(string, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- FetchAccessTokenResponse response = backupDRClient.FetchAccessToken(name);
- // End snippet
- }
-
- /// Snippet for FetchAccessTokenAsync
- public async Task FetchAccessTokenAsync()
- {
- // Snippet: FetchAccessTokenAsync(string, CallSettings)
- // Additional: FetchAccessTokenAsync(string, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- string name = "projects/[PROJECT]/locations/[LOCATION]/backupVaults/[BACKUPVAULT]/dataSources/[DATASOURCE]";
- // Make the request
- FetchAccessTokenResponse response = await backupDRClient.FetchAccessTokenAsync(name);
- // End snippet
- }
-
- /// Snippet for FetchAccessToken
- public void FetchAccessTokenResourceNames()
- {
- // Snippet: FetchAccessToken(DataSourceName, CallSettings)
- // Create client
- BackupDRClient backupDRClient = BackupDRClient.Create();
- // Initialize request argument(s)
- DataSourceName name = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- FetchAccessTokenResponse response = backupDRClient.FetchAccessToken(name);
- // End snippet
- }
-
- /// Snippet for FetchAccessTokenAsync
- public async Task FetchAccessTokenResourceNamesAsync()
- {
- // Snippet: FetchAccessTokenAsync(DataSourceName, CallSettings)
- // Additional: FetchAccessTokenAsync(DataSourceName, CancellationToken)
- // Create client
- BackupDRClient backupDRClient = await BackupDRClient.CreateAsync();
- // Initialize request argument(s)
- DataSourceName name = DataSourceName.FromProjectLocationBackupvaultDatasource("[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]");
- // Make the request
- FetchAccessTokenResponse response = await backupDRClient.FetchAccessTokenAsync(name);
- // End snippet
- }
-
/// Snippet for ListBackups
public void ListBackupsRequestObject()
{
diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/BackupDRClient.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/BackupDRClient.g.cs
index d408c1c61169..180334ecaf20 100644
--- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/BackupDRClient.g.cs
+++ b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/BackupDRClient.g.cs
@@ -65,21 +65,10 @@ private BackupDRSettings(BackupDRSettings existing) : base(existing)
UpdateBackupVaultOperationsSettings = existing.UpdateBackupVaultOperationsSettings.Clone();
DeleteBackupVaultSettings = existing.DeleteBackupVaultSettings;
DeleteBackupVaultOperationsSettings = existing.DeleteBackupVaultOperationsSettings.Clone();
- TestIamPermissionsSettings = existing.TestIamPermissionsSettings;
ListDataSourcesSettings = existing.ListDataSourcesSettings;
GetDataSourceSettings = existing.GetDataSourceSettings;
UpdateDataSourceSettings = existing.UpdateDataSourceSettings;
UpdateDataSourceOperationsSettings = existing.UpdateDataSourceOperationsSettings.Clone();
- RemoveDataSourceSettings = existing.RemoveDataSourceSettings;
- RemoveDataSourceOperationsSettings = existing.RemoveDataSourceOperationsSettings.Clone();
- SetInternalStatusSettings = existing.SetInternalStatusSettings;
- SetInternalStatusOperationsSettings = existing.SetInternalStatusOperationsSettings.Clone();
- InitiateBackupSettings = existing.InitiateBackupSettings;
- AbandonBackupSettings = existing.AbandonBackupSettings;
- AbandonBackupOperationsSettings = existing.AbandonBackupOperationsSettings.Clone();
- FinalizeBackupSettings = existing.FinalizeBackupSettings;
- FinalizeBackupOperationsSettings = existing.FinalizeBackupOperationsSettings.Clone();
- FetchAccessTokenSettings = existing.FetchAccessTokenSettings;
ListBackupsSettings = existing.ListBackupsSettings;
GetBackupSettings = existing.GetBackupSettings;
UpdateBackupSettings = existing.UpdateBackupSettings;
@@ -361,18 +350,6 @@ private BackupDRSettings(BackupDRSettings existing) : base(existing)
DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)),
};
- ///
- /// for synchronous and asynchronous calls to
- /// BackupDRClient.TestIamPermissions and BackupDRClient.TestIamPermissionsAsync.
- ///
- ///
- ///
- /// - This call will not be retried.
- /// - No timeout is applied.
- ///
- ///
- public gaxgrpc::CallSettings TestIamPermissionsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
-
///
/// for synchronous and asynchronous calls to
/// BackupDRClient.ListDataSources and BackupDRClient.ListDataSourcesAsync.
@@ -439,150 +416,6 @@ private BackupDRSettings(BackupDRSettings existing) : base(existing)
DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)),
};
- ///
- /// for synchronous and asynchronous calls to
- /// BackupDRClient.RemoveDataSource and BackupDRClient.RemoveDataSourceAsync.
- ///
- ///
- ///
- /// - This call will not be retried.
- /// - No timeout is applied.
- ///
- ///
- public gaxgrpc::CallSettings RemoveDataSourceSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
-
- ///
- /// Long Running Operation settings for calls to BackupDRClient.RemoveDataSource and
- /// BackupDRClient.RemoveDataSourceAsync.
- ///
- ///
- /// Uses default of:
- ///
- /// - Initial delay: 20 seconds.
- /// - Delay multiplier: 1.5
- /// - Maximum delay: 45 seconds.
- /// - Total timeout: 24 hours.
- ///
- ///
- public lro::OperationsSettings RemoveDataSourceOperationsSettings { get; set; } = new lro::OperationsSettings
- {
- DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)),
- };
-
- ///
- /// for synchronous and asynchronous calls to
- /// BackupDRClient.SetInternalStatus and BackupDRClient.SetInternalStatusAsync.
- ///
- ///
- ///
- /// - This call will not be retried.
- /// - No timeout is applied.
- ///
- ///
- public gaxgrpc::CallSettings SetInternalStatusSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
-
- ///
- /// Long Running Operation settings for calls to BackupDRClient.SetInternalStatus and
- /// BackupDRClient.SetInternalStatusAsync.
- ///
- ///
- /// Uses default of:
- ///
- /// - Initial delay: 20 seconds.
- /// - Delay multiplier: 1.5
- /// - Maximum delay: 45 seconds.
- /// - Total timeout: 24 hours.
- ///
- ///
- public lro::OperationsSettings SetInternalStatusOperationsSettings { get; set; } = new lro::OperationsSettings
- {
- DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)),
- };
-
- ///
- /// for synchronous and asynchronous calls to
- /// BackupDRClient.InitiateBackup and BackupDRClient.InitiateBackupAsync.
- ///
- ///
- ///
- /// - This call will not be retried.
- /// - No timeout is applied.
- ///
- ///
- public gaxgrpc::CallSettings InitiateBackupSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
-
- ///
- /// for synchronous and asynchronous calls to
- /// BackupDRClient.AbandonBackup and BackupDRClient.AbandonBackupAsync.
- ///
- ///
- ///
- /// - This call will not be retried.
- /// - No timeout is applied.
- ///
- ///
- public gaxgrpc::CallSettings AbandonBackupSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
-
- ///
- /// Long Running Operation settings for calls to BackupDRClient.AbandonBackup and
- /// BackupDRClient.AbandonBackupAsync.
- ///
- ///
- /// Uses default of:
- ///
- /// - Initial delay: 20 seconds.
- /// - Delay multiplier: 1.5
- /// - Maximum delay: 45 seconds.
- /// - Total timeout: 24 hours.
- ///
- ///
- public lro::OperationsSettings AbandonBackupOperationsSettings { get; set; } = new lro::OperationsSettings
- {
- DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)),
- };
-
- ///
- /// for synchronous and asynchronous calls to
- /// BackupDRClient.FinalizeBackup and BackupDRClient.FinalizeBackupAsync.
- ///
- ///
- ///
- /// - This call will not be retried.
- /// - No timeout is applied.
- ///
- ///
- public gaxgrpc::CallSettings FinalizeBackupSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
-
- ///
- /// Long Running Operation settings for calls to BackupDRClient.FinalizeBackup and
- /// BackupDRClient.FinalizeBackupAsync.
- ///
- ///
- /// Uses default of:
- ///
- /// - Initial delay: 20 seconds.
- /// - Delay multiplier: 1.5
- /// - Maximum delay: 45 seconds.
- /// - Total timeout: 24 hours.
- ///
- ///
- public lro::OperationsSettings FinalizeBackupOperationsSettings { get; set; } = new lro::OperationsSettings
- {
- DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)),
- };
-
- ///
- /// for synchronous and asynchronous calls to
- /// BackupDRClient.FetchAccessToken and BackupDRClient.FetchAccessTokenAsync.
- ///
- ///
- ///
- /// - This call will not be retried.
- /// - No timeout is applied.
- ///
- ///
- public gaxgrpc::CallSettings FetchAccessTokenSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
-
///
/// for synchronous and asynchronous calls to BackupDRClient.ListBackups
/// and BackupDRClient.ListBackupsAsync.
@@ -2577,196 +2410,6 @@ public virtual BackupVault GetBackupVault(BackupVaultName name, gaxgrpc::CallSet
public virtual stt::Task> DeleteBackupVaultAsync(BackupVaultName name, st::CancellationToken cancellationToken) =>
DeleteBackupVaultAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
- ///
- /// Returns the caller's permissions on a BackupVault resource.
- ///
- /// A caller is not required to have Google IAM permission to make this
- /// request.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual gciv::TestIamPermissionsResponse TestIamPermissions(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Returns the caller's permissions on a BackupVault resource.
- ///
- /// A caller is not required to have Google IAM permission to make this
- /// request.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task TestIamPermissionsAsync(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Returns the caller's permissions on a BackupVault resource.
- ///
- /// A caller is not required to have Google IAM permission to make this
- /// request.
- ///
- /// The request object containing all of the parameters for the API call.
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task TestIamPermissionsAsync(gciv::TestIamPermissionsRequest request, st::CancellationToken cancellationToken) =>
- TestIamPermissionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Returns the caller's permissions on a BackupVault resource.
- ///
- /// A caller is not required to have Google IAM permission to make this
- /// request.
- ///
- ///
- /// REQUIRED: The resource for which the policy detail is being requested.
- /// See the operation documentation for the appropriate value for this field.
- ///
- ///
- /// The set of permissions to check for the `resource`. Permissions with
- /// wildcards (such as '*' or 'storage.*') are not allowed. For more
- /// information see
- /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
- ///
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual gciv::TestIamPermissionsResponse TestIamPermissions(string resource, scg::IEnumerable permissions, gaxgrpc::CallSettings callSettings = null) =>
- TestIamPermissions(new gciv::TestIamPermissionsRequest
- {
- Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)),
- Permissions =
- {
- gax::GaxPreconditions.CheckNotNull(permissions, nameof(permissions)),
- },
- }, callSettings);
-
- ///
- /// Returns the caller's permissions on a BackupVault resource.
- ///
- /// A caller is not required to have Google IAM permission to make this
- /// request.
- ///
- ///
- /// REQUIRED: The resource for which the policy detail is being requested.
- /// See the operation documentation for the appropriate value for this field.
- ///
- ///
- /// The set of permissions to check for the `resource`. Permissions with
- /// wildcards (such as '*' or 'storage.*') are not allowed. For more
- /// information see
- /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
- ///
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task TestIamPermissionsAsync(string resource, scg::IEnumerable permissions, gaxgrpc::CallSettings callSettings = null) =>
- TestIamPermissionsAsync(new gciv::TestIamPermissionsRequest
- {
- Resource = gax::GaxPreconditions.CheckNotNullOrEmpty(resource, nameof(resource)),
- Permissions =
- {
- gax::GaxPreconditions.CheckNotNull(permissions, nameof(permissions)),
- },
- }, callSettings);
-
- ///
- /// Returns the caller's permissions on a BackupVault resource.
- ///
- /// A caller is not required to have Google IAM permission to make this
- /// request.
- ///
- ///
- /// REQUIRED: The resource for which the policy detail is being requested.
- /// See the operation documentation for the appropriate value for this field.
- ///
- ///
- /// The set of permissions to check for the `resource`. Permissions with
- /// wildcards (such as '*' or 'storage.*') are not allowed. For more
- /// information see
- /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
- ///
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task TestIamPermissionsAsync(string resource, scg::IEnumerable permissions, st::CancellationToken cancellationToken) =>
- TestIamPermissionsAsync(resource, permissions, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Returns the caller's permissions on a BackupVault resource.
- ///
- /// A caller is not required to have Google IAM permission to make this
- /// request.
- ///
- ///
- /// REQUIRED: The resource for which the policy detail is being requested.
- /// See the operation documentation for the appropriate value for this field.
- ///
- ///
- /// The set of permissions to check for the `resource`. Permissions with
- /// wildcards (such as '*' or 'storage.*') are not allowed. For more
- /// information see
- /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
- ///
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual gciv::TestIamPermissionsResponse TestIamPermissions(gax::IResourceName resource, scg::IEnumerable permissions, gaxgrpc::CallSettings callSettings = null) =>
- TestIamPermissions(new gciv::TestIamPermissionsRequest
- {
- ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)),
- Permissions =
- {
- gax::GaxPreconditions.CheckNotNull(permissions, nameof(permissions)),
- },
- }, callSettings);
-
- ///
- /// Returns the caller's permissions on a BackupVault resource.
- ///
- /// A caller is not required to have Google IAM permission to make this
- /// request.
- ///
- ///
- /// REQUIRED: The resource for which the policy detail is being requested.
- /// See the operation documentation for the appropriate value for this field.
- ///
- ///
- /// The set of permissions to check for the `resource`. Permissions with
- /// wildcards (such as '*' or 'storage.*') are not allowed. For more
- /// information see
- /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
- ///
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task TestIamPermissionsAsync(gax::IResourceName resource, scg::IEnumerable permissions, gaxgrpc::CallSettings callSettings = null) =>
- TestIamPermissionsAsync(new gciv::TestIamPermissionsRequest
- {
- ResourceAsResourceName = gax::GaxPreconditions.CheckNotNull(resource, nameof(resource)),
- Permissions =
- {
- gax::GaxPreconditions.CheckNotNull(permissions, nameof(permissions)),
- },
- }, callSettings);
-
- ///
- /// Returns the caller's permissions on a BackupVault resource.
- ///
- /// A caller is not required to have Google IAM permission to make this
- /// request.
- ///
- ///
- /// REQUIRED: The resource for which the policy detail is being requested.
- /// See the operation documentation for the appropriate value for this field.
- ///
- ///
- /// The set of permissions to check for the `resource`. Permissions with
- /// wildcards (such as '*' or 'storage.*') are not allowed. For more
- /// information see
- /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
- ///
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task TestIamPermissionsAsync(gax::IResourceName resource, scg::IEnumerable permissions, st::CancellationToken cancellationToken) =>
- TestIamPermissionsAsync(resource, permissions, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
///
/// Lists DataSources in a given project and location.
///
@@ -2984,1015 +2627,184 @@ public virtual DataSource GetDataSource(string name, gaxgrpc::CallSettings callS
///
///
/// Required. Name of the data source resource name, in the format
- /// 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}'
- ///
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task GetDataSourceAsync(string name, gaxgrpc::CallSettings callSettings = null) =>
- GetDataSourceAsync(new GetDataSourceRequest
- {
- Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)),
- }, callSettings);
-
- ///
- /// Gets details of a DataSource.
- ///
- ///
- /// Required. Name of the data source resource name, in the format
- /// 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}'
- ///
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task GetDataSourceAsync(string name, st::CancellationToken cancellationToken) =>
- GetDataSourceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Gets details of a DataSource.
- ///
- ///
- /// Required. Name of the data source resource name, in the format
- /// 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}'
- ///
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual DataSource GetDataSource(DataSourceName name, gaxgrpc::CallSettings callSettings = null) =>
- GetDataSource(new GetDataSourceRequest
- {
- DataSourceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
- }, callSettings);
-
- ///
- /// Gets details of a DataSource.
- ///
- ///
- /// Required. Name of the data source resource name, in the format
- /// 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}'
- ///
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task GetDataSourceAsync(DataSourceName name, gaxgrpc::CallSettings callSettings = null) =>
- GetDataSourceAsync(new GetDataSourceRequest
- {
- DataSourceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
- }, callSettings);
-
- ///
- /// Gets details of a DataSource.
- ///
- ///
- /// Required. Name of the data source resource name, in the format
- /// 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}'
- ///
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task GetDataSourceAsync(DataSourceName name, st::CancellationToken cancellationToken) =>
- GetDataSourceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Updates the settings of a DataSource.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual lro::Operation UpdateDataSource(UpdateDataSourceRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Updates the settings of a DataSource.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task> UpdateDataSourceAsync(UpdateDataSourceRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Updates the settings of a DataSource.
- ///
- /// The request object containing all of the parameters for the API call.
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task> UpdateDataSourceAsync(UpdateDataSourceRequest request, st::CancellationToken cancellationToken) =>
- UpdateDataSourceAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- /// The long-running operations client for UpdateDataSource.
- public virtual lro::OperationsClient UpdateDataSourceOperationsClient => throw new sys::NotImplementedException();
-
- ///
- /// Poll an operation once, using an operationName from a previous invocation of UpdateDataSource.
- ///
- ///
- /// The name of a previously invoked operation. Must not be null or empty.
- ///
- /// If not null, applies overrides to this RPC call.
- /// The result of polling the operation.
- public virtual lro::Operation PollOnceUpdateDataSource(string operationName, gaxgrpc::CallSettings callSettings = null) =>
- lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateDataSourceOperationsClient, callSettings);
-
- ///
- /// Asynchronously poll an operation once, using an operationName from a previous invocation of
- /// UpdateDataSource.
- ///
- ///
- /// The name of a previously invoked operation. Must not be null or empty.
- ///
- /// If not null, applies overrides to this RPC call.
- /// A task representing the result of polling the operation.
- public virtual stt::Task> PollOnceUpdateDataSourceAsync(string operationName, gaxgrpc::CallSettings callSettings = null) =>
- lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), UpdateDataSourceOperationsClient, callSettings);
-
- ///
- /// Updates the settings of a DataSource.
- ///
- ///
- /// Required. The resource being updated
- ///
- ///
- /// Required. Field mask is used to specify the fields to be overwritten in the
- /// DataSource resource by the update.
- /// The fields specified in the update_mask are relative to the resource, not
- /// the full request. A field will be overwritten if it is in the mask. If the
- /// user does not provide a mask then the request will fail.
- ///
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual lro::Operation UpdateDataSource(DataSource dataSource, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) =>
- UpdateDataSource(new UpdateDataSourceRequest
- {
- UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)),
- DataSource = gax::GaxPreconditions.CheckNotNull(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Updates the settings of a DataSource.
- ///
- ///
- /// Required. The resource being updated
- ///
- ///
- /// Required. Field mask is used to specify the fields to be overwritten in the
- /// DataSource resource by the update.
- /// The fields specified in the update_mask are relative to the resource, not
- /// the full request. A field will be overwritten if it is in the mask. If the
- /// user does not provide a mask then the request will fail.
- ///
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task> UpdateDataSourceAsync(DataSource dataSource, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) =>
- UpdateDataSourceAsync(new UpdateDataSourceRequest
- {
- UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)),
- DataSource = gax::GaxPreconditions.CheckNotNull(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Updates the settings of a DataSource.
- ///
- ///
- /// Required. The resource being updated
- ///
- ///
- /// Required. Field mask is used to specify the fields to be overwritten in the
- /// DataSource resource by the update.
- /// The fields specified in the update_mask are relative to the resource, not
- /// the full request. A field will be overwritten if it is in the mask. If the
- /// user does not provide a mask then the request will fail.
- ///
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task> UpdateDataSourceAsync(DataSource dataSource, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) =>
- UpdateDataSourceAsync(dataSource, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Deletes a DataSource. This is a custom method instead of a standard delete
- /// method because external clients will not delete DataSources except for
- /// BackupDR backup appliances.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual lro::Operation RemoveDataSource(RemoveDataSourceRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Deletes a DataSource. This is a custom method instead of a standard delete
- /// method because external clients will not delete DataSources except for
- /// BackupDR backup appliances.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task> RemoveDataSourceAsync(RemoveDataSourceRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Deletes a DataSource. This is a custom method instead of a standard delete
- /// method because external clients will not delete DataSources except for
- /// BackupDR backup appliances.
- ///
- /// The request object containing all of the parameters for the API call.
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task> RemoveDataSourceAsync(RemoveDataSourceRequest request, st::CancellationToken cancellationToken) =>
- RemoveDataSourceAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- /// The long-running operations client for RemoveDataSource.
- public virtual lro::OperationsClient RemoveDataSourceOperationsClient => throw new sys::NotImplementedException();
-
- ///
- /// Poll an operation once, using an operationName from a previous invocation of RemoveDataSource.
- ///
- ///
- /// The name of a previously invoked operation. Must not be null or empty.
- ///
- /// If not null, applies overrides to this RPC call.
- /// The result of polling the operation.
- public virtual lro::Operation PollOnceRemoveDataSource(string operationName, gaxgrpc::CallSettings callSettings = null) =>
- lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), RemoveDataSourceOperationsClient, callSettings);
-
- ///
- /// Asynchronously poll an operation once, using an operationName from a previous invocation of
- /// RemoveDataSource.
- ///
- ///
- /// The name of a previously invoked operation. Must not be null or empty.
- ///
- /// If not null, applies overrides to this RPC call.
- /// A task representing the result of polling the operation.
- public virtual stt::Task> PollOnceRemoveDataSourceAsync(string operationName, gaxgrpc::CallSettings callSettings = null) =>
- lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), RemoveDataSourceOperationsClient, callSettings);
-
- ///
- /// Deletes a DataSource. This is a custom method instead of a standard delete
- /// method because external clients will not delete DataSources except for
- /// BackupDR backup appliances.
- ///
- ///
- /// Required. Name of the resource.
- ///
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual lro::Operation RemoveDataSource(string name, gaxgrpc::CallSettings callSettings = null) =>
- RemoveDataSource(new RemoveDataSourceRequest
- {
- Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)),
- }, callSettings);
-
- ///
- /// Deletes a DataSource. This is a custom method instead of a standard delete
- /// method because external clients will not delete DataSources except for
- /// BackupDR backup appliances.
- ///
- ///
- /// Required. Name of the resource.
- ///
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task> RemoveDataSourceAsync(string name, gaxgrpc::CallSettings callSettings = null) =>
- RemoveDataSourceAsync(new RemoveDataSourceRequest
- {
- Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)),
- }, callSettings);
-
- ///
- /// Deletes a DataSource. This is a custom method instead of a standard delete
- /// method because external clients will not delete DataSources except for
- /// BackupDR backup appliances.
- ///
- ///
- /// Required. Name of the resource.
- ///
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task> RemoveDataSourceAsync(string name, st::CancellationToken cancellationToken) =>
- RemoveDataSourceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Deletes a DataSource. This is a custom method instead of a standard delete
- /// method because external clients will not delete DataSources except for
- /// BackupDR backup appliances.
- ///
- ///
- /// Required. Name of the resource.
- ///
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual lro::Operation RemoveDataSource(DataSourceName name, gaxgrpc::CallSettings callSettings = null) =>
- RemoveDataSource(new RemoveDataSourceRequest
- {
- DataSourceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
- }, callSettings);
-
- ///
- /// Deletes a DataSource. This is a custom method instead of a standard delete
- /// method because external clients will not delete DataSources except for
- /// BackupDR backup appliances.
- ///
- ///
- /// Required. Name of the resource.
- ///
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task> RemoveDataSourceAsync(DataSourceName name, gaxgrpc::CallSettings callSettings = null) =>
- RemoveDataSourceAsync(new RemoveDataSourceRequest
- {
- DataSourceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)),
- }, callSettings);
-
- ///
- /// Deletes a DataSource. This is a custom method instead of a standard delete
- /// method because external clients will not delete DataSources except for
- /// BackupDR backup appliances.
- ///
- ///
- /// Required. Name of the resource.
- ///
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task> RemoveDataSourceAsync(DataSourceName name, st::CancellationToken cancellationToken) =>
- RemoveDataSourceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Sets the internal status of a DataSource.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual lro::Operation SetInternalStatus(SetInternalStatusRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Sets the internal status of a DataSource.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task> SetInternalStatusAsync(SetInternalStatusRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Sets the internal status of a DataSource.
- ///
- /// The request object containing all of the parameters for the API call.
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task> SetInternalStatusAsync(SetInternalStatusRequest request, st::CancellationToken cancellationToken) =>
- SetInternalStatusAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- /// The long-running operations client for SetInternalStatus.
- public virtual lro::OperationsClient SetInternalStatusOperationsClient => throw new sys::NotImplementedException();
-
- ///
- /// Poll an operation once, using an operationName from a previous invocation of SetInternalStatus
- /// .
- ///
- ///
- /// The name of a previously invoked operation. Must not be null or empty.
- ///
- /// If not null, applies overrides to this RPC call.
- /// The result of polling the operation.
- public virtual lro::Operation PollOnceSetInternalStatus(string operationName, gaxgrpc::CallSettings callSettings = null) =>
- lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), SetInternalStatusOperationsClient, callSettings);
-
- ///
- /// Asynchronously poll an operation once, using an operationName from a previous invocation of
- /// SetInternalStatus.
- ///
- ///
- /// The name of a previously invoked operation. Must not be null or empty.
- ///
- /// If not null, applies overrides to this RPC call.
- /// A task representing the result of polling the operation.
- public virtual stt::Task> PollOnceSetInternalStatusAsync(string operationName, gaxgrpc::CallSettings callSettings = null) =>
- lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), SetInternalStatusOperationsClient, callSettings);
-
- ///
- /// Sets the internal status of a DataSource.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual lro::Operation SetInternalStatus(string dataSource, gaxgrpc::CallSettings callSettings = null) =>
- SetInternalStatus(new SetInternalStatusRequest
- {
- DataSource = gax::GaxPreconditions.CheckNotNullOrEmpty(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Sets the internal status of a DataSource.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task> SetInternalStatusAsync(string dataSource, gaxgrpc::CallSettings callSettings = null) =>
- SetInternalStatusAsync(new SetInternalStatusRequest
- {
- DataSource = gax::GaxPreconditions.CheckNotNullOrEmpty(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Sets the internal status of a DataSource.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task> SetInternalStatusAsync(string dataSource, st::CancellationToken cancellationToken) =>
- SetInternalStatusAsync(dataSource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Sets the internal status of a DataSource.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual lro::Operation SetInternalStatus(DataSourceName dataSource, gaxgrpc::CallSettings callSettings = null) =>
- SetInternalStatus(new SetInternalStatusRequest
- {
- DataSourceAsDataSourceName = gax::GaxPreconditions.CheckNotNull(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Sets the internal status of a DataSource.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task> SetInternalStatusAsync(DataSourceName dataSource, gaxgrpc::CallSettings callSettings = null) =>
- SetInternalStatusAsync(new SetInternalStatusRequest
- {
- DataSourceAsDataSourceName = gax::GaxPreconditions.CheckNotNull(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Sets the internal status of a DataSource.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task> SetInternalStatusAsync(DataSourceName dataSource, st::CancellationToken cancellationToken) =>
- SetInternalStatusAsync(dataSource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Internal only.
- /// Initiates a backup.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual InitiateBackupResponse InitiateBackup(InitiateBackupRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Internal only.
- /// Initiates a backup.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task InitiateBackupAsync(InitiateBackupRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Internal only.
- /// Initiates a backup.
- ///
- /// The request object containing all of the parameters for the API call.
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task InitiateBackupAsync(InitiateBackupRequest request, st::CancellationToken cancellationToken) =>
- InitiateBackupAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Internal only.
- /// Initiates a backup.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual InitiateBackupResponse InitiateBackup(string dataSource, gaxgrpc::CallSettings callSettings = null) =>
- InitiateBackup(new InitiateBackupRequest
- {
- DataSource = gax::GaxPreconditions.CheckNotNullOrEmpty(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Internal only.
- /// Initiates a backup.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task InitiateBackupAsync(string dataSource, gaxgrpc::CallSettings callSettings = null) =>
- InitiateBackupAsync(new InitiateBackupRequest
- {
- DataSource = gax::GaxPreconditions.CheckNotNullOrEmpty(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Internal only.
- /// Initiates a backup.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task InitiateBackupAsync(string dataSource, st::CancellationToken cancellationToken) =>
- InitiateBackupAsync(dataSource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Internal only.
- /// Initiates a backup.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual InitiateBackupResponse InitiateBackup(DataSourceName dataSource, gaxgrpc::CallSettings callSettings = null) =>
- InitiateBackup(new InitiateBackupRequest
- {
- DataSourceAsDataSourceName = gax::GaxPreconditions.CheckNotNull(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Internal only.
- /// Initiates a backup.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task InitiateBackupAsync(DataSourceName dataSource, gaxgrpc::CallSettings callSettings = null) =>
- InitiateBackupAsync(new InitiateBackupRequest
- {
- DataSourceAsDataSourceName = gax::GaxPreconditions.CheckNotNull(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Internal only.
- /// Initiates a backup.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task InitiateBackupAsync(DataSourceName dataSource, st::CancellationToken cancellationToken) =>
- InitiateBackupAsync(dataSource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Internal only.
- /// Abandons a backup.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual lro::Operation AbandonBackup(AbandonBackupRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Internal only.
- /// Abandons a backup.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task> AbandonBackupAsync(AbandonBackupRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Internal only.
- /// Abandons a backup.
- ///
- /// The request object containing all of the parameters for the API call.
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task> AbandonBackupAsync(AbandonBackupRequest request, st::CancellationToken cancellationToken) =>
- AbandonBackupAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- /// The long-running operations client for AbandonBackup.
- public virtual lro::OperationsClient AbandonBackupOperationsClient => throw new sys::NotImplementedException();
-
- ///
- /// Poll an operation once, using an operationName from a previous invocation of AbandonBackup.
- ///
- ///
- /// The name of a previously invoked operation. Must not be null or empty.
- ///
- /// If not null, applies overrides to this RPC call.
- /// The result of polling the operation.
- public virtual lro::Operation PollOnceAbandonBackup(string operationName, gaxgrpc::CallSettings callSettings = null) =>
- lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), AbandonBackupOperationsClient, callSettings);
-
- ///
- /// Asynchronously poll an operation once, using an operationName from a previous invocation of
- /// AbandonBackup.
- ///
- ///
- /// The name of a previously invoked operation. Must not be null or empty.
- ///
- /// If not null, applies overrides to this RPC call.
- /// A task representing the result of polling the operation.
- public virtual stt::Task> PollOnceAbandonBackupAsync(string operationName, gaxgrpc::CallSettings callSettings = null) =>
- lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), AbandonBackupOperationsClient, callSettings);
-
- ///
- /// Internal only.
- /// Abandons a backup.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual lro::Operation AbandonBackup(string dataSource, gaxgrpc::CallSettings callSettings = null) =>
- AbandonBackup(new AbandonBackupRequest
- {
- DataSource = gax::GaxPreconditions.CheckNotNullOrEmpty(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Internal only.
- /// Abandons a backup.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task> AbandonBackupAsync(string dataSource, gaxgrpc::CallSettings callSettings = null) =>
- AbandonBackupAsync(new AbandonBackupRequest
- {
- DataSource = gax::GaxPreconditions.CheckNotNullOrEmpty(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Internal only.
- /// Abandons a backup.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task> AbandonBackupAsync(string dataSource, st::CancellationToken cancellationToken) =>
- AbandonBackupAsync(dataSource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Internal only.
- /// Abandons a backup.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual lro::Operation AbandonBackup(DataSourceName dataSource, gaxgrpc::CallSettings callSettings = null) =>
- AbandonBackup(new AbandonBackupRequest
- {
- DataSourceAsDataSourceName = gax::GaxPreconditions.CheckNotNull(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Internal only.
- /// Abandons a backup.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task> AbandonBackupAsync(DataSourceName dataSource, gaxgrpc::CallSettings callSettings = null) =>
- AbandonBackupAsync(new AbandonBackupRequest
- {
- DataSourceAsDataSourceName = gax::GaxPreconditions.CheckNotNull(dataSource, nameof(dataSource)),
- }, callSettings);
-
- ///
- /// Internal only.
- /// Abandons a backup.
- ///
- ///
- /// Required. The resource name of the instance, in the format
- /// 'projects/*/locations/*/backupVaults/*/dataSources/'.
- ///
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task> AbandonBackupAsync(DataSourceName dataSource, st::CancellationToken cancellationToken) =>
- AbandonBackupAsync(dataSource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///
- /// Internal only.
- /// Finalize a backup that was started by a call to InitiateBackup.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// The RPC response.
- public virtual lro::Operation FinalizeBackup(FinalizeBackupRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Internal only.
- /// Finalize a backup that was started by a call to InitiateBackup.
- ///
- /// The request object containing all of the parameters for the API call.
- /// If not null, applies overrides to this RPC call.
- /// A Task containing the RPC response.
- public virtual stt::Task> FinalizeBackupAsync(FinalizeBackupRequest request, gaxgrpc::CallSettings callSettings = null) =>
- throw new sys::NotImplementedException();
-
- ///
- /// Internal only.
- /// Finalize a backup that was started by a call to InitiateBackup.
- ///
- /// The request object containing all of the parameters for the API call.
- /// A to use for this RPC.
- /// A Task containing the RPC response.
- public virtual stt::Task> FinalizeBackupAsync(FinalizeBackupRequest request, st::CancellationToken cancellationToken) =>
- FinalizeBackupAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
-
- ///