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)); - - /// The long-running operations client for FinalizeBackup. - public virtual lro::OperationsClient FinalizeBackupOperationsClient => throw new sys::NotImplementedException(); - - /// - /// Poll an operation once, using an operationName from a previous invocation of FinalizeBackup. - /// - /// - /// 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 PollOnceFinalizeBackup(string operationName, gaxgrpc::CallSettings callSettings = null) => - lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), FinalizeBackupOperationsClient, callSettings); - - /// - /// Asynchronously poll an operation once, using an operationName from a previous invocation of - /// FinalizeBackup. - /// - /// - /// 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> PollOnceFinalizeBackupAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => - lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), FinalizeBackupOperationsClient, callSettings); - - /// - /// Internal only. - /// Finalize a backup that was started by a call to InitiateBackup. - /// - /// - /// 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 FinalizeBackup(string dataSource, gaxgrpc::CallSettings callSettings = null) => - FinalizeBackup(new FinalizeBackupRequest - { - DataSource = gax::GaxPreconditions.CheckNotNullOrEmpty(dataSource, nameof(dataSource)), - }, callSettings); - - /// - /// Internal only. - /// Finalize a backup that was started by a call to InitiateBackup. - /// - /// - /// Required. The resource name of the instance, in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources/'. + /// '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> FinalizeBackupAsync(string dataSource, gaxgrpc::CallSettings callSettings = null) => - FinalizeBackupAsync(new FinalizeBackupRequest + public virtual stt::Task GetDataSourceAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetDataSourceAsync(new GetDataSourceRequest { - DataSource = gax::GaxPreconditions.CheckNotNullOrEmpty(dataSource, nameof(dataSource)), + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), }, callSettings); /// - /// Internal only. - /// Finalize a backup that was started by a call to InitiateBackup. + /// Gets details of a DataSource. /// - /// - /// Required. The resource name of the instance, in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources/'. + /// + /// 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> FinalizeBackupAsync(string dataSource, st::CancellationToken cancellationToken) => - FinalizeBackupAsync(dataSource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + public virtual stt::Task GetDataSourceAsync(string name, st::CancellationToken cancellationToken) => + GetDataSourceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); /// - /// Internal only. - /// Finalize a backup that was started by a call to InitiateBackup. + /// Gets details of a DataSource. /// - /// - /// Required. The resource name of the instance, in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources/'. + /// + /// 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 lro::Operation FinalizeBackup(DataSourceName dataSource, gaxgrpc::CallSettings callSettings = null) => - FinalizeBackup(new FinalizeBackupRequest + public virtual DataSource GetDataSource(DataSourceName name, gaxgrpc::CallSettings callSettings = null) => + GetDataSource(new GetDataSourceRequest { - DataSourceAsDataSourceName = gax::GaxPreconditions.CheckNotNull(dataSource, nameof(dataSource)), + DataSourceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), }, callSettings); /// - /// Internal only. - /// Finalize a backup that was started by a call to InitiateBackup. + /// Gets details of a DataSource. /// - /// - /// Required. The resource name of the instance, in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources/'. + /// + /// 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> FinalizeBackupAsync(DataSourceName dataSource, gaxgrpc::CallSettings callSettings = null) => - FinalizeBackupAsync(new FinalizeBackupRequest + public virtual stt::Task GetDataSourceAsync(DataSourceName name, gaxgrpc::CallSettings callSettings = null) => + GetDataSourceAsync(new GetDataSourceRequest { - DataSourceAsDataSourceName = gax::GaxPreconditions.CheckNotNull(dataSource, nameof(dataSource)), + DataSourceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), }, callSettings); /// - /// Internal only. - /// Finalize a backup that was started by a call to InitiateBackup. + /// Gets details of a DataSource. /// - /// - /// Required. The resource name of the instance, in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources/'. + /// + /// 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> FinalizeBackupAsync(DataSourceName dataSource, st::CancellationToken cancellationToken) => - FinalizeBackupAsync(dataSource, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + public virtual stt::Task GetDataSourceAsync(DataSourceName name, st::CancellationToken cancellationToken) => + GetDataSourceAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); /// - /// Internal only. - /// Fetch access token for a given data source. + /// 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 FetchAccessTokenResponse FetchAccessToken(FetchAccessTokenRequest request, gaxgrpc::CallSettings callSettings = null) => + public virtual lro::Operation UpdateDataSource(UpdateDataSourceRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException(); /// - /// Internal only. - /// Fetch access token for a given data source. + /// 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 FetchAccessTokenAsync(FetchAccessTokenRequest request, gaxgrpc::CallSettings callSettings = null) => + public virtual stt::Task> UpdateDataSourceAsync(UpdateDataSourceRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException(); /// - /// Internal only. - /// Fetch access token for a given data source. + /// 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 FetchAccessTokenAsync(FetchAccessTokenRequest request, st::CancellationToken cancellationToken) => - FetchAccessTokenAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + 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(); /// - /// Internal only. - /// Fetch access token for a given data source. + /// Poll an operation once, using an operationName from a previous invocation of UpdateDataSource. /// - /// - /// Required. The resource name for the location for which static IPs should be - /// returned. - /// Must be in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources'. + /// + /// The name of a previously invoked operation. Must not be null or empty. /// /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual FetchAccessTokenResponse FetchAccessToken(string name, gaxgrpc::CallSettings callSettings = null) => - FetchAccessToken(new FetchAccessTokenRequest - { - Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), - }, callSettings); + /// 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); /// - /// Internal only. - /// Fetch access token for a given data source. + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// UpdateDataSource. /// - /// - /// Required. The resource name for the location for which static IPs should be - /// returned. - /// Must be in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources'. + /// + /// The name of a previously invoked operation. Must not be null or empty. /// /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task FetchAccessTokenAsync(string name, gaxgrpc::CallSettings callSettings = null) => - FetchAccessTokenAsync(new FetchAccessTokenRequest - { - Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), - }, callSettings); + /// 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); /// - /// Internal only. - /// Fetch access token for a given data source. + /// Updates the settings of a DataSource. /// - /// - /// Required. The resource name for the location for which static IPs should be - /// returned. - /// Must be in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources'. + /// + /// Required. The resource being updated /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task FetchAccessTokenAsync(string name, st::CancellationToken cancellationToken) => - FetchAccessTokenAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Internal only. - /// Fetch access token for a given data source. - /// - /// - /// Required. The resource name for the location for which static IPs should be - /// returned. - /// Must be in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources'. + /// + /// 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 FetchAccessTokenResponse FetchAccessToken(DataSourceName name, gaxgrpc::CallSettings callSettings = null) => - FetchAccessToken(new FetchAccessTokenRequest + public virtual lro::Operation UpdateDataSource(DataSource dataSource, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateDataSource(new UpdateDataSourceRequest { - DataSourceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + DataSource = gax::GaxPreconditions.CheckNotNull(dataSource, nameof(dataSource)), }, callSettings); /// - /// Internal only. - /// Fetch access token for a given data source. + /// Updates the settings of a DataSource. /// - /// - /// Required. The resource name for the location for which static IPs should be - /// returned. - /// Must be in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources'. + /// + /// 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 FetchAccessTokenAsync(DataSourceName name, gaxgrpc::CallSettings callSettings = null) => - FetchAccessTokenAsync(new FetchAccessTokenRequest + public virtual stt::Task> UpdateDataSourceAsync(DataSource dataSource, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateDataSourceAsync(new UpdateDataSourceRequest { - DataSourceName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + DataSource = gax::GaxPreconditions.CheckNotNull(dataSource, nameof(dataSource)), }, callSettings); /// - /// Internal only. - /// Fetch access token for a given data source. + /// Updates the settings of a DataSource. /// - /// - /// Required. The resource name for the location for which static IPs should be - /// returned. - /// Must be in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources'. + /// + /// 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 FetchAccessTokenAsync(DataSourceName name, st::CancellationToken cancellationToken) => - FetchAccessTokenAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + public virtual stt::Task> UpdateDataSourceAsync(DataSource dataSource, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateDataSourceAsync(dataSource, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); /// /// Lists Backups in a given project and location. @@ -6088,26 +4900,12 @@ public sealed partial class BackupDRClientImpl : BackupDRClient private readonly gaxgrpc::ApiCall _callDeleteBackupVault; - private readonly gaxgrpc::ApiCall _callTestIamPermissions; - private readonly gaxgrpc::ApiCall _callListDataSources; private readonly gaxgrpc::ApiCall _callGetDataSource; private readonly gaxgrpc::ApiCall _callUpdateDataSource; - private readonly gaxgrpc::ApiCall _callRemoveDataSource; - - private readonly gaxgrpc::ApiCall _callSetInternalStatus; - - private readonly gaxgrpc::ApiCall _callInitiateBackup; - - private readonly gaxgrpc::ApiCall _callAbandonBackup; - - private readonly gaxgrpc::ApiCall _callFinalizeBackup; - - private readonly gaxgrpc::ApiCall _callFetchAccessToken; - private readonly gaxgrpc::ApiCall _callListBackups; private readonly gaxgrpc::ApiCall _callGetBackup; @@ -6157,10 +4955,6 @@ public BackupDRClientImpl(BackupDR.BackupDRClient grpcClient, BackupDRSettings s UpdateBackupVaultOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateBackupVaultOperationsSettings, logger); DeleteBackupVaultOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.DeleteBackupVaultOperationsSettings, logger); UpdateDataSourceOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateDataSourceOperationsSettings, logger); - RemoveDataSourceOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.RemoveDataSourceOperationsSettings, logger); - SetInternalStatusOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.SetInternalStatusOperationsSettings, logger); - AbandonBackupOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.AbandonBackupOperationsSettings, logger); - FinalizeBackupOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.FinalizeBackupOperationsSettings, logger); UpdateBackupOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.UpdateBackupOperationsSettings, logger); DeleteBackupOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.DeleteBackupOperationsSettings, logger); RestoreBackupOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.RestoreBackupOperationsSettings, logger); @@ -6201,9 +4995,6 @@ public BackupDRClientImpl(BackupDR.BackupDRClient grpcClient, BackupDRSettings s _callDeleteBackupVault = clientHelper.BuildApiCall("DeleteBackupVault", grpcClient.DeleteBackupVaultAsync, grpcClient.DeleteBackupVault, effectiveSettings.DeleteBackupVaultSettings).WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callDeleteBackupVault); Modify_DeleteBackupVaultApiCall(ref _callDeleteBackupVault); - _callTestIamPermissions = clientHelper.BuildApiCall("TestIamPermissions", grpcClient.TestIamPermissionsAsync, grpcClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings).WithGoogleRequestParam("resource", request => request.Resource); - Modify_ApiCall(ref _callTestIamPermissions); - Modify_TestIamPermissionsApiCall(ref _callTestIamPermissions); _callListDataSources = clientHelper.BuildApiCall("ListDataSources", grpcClient.ListDataSourcesAsync, grpcClient.ListDataSources, effectiveSettings.ListDataSourcesSettings).WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callListDataSources); Modify_ListDataSourcesApiCall(ref _callListDataSources); @@ -6213,24 +5004,6 @@ public BackupDRClientImpl(BackupDR.BackupDRClient grpcClient, BackupDRSettings s _callUpdateDataSource = clientHelper.BuildApiCall("UpdateDataSource", grpcClient.UpdateDataSourceAsync, grpcClient.UpdateDataSource, effectiveSettings.UpdateDataSourceSettings).WithGoogleRequestParam("data_source.name", request => request.DataSource?.Name); Modify_ApiCall(ref _callUpdateDataSource); Modify_UpdateDataSourceApiCall(ref _callUpdateDataSource); - _callRemoveDataSource = clientHelper.BuildApiCall("RemoveDataSource", grpcClient.RemoveDataSourceAsync, grpcClient.RemoveDataSource, effectiveSettings.RemoveDataSourceSettings).WithGoogleRequestParam("name", request => request.Name); - Modify_ApiCall(ref _callRemoveDataSource); - Modify_RemoveDataSourceApiCall(ref _callRemoveDataSource); - _callSetInternalStatus = clientHelper.BuildApiCall("SetInternalStatus", grpcClient.SetInternalStatusAsync, grpcClient.SetInternalStatus, effectiveSettings.SetInternalStatusSettings).WithGoogleRequestParam("data_source", request => request.DataSource); - Modify_ApiCall(ref _callSetInternalStatus); - Modify_SetInternalStatusApiCall(ref _callSetInternalStatus); - _callInitiateBackup = clientHelper.BuildApiCall("InitiateBackup", grpcClient.InitiateBackupAsync, grpcClient.InitiateBackup, effectiveSettings.InitiateBackupSettings).WithGoogleRequestParam("data_source", request => request.DataSource); - Modify_ApiCall(ref _callInitiateBackup); - Modify_InitiateBackupApiCall(ref _callInitiateBackup); - _callAbandonBackup = clientHelper.BuildApiCall("AbandonBackup", grpcClient.AbandonBackupAsync, grpcClient.AbandonBackup, effectiveSettings.AbandonBackupSettings).WithGoogleRequestParam("data_source", request => request.DataSource); - Modify_ApiCall(ref _callAbandonBackup); - Modify_AbandonBackupApiCall(ref _callAbandonBackup); - _callFinalizeBackup = clientHelper.BuildApiCall("FinalizeBackup", grpcClient.FinalizeBackupAsync, grpcClient.FinalizeBackup, effectiveSettings.FinalizeBackupSettings).WithGoogleRequestParam("data_source", request => request.DataSource); - Modify_ApiCall(ref _callFinalizeBackup); - Modify_FinalizeBackupApiCall(ref _callFinalizeBackup); - _callFetchAccessToken = clientHelper.BuildApiCall("FetchAccessToken", grpcClient.FetchAccessTokenAsync, grpcClient.FetchAccessToken, effectiveSettings.FetchAccessTokenSettings).WithGoogleRequestParam("name", request => request.Name); - Modify_ApiCall(ref _callFetchAccessToken); - Modify_FetchAccessTokenApiCall(ref _callFetchAccessToken); _callListBackups = clientHelper.BuildApiCall("ListBackups", grpcClient.ListBackupsAsync, grpcClient.ListBackups, effectiveSettings.ListBackupsSettings).WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callListBackups); Modify_ListBackupsApiCall(ref _callListBackups); @@ -6298,26 +5071,12 @@ public BackupDRClientImpl(BackupDR.BackupDRClient grpcClient, BackupDRSettings s partial void Modify_DeleteBackupVaultApiCall(ref gaxgrpc::ApiCall call); - partial void Modify_TestIamPermissionsApiCall(ref gaxgrpc::ApiCall call); - partial void Modify_ListDataSourcesApiCall(ref gaxgrpc::ApiCall call); partial void Modify_GetDataSourceApiCall(ref gaxgrpc::ApiCall call); partial void Modify_UpdateDataSourceApiCall(ref gaxgrpc::ApiCall call); - partial void Modify_RemoveDataSourceApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_SetInternalStatusApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_InitiateBackupApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_AbandonBackupApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_FinalizeBackupApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_FetchAccessTokenApiCall(ref gaxgrpc::ApiCall call); - partial void Modify_ListBackupsApiCall(ref gaxgrpc::ApiCall call); partial void Modify_GetBackupApiCall(ref gaxgrpc::ApiCall call); @@ -6377,26 +5136,12 @@ public BackupDRClientImpl(BackupDR.BackupDRClient grpcClient, BackupDRSettings s partial void Modify_DeleteBackupVaultRequest(ref DeleteBackupVaultRequest request, ref gaxgrpc::CallSettings settings); - partial void Modify_TestIamPermissionsRequest(ref gciv::TestIamPermissionsRequest request, ref gaxgrpc::CallSettings settings); - partial void Modify_ListDataSourcesRequest(ref ListDataSourcesRequest request, ref gaxgrpc::CallSettings settings); partial void Modify_GetDataSourceRequest(ref GetDataSourceRequest request, ref gaxgrpc::CallSettings settings); partial void Modify_UpdateDataSourceRequest(ref UpdateDataSourceRequest request, ref gaxgrpc::CallSettings settings); - partial void Modify_RemoveDataSourceRequest(ref RemoveDataSourceRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_SetInternalStatusRequest(ref SetInternalStatusRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_InitiateBackupRequest(ref InitiateBackupRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_AbandonBackupRequest(ref AbandonBackupRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_FinalizeBackupRequest(ref FinalizeBackupRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_FetchAccessTokenRequest(ref FetchAccessTokenRequest request, ref gaxgrpc::CallSettings settings); - partial void Modify_ListBackupsRequest(ref ListBackupsRequest request, ref gaxgrpc::CallSettings settings); partial void Modify_GetBackupRequest(ref GetBackupRequest request, ref gaxgrpc::CallSettings settings); @@ -6684,36 +5429,6 @@ public override BackupVault GetBackupVault(GetBackupVaultRequest request, gaxgrp return new lro::Operation(await _callDeleteBackupVault.Async(request, callSettings).ConfigureAwait(false), DeleteBackupVaultOperationsClient); } - /// - /// 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 override gciv::TestIamPermissionsResponse TestIamPermissions(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_TestIamPermissionsRequest(ref request, ref callSettings); - return _callTestIamPermissions.Sync(request, callSettings); - } - - /// - /// 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 override stt::Task TestIamPermissionsAsync(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_TestIamPermissionsRequest(ref request, ref callSettings); - return _callTestIamPermissions.Async(request, callSettings); - } - /// /// Lists DataSources in a given project and location. /// @@ -6789,174 +5504,6 @@ public override DataSource GetDataSource(GetDataSourceRequest request, gaxgrpc:: return new lro::Operation(await _callUpdateDataSource.Async(request, callSettings).ConfigureAwait(false), UpdateDataSourceOperationsClient); } - /// The long-running operations client for RemoveDataSource. - public override lro::OperationsClient RemoveDataSourceOperationsClient { get; } - - /// - /// 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 override lro::Operation RemoveDataSource(RemoveDataSourceRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_RemoveDataSourceRequest(ref request, ref callSettings); - return new lro::Operation(_callRemoveDataSource.Sync(request, callSettings), RemoveDataSourceOperationsClient); - } - - /// - /// 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 override async stt::Task> RemoveDataSourceAsync(RemoveDataSourceRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_RemoveDataSourceRequest(ref request, ref callSettings); - return new lro::Operation(await _callRemoveDataSource.Async(request, callSettings).ConfigureAwait(false), RemoveDataSourceOperationsClient); - } - - /// The long-running operations client for SetInternalStatus. - public override lro::OperationsClient SetInternalStatusOperationsClient { get; } - - /// - /// 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 override lro::Operation SetInternalStatus(SetInternalStatusRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SetInternalStatusRequest(ref request, ref callSettings); - return new lro::Operation(_callSetInternalStatus.Sync(request, callSettings), SetInternalStatusOperationsClient); - } - - /// - /// 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 override async stt::Task> SetInternalStatusAsync(SetInternalStatusRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SetInternalStatusRequest(ref request, ref callSettings); - return new lro::Operation(await _callSetInternalStatus.Async(request, callSettings).ConfigureAwait(false), SetInternalStatusOperationsClient); - } - - /// - /// 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 override InitiateBackupResponse InitiateBackup(InitiateBackupRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_InitiateBackupRequest(ref request, ref callSettings); - return _callInitiateBackup.Sync(request, callSettings); - } - - /// - /// 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 override stt::Task InitiateBackupAsync(InitiateBackupRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_InitiateBackupRequest(ref request, ref callSettings); - return _callInitiateBackup.Async(request, callSettings); - } - - /// The long-running operations client for AbandonBackup. - public override lro::OperationsClient AbandonBackupOperationsClient { get; } - - /// - /// 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 override lro::Operation AbandonBackup(AbandonBackupRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_AbandonBackupRequest(ref request, ref callSettings); - return new lro::Operation(_callAbandonBackup.Sync(request, callSettings), AbandonBackupOperationsClient); - } - - /// - /// 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 override async stt::Task> AbandonBackupAsync(AbandonBackupRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_AbandonBackupRequest(ref request, ref callSettings); - return new lro::Operation(await _callAbandonBackup.Async(request, callSettings).ConfigureAwait(false), AbandonBackupOperationsClient); - } - - /// The long-running operations client for FinalizeBackup. - public override lro::OperationsClient FinalizeBackupOperationsClient { get; } - - /// - /// 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 override lro::Operation FinalizeBackup(FinalizeBackupRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_FinalizeBackupRequest(ref request, ref callSettings); - return new lro::Operation(_callFinalizeBackup.Sync(request, callSettings), FinalizeBackupOperationsClient); - } - - /// - /// 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 override async stt::Task> FinalizeBackupAsync(FinalizeBackupRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_FinalizeBackupRequest(ref request, ref callSettings); - return new lro::Operation(await _callFinalizeBackup.Async(request, callSettings).ConfigureAwait(false), FinalizeBackupOperationsClient); - } - - /// - /// Internal only. - /// Fetch access token for a given data source. - /// - /// 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 override FetchAccessTokenResponse FetchAccessToken(FetchAccessTokenRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_FetchAccessTokenRequest(ref request, ref callSettings); - return _callFetchAccessToken.Sync(request, callSettings); - } - - /// - /// Internal only. - /// Fetch access token for a given data source. - /// - /// 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 override stt::Task FetchAccessTokenAsync(FetchAccessTokenRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_FetchAccessTokenRequest(ref request, ref callSettings); - return _callFetchAccessToken.Async(request, callSettings); - } - /// /// Lists Backups in a given project and location. /// diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/Backupdr.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/Backupdr.g.cs index ca126f4b2034..49015e25d89b 100644 --- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/Backupdr.g.cs +++ b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/Backupdr.g.cs @@ -31,259 +31,221 @@ static BackupdrReflection() { "cm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxopZ29vZ2xlL2Nsb3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", + "bmFtZYLT5JMCMiowL3YxL3tuYW1lPXByb2plY3RzLyovbG9jYXRpb25zLyov", + "YmFja3VwVmF1bHRzLyp9EscBCg9MaXN0RGF0YVNvdXJjZXMSMC5nb29nbGUu", + "Y2xvdWQuYmFja3VwZHIudjEuTGlzdERhdGFTb3VyY2VzUmVxdWVzdBoxLmdv", + "b2dsZS5jbG91ZC5iYWNrdXBkci52MS5MaXN0RGF0YVNvdXJjZXNSZXNwb25z", + "ZSJP2kEGcGFyZW50gtPkkwJAEj4vdjEve3BhcmVudD1wcm9qZWN0cy8qL2xv", + "Y2F0aW9ucy8qL2JhY2t1cFZhdWx0cy8qfS9kYXRhU291cmNlcxK0AQoNR2V0", + "RGF0YVNvdXJjZRIuLmdvb2dsZS5jbG91ZC5iYWNrdXBkci52MS5HZXREYXRh", + "U291cmNlUmVxdWVzdBokLmdvb2dsZS5jbG91ZC5iYWNrdXBkci52MS5EYXRh", + "U291cmNlIk3aQQRuYW1lgtPkkwJAEj4vdjEve25hbWU9cHJvamVjdHMvKi9s", + "b2NhdGlvbnMvKi9iYWNrdXBWYXVsdHMvKi9kYXRhU291cmNlcy8qfRKCAgoQ", + "VXBkYXRlRGF0YVNvdXJjZRIxLmdvb2dsZS5jbG91ZC5iYWNrdXBkci52MS5V", + "cGRhdGVEYXRhU291cmNlUmVxdWVzdBodLmdvb2dsZS5sb25ncnVubmluZy5P", + "cGVyYXRpb24imwHKQR8KCkRhdGFTb3VyY2USEU9wZXJhdGlvbk1ldGFkYXRh", + "2kEXZGF0YV9zb3VyY2UsdXBkYXRlX21hc2uC0+STAlkySi92MS97ZGF0YV9z", + "b3VyY2UubmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL2JhY2t1cFZhdWx0", + "cy8qL2RhdGFTb3VyY2VzLyp9OgtkYXRhX3NvdXJjZRLFAQoLTGlzdEJhY2t1", + "cHMSLC5nb29nbGUuY2xvdWQuYmFja3VwZHIudjEuTGlzdEJhY2t1cHNSZXF1", + "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S8AEKDVRyaWdnZXJCYWNrdXASLi5nb29nbGUuY2xvdWQu", + "YmFja3VwZHIudjEuVHJpZ2dlckJhY2t1cFJlcXVlc3QaHS5nb29nbGUubG9u", + "Z3J1bm5pbmcuT3BlcmF0aW9uIo8BykEqChVCYWNrdXBQbGFuQXNzb2NpYXRp", + "b24SEU9wZXJhdGlvbk1ldGFkYXRh2kEMbmFtZSxydWxlX2lkgtPkkwJNIkgv", + "djEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9iYWNrdXBQbGFuQXNz", + "b2NpYXRpb25zLyp9OnRyaWdnZXJCYWNrdXA6ASoaS8pBF2JhY2t1cGRyLmdv", + "b2dsZWFwaXMuY29t0kEuaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0", + "aC9jbG91ZC1wbGF0Zm9ybUK9AQocY29tLmdvb2dsZS5jbG91ZC5iYWNrdXBk", + "ci52MUINQmFja3VwRFJQcm90b1ABWjhjbG91ZC5nb29nbGUuY29tL2dvL2Jh", + "Y2t1cGRyL2FwaXYxL2JhY2t1cGRycGI7YmFja3VwZHJwYqoCGEdvb2dsZS5D", + "bG91ZC5CYWNrdXBEUi5WMcoCGEdvb2dsZVxDbG91ZFxCYWNrdXBEUlxWMeoC", + "G0dvb2dsZTo6Q2xvdWQ6OkJhY2t1cERSOjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.FieldInfoReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.BackupDR.V1.BackupplanReflection.Descriptor, global::Google.Cloud.BackupDR.V1.BackupplanassociationReflection.Descriptor, global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor, global::Google.Cloud.Iam.V1.IamPolicyReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.FieldInfoReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.BackupDR.V1.BackupplanReflection.Descriptor, global::Google.Cloud.BackupDR.V1.BackupplanassociationReflection.Descriptor, global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.NetworkConfig), global::Google.Cloud.BackupDR.V1.NetworkConfig.Parser, new[]{ "Network", "PeeringMode" }, null, new[]{ typeof(global::Google.Cloud.BackupDR.V1.NetworkConfig.Types.PeeringMode) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.ManagementURI), global::Google.Cloud.BackupDR.V1.ManagementURI.Parser, new[]{ "WebUi", "Api" }, null, null, null, null), diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/BackupdrGrpc.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/BackupdrGrpc.g.cs index a9be59ffe27a..d5ca8bd38a05 100644 --- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/BackupdrGrpc.g.cs +++ b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/BackupdrGrpc.g.cs @@ -96,10 +96,6 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_DeleteBackupVaultRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.DeleteBackupVaultRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_iam_v1_TestIamPermissionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.TestIamPermissionsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_iam_v1_TestIamPermissionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.TestIamPermissionsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_ListDataSourcesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.ListDataSourcesRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_ListDataSourcesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.ListDataSourcesResponse.Parser)); @@ -110,22 +106,6 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_UpdateDataSourceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.UpdateDataSourceRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_RemoveDataSourceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.RemoveDataSourceRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_SetInternalStatusRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.SetInternalStatusRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_InitiateBackupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.InitiateBackupRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_InitiateBackupResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.InitiateBackupResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_AbandonBackupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.AbandonBackupRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_FinalizeBackupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.FinalizeBackupRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_FetchAccessTokenRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.FetchAccessTokenRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_FetchAccessTokenResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.FetchAccessTokenResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_ListBackupsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.ListBackupsRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_google_cloud_backupdr_v1_ListBackupsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.BackupDR.V1.ListBackupsResponse.Parser)); @@ -246,14 +226,6 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __Marshaller_google_cloud_backupdr_v1_DeleteBackupVaultRequest, __Marshaller_google_longrunning_Operation); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_TestIamPermissions = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "TestIamPermissions", - __Marshaller_google_iam_v1_TestIamPermissionsRequest, - __Marshaller_google_iam_v1_TestIamPermissionsResponse); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_ListDataSources = new grpc::Method( grpc::MethodType.Unary, @@ -278,54 +250,6 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __Marshaller_google_cloud_backupdr_v1_UpdateDataSourceRequest, __Marshaller_google_longrunning_Operation); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_RemoveDataSource = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "RemoveDataSource", - __Marshaller_google_cloud_backupdr_v1_RemoveDataSourceRequest, - __Marshaller_google_longrunning_Operation); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_SetInternalStatus = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "SetInternalStatus", - __Marshaller_google_cloud_backupdr_v1_SetInternalStatusRequest, - __Marshaller_google_longrunning_Operation); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_InitiateBackup = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "InitiateBackup", - __Marshaller_google_cloud_backupdr_v1_InitiateBackupRequest, - __Marshaller_google_cloud_backupdr_v1_InitiateBackupResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_AbandonBackup = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "AbandonBackup", - __Marshaller_google_cloud_backupdr_v1_AbandonBackupRequest, - __Marshaller_google_longrunning_Operation); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_FinalizeBackup = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "FinalizeBackup", - __Marshaller_google_cloud_backupdr_v1_FinalizeBackupRequest, - __Marshaller_google_longrunning_Operation); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_FetchAccessToken = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "FetchAccessToken", - __Marshaller_google_cloud_backupdr_v1_FetchAccessTokenRequest, - __Marshaller_google_cloud_backupdr_v1_FetchAccessTokenResponse); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_ListBackups = new grpc::Method( grpc::MethodType.Unary, @@ -570,21 +494,6 @@ public abstract partial class BackupDRBase throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } - /// - /// 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 received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task TestIamPermissions(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - /// /// Lists DataSources in a given project and location. /// @@ -621,84 +530,6 @@ public abstract partial class BackupDRBase throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } - /// - /// 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 received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task RemoveDataSource(global::Google.Cloud.BackupDR.V1.RemoveDataSourceRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Sets the internal status of a DataSource. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task SetInternalStatus(global::Google.Cloud.BackupDR.V1.SetInternalStatusRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Internal only. - /// Initiates a backup. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task InitiateBackup(global::Google.Cloud.BackupDR.V1.InitiateBackupRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Internal only. - /// Abandons a backup. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task AbandonBackup(global::Google.Cloud.BackupDR.V1.AbandonBackupRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Internal only. - /// Finalize a backup that was started by a call to InitiateBackup. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task FinalizeBackup(global::Google.Cloud.BackupDR.V1.FinalizeBackupRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Internal only. - /// Fetch access token for a given data source. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task FetchAccessToken(global::Google.Cloud.BackupDR.V1.FetchAccessTokenRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - /// /// Lists Backups in a given project and location. /// @@ -1385,66 +1216,6 @@ protected BackupDRClient(ClientBaseConfiguration configuration) : base(configura return CallInvoker.AsyncUnaryCall(__Method_DeleteBackupVault, null, options, request); } /// - /// 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 to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Cloud.Iam.V1.TestIamPermissionsResponse TestIamPermissions(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return TestIamPermissions(request, new grpc::CallOptions(headers, deadline, 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 to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Cloud.Iam.V1.TestIamPermissionsResponse TestIamPermissions(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_TestIamPermissions, null, options, request); - } - /// - /// 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 to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall TestIamPermissionsAsync(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return TestIamPermissionsAsync(request, new grpc::CallOptions(headers, deadline, 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 to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall TestIamPermissionsAsync(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_TestIamPermissions, null, options, request); - } - /// /// Lists DataSources in a given project and location. /// /// The request to send to the server. @@ -1589,318 +1360,6 @@ protected BackupDRClient(ClientBaseConfiguration configuration) : base(configura return CallInvoker.AsyncUnaryCall(__Method_UpdateDataSource, null, options, request); } /// - /// 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 to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation RemoveDataSource(global::Google.Cloud.BackupDR.V1.RemoveDataSourceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RemoveDataSource(request, new grpc::CallOptions(headers, deadline, 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 to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation RemoveDataSource(global::Google.Cloud.BackupDR.V1.RemoveDataSourceRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_RemoveDataSource, null, options, request); - } - /// - /// 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 to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RemoveDataSourceAsync(global::Google.Cloud.BackupDR.V1.RemoveDataSourceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RemoveDataSourceAsync(request, new grpc::CallOptions(headers, deadline, 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 to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RemoveDataSourceAsync(global::Google.Cloud.BackupDR.V1.RemoveDataSourceRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_RemoveDataSource, null, options, request); - } - /// - /// Sets the internal status of a DataSource. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation SetInternalStatus(global::Google.Cloud.BackupDR.V1.SetInternalStatusRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SetInternalStatus(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Sets the internal status of a DataSource. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation SetInternalStatus(global::Google.Cloud.BackupDR.V1.SetInternalStatusRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_SetInternalStatus, null, options, request); - } - /// - /// Sets the internal status of a DataSource. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SetInternalStatusAsync(global::Google.Cloud.BackupDR.V1.SetInternalStatusRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SetInternalStatusAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Sets the internal status of a DataSource. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SetInternalStatusAsync(global::Google.Cloud.BackupDR.V1.SetInternalStatusRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_SetInternalStatus, null, options, request); - } - /// - /// Internal only. - /// Initiates a backup. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Cloud.BackupDR.V1.InitiateBackupResponse InitiateBackup(global::Google.Cloud.BackupDR.V1.InitiateBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return InitiateBackup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Internal only. - /// Initiates a backup. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Cloud.BackupDR.V1.InitiateBackupResponse InitiateBackup(global::Google.Cloud.BackupDR.V1.InitiateBackupRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_InitiateBackup, null, options, request); - } - /// - /// Internal only. - /// Initiates a backup. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall InitiateBackupAsync(global::Google.Cloud.BackupDR.V1.InitiateBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return InitiateBackupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Internal only. - /// Initiates a backup. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall InitiateBackupAsync(global::Google.Cloud.BackupDR.V1.InitiateBackupRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_InitiateBackup, null, options, request); - } - /// - /// Internal only. - /// Abandons a backup. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation AbandonBackup(global::Google.Cloud.BackupDR.V1.AbandonBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return AbandonBackup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Internal only. - /// Abandons a backup. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation AbandonBackup(global::Google.Cloud.BackupDR.V1.AbandonBackupRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_AbandonBackup, null, options, request); - } - /// - /// Internal only. - /// Abandons a backup. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AbandonBackupAsync(global::Google.Cloud.BackupDR.V1.AbandonBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return AbandonBackupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Internal only. - /// Abandons a backup. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AbandonBackupAsync(global::Google.Cloud.BackupDR.V1.AbandonBackupRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_AbandonBackup, null, options, request); - } - /// - /// Internal only. - /// Finalize a backup that was started by a call to InitiateBackup. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation FinalizeBackup(global::Google.Cloud.BackupDR.V1.FinalizeBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FinalizeBackup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Internal only. - /// Finalize a backup that was started by a call to InitiateBackup. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation FinalizeBackup(global::Google.Cloud.BackupDR.V1.FinalizeBackupRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_FinalizeBackup, null, options, request); - } - /// - /// Internal only. - /// Finalize a backup that was started by a call to InitiateBackup. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FinalizeBackupAsync(global::Google.Cloud.BackupDR.V1.FinalizeBackupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FinalizeBackupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Internal only. - /// Finalize a backup that was started by a call to InitiateBackup. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FinalizeBackupAsync(global::Google.Cloud.BackupDR.V1.FinalizeBackupRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_FinalizeBackup, null, options, request); - } - /// - /// Internal only. - /// Fetch access token for a given data source. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Cloud.BackupDR.V1.FetchAccessTokenResponse FetchAccessToken(global::Google.Cloud.BackupDR.V1.FetchAccessTokenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FetchAccessToken(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Internal only. - /// Fetch access token for a given data source. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Cloud.BackupDR.V1.FetchAccessTokenResponse FetchAccessToken(global::Google.Cloud.BackupDR.V1.FetchAccessTokenRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_FetchAccessToken, null, options, request); - } - /// - /// Internal only. - /// Fetch access token for a given data source. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FetchAccessTokenAsync(global::Google.Cloud.BackupDR.V1.FetchAccessTokenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return FetchAccessTokenAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Internal only. - /// Fetch access token for a given data source. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall FetchAccessTokenAsync(global::Google.Cloud.BackupDR.V1.FetchAccessTokenRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_FetchAccessToken, null, options, request); - } - /// /// Lists Backups in a given project and location. /// /// The request to send to the server. @@ -2596,16 +2055,9 @@ protected override BackupDRClient NewInstance(ClientBaseConfiguration configurat .AddMethod(__Method_GetBackupVault, serviceImpl.GetBackupVault) .AddMethod(__Method_UpdateBackupVault, serviceImpl.UpdateBackupVault) .AddMethod(__Method_DeleteBackupVault, serviceImpl.DeleteBackupVault) - .AddMethod(__Method_TestIamPermissions, serviceImpl.TestIamPermissions) .AddMethod(__Method_ListDataSources, serviceImpl.ListDataSources) .AddMethod(__Method_GetDataSource, serviceImpl.GetDataSource) .AddMethod(__Method_UpdateDataSource, serviceImpl.UpdateDataSource) - .AddMethod(__Method_RemoveDataSource, serviceImpl.RemoveDataSource) - .AddMethod(__Method_SetInternalStatus, serviceImpl.SetInternalStatus) - .AddMethod(__Method_InitiateBackup, serviceImpl.InitiateBackup) - .AddMethod(__Method_AbandonBackup, serviceImpl.AbandonBackup) - .AddMethod(__Method_FinalizeBackup, serviceImpl.FinalizeBackup) - .AddMethod(__Method_FetchAccessToken, serviceImpl.FetchAccessToken) .AddMethod(__Method_ListBackups, serviceImpl.ListBackups) .AddMethod(__Method_GetBackup, serviceImpl.GetBackup) .AddMethod(__Method_UpdateBackup, serviceImpl.UpdateBackup) @@ -2639,16 +2091,9 @@ public static void BindService(grpc::ServiceBinderBase serviceBinder, BackupDRBa serviceBinder.AddMethod(__Method_GetBackupVault, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetBackupVault)); serviceBinder.AddMethod(__Method_UpdateBackupVault, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateBackupVault)); serviceBinder.AddMethod(__Method_DeleteBackupVault, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteBackupVault)); - serviceBinder.AddMethod(__Method_TestIamPermissions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.TestIamPermissions)); serviceBinder.AddMethod(__Method_ListDataSources, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListDataSources)); serviceBinder.AddMethod(__Method_GetDataSource, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetDataSource)); serviceBinder.AddMethod(__Method_UpdateDataSource, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateDataSource)); - serviceBinder.AddMethod(__Method_RemoveDataSource, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.RemoveDataSource)); - serviceBinder.AddMethod(__Method_SetInternalStatus, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SetInternalStatus)); - serviceBinder.AddMethod(__Method_InitiateBackup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.InitiateBackup)); - serviceBinder.AddMethod(__Method_AbandonBackup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AbandonBackup)); - serviceBinder.AddMethod(__Method_FinalizeBackup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FinalizeBackup)); - serviceBinder.AddMethod(__Method_FetchAccessToken, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FetchAccessToken)); serviceBinder.AddMethod(__Method_ListBackups, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListBackups)); serviceBinder.AddMethod(__Method_GetBackup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetBackup)); serviceBinder.AddMethod(__Method_UpdateBackup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateBackup)); diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/Backupvault.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/Backupvault.g.cs index 7675071431ec..6eda9ea6a1ab 100644 --- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/Backupvault.g.cs +++ b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/Backupvault.g.cs @@ -216,83 +216,49 @@ static BackupvaultReflection() { "b29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQISPgoLZGF0YV9zb3VyY2UY", "AiABKAsyJC5nb29nbGUuY2xvdWQuYmFja3VwZHIudjEuRGF0YVNvdXJjZUID", "4EECEh8KCnJlcXVlc3RfaWQYAyABKAlCC+BBAeKMz9cIAggBEhoKDWFsbG93", - "X21pc3NpbmcYBCABKAhCA+BBASJ0ChdSZW1vdmVEYXRhU291cmNlUmVxdWVz", - "dBI4CgRuYW1lGAEgASgJQirgQQL6QSQKImJhY2t1cGRyLmdvb2dsZWFwaXMu", - "Y29tL0RhdGFTb3VyY2USHwoKcmVxdWVzdF9pZBgCIAEoCUIL4EEB4ozP1wgC", - "CAEi4gEKGFNldEludGVybmFsU3RhdHVzUmVxdWVzdBI/CgtkYXRhX3NvdXJj", - "ZRgBIAEoCUIq4EEC+kEkCiJiYWNrdXBkci5nb29nbGVhcGlzLmNvbS9EYXRh", - "U291cmNlEhIKBXZhbHVlGAIgASgMQgPgQQISUAoTYmFja3VwX2NvbmZpZ19z", - "dGF0ZRgDIAEoDjIrLmdvb2dsZS5jbG91ZC5iYWNrdXBkci52MS5CYWNrdXBD", - "b25maWdTdGF0ZUIG4EEC4EEDEh8KCnJlcXVlc3RfaWQYBCABKAlCC+BBAeKM", - "z9cIAggBIhsKGVNldEludGVybmFsU3RhdHVzUmVzcG9uc2UikQEKFUluaXRp", - "YXRlQmFja3VwUmVxdWVzdBI/CgtkYXRhX3NvdXJjZRgBIAEoCUIq4EEC+kEk", - "CiJiYWNrdXBkci5nb29nbGVhcGlzLmNvbS9EYXRhU291cmNlEh8KCnJlcXVl", - "c3RfaWQYAiABKAlCC+BBAeKMz9cIAggBEhYKCWJhY2t1cF9pZBgFIAEoCUID", - "4EECIm0KFkluaXRpYXRlQmFja3VwUmVzcG9uc2USDgoGYmFja3VwGAEgASgJ", - "EiAKGG5ld19iYWNrdXBfZ2VuZXJhdGlvbl9pZBgCIAEoBRIhChliYXNlX2Jh", - "Y2t1cF9nZW5lcmF0aW9uX2lkGAMgASgFIngKFEFiYW5kb25CYWNrdXBSZXF1", - "ZXN0Ej8KC2RhdGFfc291cmNlGAEgASgJQirgQ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xL2JhY2t1cGRycGI7", + "YmFja3VwZHJwYqoCGEdvb2dsZS5DbG91ZC5CYWNrdXBEUi5WMcoCGEdvb2ds", + "ZVxDbG91ZFxCYWNrdXBEUlxWMeoCG0dvb2dsZTo6Q2xvdWQ6OkJhY2t1cERS", + "OjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.FieldInfoReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.BackupDR.V1.BackupvaultBaReflection.Descriptor, global::Google.Cloud.BackupDR.V1.BackupvaultGceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.BackupDR.V1.BackupConfigState), typeof(global::Google.Cloud.BackupDR.V1.BackupView), typeof(global::Google.Cloud.BackupDR.V1.BackupVaultView), }, null, new pbr::GeneratedClrTypeInfo[] { @@ -320,15 +286,6 @@ static BackupvaultReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.ListDataSourcesResponse), global::Google.Cloud.BackupDR.V1.ListDataSourcesResponse.Parser, new[]{ "DataSources", "NextPageToken", "Unreachable" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.GetDataSourceRequest), global::Google.Cloud.BackupDR.V1.GetDataSourceRequest.Parser, new[]{ "Name" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.UpdateDataSourceRequest), global::Google.Cloud.BackupDR.V1.UpdateDataSourceRequest.Parser, new[]{ "UpdateMask", "DataSource", "RequestId", "AllowMissing" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.RemoveDataSourceRequest), global::Google.Cloud.BackupDR.V1.RemoveDataSourceRequest.Parser, new[]{ "Name", "RequestId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.SetInternalStatusRequest), global::Google.Cloud.BackupDR.V1.SetInternalStatusRequest.Parser, new[]{ "DataSource", "Value", "BackupConfigState", "RequestId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.SetInternalStatusResponse), global::Google.Cloud.BackupDR.V1.SetInternalStatusResponse.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.InitiateBackupRequest), global::Google.Cloud.BackupDR.V1.InitiateBackupRequest.Parser, new[]{ "DataSource", "RequestId", "BackupId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.InitiateBackupResponse), global::Google.Cloud.BackupDR.V1.InitiateBackupResponse.Parser, new[]{ "Backup", "NewBackupGenerationId", "BaseBackupGenerationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.AbandonBackupRequest), global::Google.Cloud.BackupDR.V1.AbandonBackupRequest.Parser, new[]{ "DataSource", "RequestId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.FinalizeBackupRequest), global::Google.Cloud.BackupDR.V1.FinalizeBackupRequest.Parser, new[]{ "DataSource", "Description", "ConsistencyTime", "RequestId", "BackupId", "RecoveryRangeStartTime", "RecoveryRangeEndTime", "RetentionDuration" }, new[]{ "Description", "ConsistencyTime", "RecoveryRangeStartTime", "RecoveryRangeEndTime", "RetentionDuration" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.FetchAccessTokenRequest), global::Google.Cloud.BackupDR.V1.FetchAccessTokenRequest.Parser, new[]{ "Name", "GenerationId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.FetchAccessTokenResponse), global::Google.Cloud.BackupDR.V1.FetchAccessTokenResponse.Parser, new[]{ "ReadLocation", "WriteLocation", "Token", "ExpireTime" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.ListBackupsRequest), global::Google.Cloud.BackupDR.V1.ListBackupsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "View" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.ListBackupsResponse), global::Google.Cloud.BackupDR.V1.ListBackupsResponse.Parser, new[]{ "Backups", "NextPageToken", "Unreachable" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.BackupDR.V1.GetBackupRequest), global::Google.Cloud.BackupDR.V1.GetBackupRequest.Parser, new[]{ "Name", "View" }, null, null, null, null), @@ -10336,2662 +10293,6 @@ public void MergeFrom(pb::CodedInputStream input) { } - /// - /// Message for deleting a DataSource. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class RemoveDataSourceRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveDataSourceRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[23]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveDataSourceRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveDataSourceRequest(RemoveDataSourceRequest other) : this() { - name_ = other.name_; - requestId_ = other.requestId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemoveDataSourceRequest Clone() { - return new RemoveDataSourceRequest(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// Required. Name of the resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "request_id" field. - public const int RequestIdFieldNumber = 2; - private string requestId_ = ""; - /// - /// Optional. An optional request ID to identify requests. Specify a unique - /// request ID so that if you must retry your request, the server will know to - /// ignore the request if it has already been completed. The server will - /// guarantee that for at least 60 minutes after the first request. - /// - /// For example, consider a situation where you make an initial request and - /// the request times out. If you make the request again with the same request - /// ID, the server can check if original operation with the same request ID - /// was received, and if so, will ignore the second request. This prevents - /// clients from accidentally creating duplicate commitments. - /// - /// The request ID must be a valid UUID with the exception that zero UUID is - /// not supported (00000000-0000-0000-0000-000000000000). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RequestId { - get { return requestId_; } - set { - requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RemoveDataSourceRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RemoveDataSourceRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (RequestId != other.RequestId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (RequestId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RequestId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (RequestId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RequestId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (RequestId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RemoveDataSourceRequest other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.RequestId.Length != 0) { - RequestId = other.RequestId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - RequestId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - RequestId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for SetStatusInternal method. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetInternalStatusRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetInternalStatusRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[24]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SetInternalStatusRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SetInternalStatusRequest(SetInternalStatusRequest other) : this() { - dataSource_ = other.dataSource_; - value_ = other.value_; - backupConfigState_ = other.backupConfigState_; - requestId_ = other.requestId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SetInternalStatusRequest Clone() { - return new SetInternalStatusRequest(this); - } - - /// Field number for the "data_source" field. - public const int DataSourceFieldNumber = 1; - private string dataSource_ = ""; - /// - /// Required. The resource name of the instance, in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources/'. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DataSource { - get { return dataSource_; } - set { - dataSource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private pb::ByteString value_ = pb::ByteString.Empty; - /// - /// Required. The value required for this method to work. This field must be - /// the 32-byte SHA256 hash of the DataSourceID. The DataSourceID used here is - /// only the final piece of the fully qualified resource path for this - /// DataSource (i.e. the part after '.../dataSources/'). This field exists to - /// make this method difficult to call since it is intended for use only by - /// Backup Appliances. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Value { - get { return value_; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "backup_config_state" field. - public const int BackupConfigStateFieldNumber = 3; - private global::Google.Cloud.BackupDR.V1.BackupConfigState backupConfigState_ = global::Google.Cloud.BackupDR.V1.BackupConfigState.Unspecified; - /// - /// Required. Output only. The new BackupConfigState to set for the DataSource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Cloud.BackupDR.V1.BackupConfigState BackupConfigState { - get { return backupConfigState_; } - set { - backupConfigState_ = value; - } - } - - /// Field number for the "request_id" field. - public const int RequestIdFieldNumber = 4; - private string requestId_ = ""; - /// - /// Optional. An optional request ID to identify requests. Specify a unique - /// request ID so that if you must retry your request, the server will know to - /// ignore the request if it has already been completed. The server will - /// guarantee that for at least 60 minutes after the first request. The request - /// ID must be a valid UUID with the exception that zero UUID is not supported - /// (00000000-0000-0000-0000-000000000000). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RequestId { - get { return requestId_; } - set { - requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SetInternalStatusRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetInternalStatusRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DataSource != other.DataSource) return false; - if (Value != other.Value) return false; - if (BackupConfigState != other.BackupConfigState) return false; - if (RequestId != other.RequestId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DataSource.Length != 0) hash ^= DataSource.GetHashCode(); - if (Value.Length != 0) hash ^= Value.GetHashCode(); - if (BackupConfigState != global::Google.Cloud.BackupDR.V1.BackupConfigState.Unspecified) hash ^= BackupConfigState.GetHashCode(); - if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DataSource.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DataSource); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(Value); - } - if (BackupConfigState != global::Google.Cloud.BackupDR.V1.BackupConfigState.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) BackupConfigState); - } - if (RequestId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(RequestId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DataSource.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DataSource); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(Value); - } - if (BackupConfigState != global::Google.Cloud.BackupDR.V1.BackupConfigState.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) BackupConfigState); - } - if (RequestId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(RequestId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DataSource.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DataSource); - } - if (Value.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Value); - } - if (BackupConfigState != global::Google.Cloud.BackupDR.V1.BackupConfigState.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BackupConfigState); - } - if (RequestId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetInternalStatusRequest other) { - if (other == null) { - return; - } - if (other.DataSource.Length != 0) { - DataSource = other.DataSource; - } - if (other.Value.Length != 0) { - Value = other.Value; - } - if (other.BackupConfigState != global::Google.Cloud.BackupDR.V1.BackupConfigState.Unspecified) { - BackupConfigState = other.BackupConfigState; - } - if (other.RequestId.Length != 0) { - RequestId = other.RequestId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DataSource = input.ReadString(); - break; - } - case 18: { - Value = input.ReadBytes(); - break; - } - case 24: { - BackupConfigState = (global::Google.Cloud.BackupDR.V1.BackupConfigState) input.ReadEnum(); - break; - } - case 34: { - RequestId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DataSource = input.ReadString(); - break; - } - case 18: { - Value = input.ReadBytes(); - break; - } - case 24: { - BackupConfigState = (global::Google.Cloud.BackupDR.V1.BackupConfigState) input.ReadEnum(); - break; - } - case 34: { - RequestId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message from SetStatusInternal method. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SetInternalStatusResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetInternalStatusResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[25]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SetInternalStatusResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SetInternalStatusResponse(SetInternalStatusResponse other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SetInternalStatusResponse Clone() { - return new SetInternalStatusResponse(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SetInternalStatusResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetInternalStatusResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetInternalStatusResponse other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - /// - /// request message for InitiateBackup. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class InitiateBackupRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InitiateBackupRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[26]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InitiateBackupRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InitiateBackupRequest(InitiateBackupRequest other) : this() { - dataSource_ = other.dataSource_; - requestId_ = other.requestId_; - backupId_ = other.backupId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InitiateBackupRequest Clone() { - return new InitiateBackupRequest(this); - } - - /// Field number for the "data_source" field. - public const int DataSourceFieldNumber = 1; - private string dataSource_ = ""; - /// - /// Required. The resource name of the instance, in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources/'. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DataSource { - get { return dataSource_; } - set { - dataSource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "request_id" field. - public const int RequestIdFieldNumber = 2; - private string requestId_ = ""; - /// - /// Optional. An optional request ID to identify requests. Specify a unique - /// request ID so that if you must retry your request, the server will know to - /// ignore the request if it has already been completed. The server will - /// guarantee that for at least 60 minutes since the first request. - /// - /// For example, consider a situation where you make an initial request and - /// the request times out. If you make the request again with the same request - /// ID, the server can check if original operation with the same request ID - /// was received, and if so, will ignore the second request. This prevents - /// clients from accidentally creating duplicate commitments. - /// - /// The request ID must be a valid UUID with the exception that zero UUID is - /// not supported (00000000-0000-0000-0000-000000000000). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RequestId { - get { return requestId_; } - set { - requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "backup_id" field. - public const int BackupIdFieldNumber = 5; - private string backupId_ = ""; - /// - /// Required. Resource ID of the Backup resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BackupId { - get { return backupId_; } - set { - backupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InitiateBackupRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InitiateBackupRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DataSource != other.DataSource) return false; - if (RequestId != other.RequestId) return false; - if (BackupId != other.BackupId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DataSource.Length != 0) hash ^= DataSource.GetHashCode(); - if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); - if (BackupId.Length != 0) hash ^= BackupId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DataSource.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DataSource); - } - if (RequestId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RequestId); - } - if (BackupId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(BackupId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DataSource.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DataSource); - } - if (RequestId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RequestId); - } - if (BackupId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(BackupId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DataSource.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DataSource); - } - if (RequestId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); - } - if (BackupId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BackupId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InitiateBackupRequest other) { - if (other == null) { - return; - } - if (other.DataSource.Length != 0) { - DataSource = other.DataSource; - } - if (other.RequestId.Length != 0) { - RequestId = other.RequestId; - } - if (other.BackupId.Length != 0) { - BackupId = other.BackupId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DataSource = input.ReadString(); - break; - } - case 18: { - RequestId = input.ReadString(); - break; - } - case 42: { - BackupId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DataSource = input.ReadString(); - break; - } - case 18: { - RequestId = input.ReadString(); - break; - } - case 42: { - BackupId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for InitiateBackup. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class InitiateBackupResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InitiateBackupResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[27]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InitiateBackupResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InitiateBackupResponse(InitiateBackupResponse other) : this() { - backup_ = other.backup_; - newBackupGenerationId_ = other.newBackupGenerationId_; - baseBackupGenerationId_ = other.baseBackupGenerationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InitiateBackupResponse Clone() { - return new InitiateBackupResponse(this); - } - - /// Field number for the "backup" field. - public const int BackupFieldNumber = 1; - private string backup_ = ""; - /// - /// The name of the backup that was created. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Backup { - get { return backup_; } - set { - backup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "new_backup_generation_id" field. - public const int NewBackupGenerationIdFieldNumber = 2; - private int newBackupGenerationId_; - /// - /// The generation id of the new backup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int NewBackupGenerationId { - get { return newBackupGenerationId_; } - set { - newBackupGenerationId_ = value; - } - } - - /// Field number for the "base_backup_generation_id" field. - public const int BaseBackupGenerationIdFieldNumber = 3; - private int baseBackupGenerationId_; - /// - /// The generation id of the base backup. It is needed for the incremental - /// backups. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int BaseBackupGenerationId { - get { return baseBackupGenerationId_; } - set { - baseBackupGenerationId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InitiateBackupResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InitiateBackupResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Backup != other.Backup) return false; - if (NewBackupGenerationId != other.NewBackupGenerationId) return false; - if (BaseBackupGenerationId != other.BaseBackupGenerationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Backup.Length != 0) hash ^= Backup.GetHashCode(); - if (NewBackupGenerationId != 0) hash ^= NewBackupGenerationId.GetHashCode(); - if (BaseBackupGenerationId != 0) hash ^= BaseBackupGenerationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Backup.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Backup); - } - if (NewBackupGenerationId != 0) { - output.WriteRawTag(16); - output.WriteInt32(NewBackupGenerationId); - } - if (BaseBackupGenerationId != 0) { - output.WriteRawTag(24); - output.WriteInt32(BaseBackupGenerationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Backup.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Backup); - } - if (NewBackupGenerationId != 0) { - output.WriteRawTag(16); - output.WriteInt32(NewBackupGenerationId); - } - if (BaseBackupGenerationId != 0) { - output.WriteRawTag(24); - output.WriteInt32(BaseBackupGenerationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Backup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Backup); - } - if (NewBackupGenerationId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(NewBackupGenerationId); - } - if (BaseBackupGenerationId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(BaseBackupGenerationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InitiateBackupResponse other) { - if (other == null) { - return; - } - if (other.Backup.Length != 0) { - Backup = other.Backup; - } - if (other.NewBackupGenerationId != 0) { - NewBackupGenerationId = other.NewBackupGenerationId; - } - if (other.BaseBackupGenerationId != 0) { - BaseBackupGenerationId = other.BaseBackupGenerationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Backup = input.ReadString(); - break; - } - case 16: { - NewBackupGenerationId = input.ReadInt32(); - break; - } - case 24: { - BaseBackupGenerationId = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Backup = input.ReadString(); - break; - } - case 16: { - NewBackupGenerationId = input.ReadInt32(); - break; - } - case 24: { - BaseBackupGenerationId = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// request message for AbandonBackup. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AbandonBackupRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AbandonBackupRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[28]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AbandonBackupRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AbandonBackupRequest(AbandonBackupRequest other) : this() { - dataSource_ = other.dataSource_; - requestId_ = other.requestId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AbandonBackupRequest Clone() { - return new AbandonBackupRequest(this); - } - - /// Field number for the "data_source" field. - public const int DataSourceFieldNumber = 1; - private string dataSource_ = ""; - /// - /// Required. The resource name of the instance, in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources/'. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DataSource { - get { return dataSource_; } - set { - dataSource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "request_id" field. - public const int RequestIdFieldNumber = 2; - private string requestId_ = ""; - /// - /// Optional. An optional request ID to identify requests. Specify a unique - /// request ID so that if you must retry your request, the server will know to - /// ignore the request if it has already been completed. The server will - /// guarantee that for at least 60 minutes since the first request. - /// - /// For example, consider a situation where you make an initial request and - /// the request times out. If you make the request again with the same request - /// ID, the server can check if original operation with the same request ID - /// was received, and if so, will ignore the second request. This prevents - /// clients from accidentally creating duplicate commitments. - /// - /// The request ID must be a valid UUID with the exception that zero UUID is - /// not supported (00000000-0000-0000-0000-000000000000). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RequestId { - get { return requestId_; } - set { - requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AbandonBackupRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AbandonBackupRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DataSource != other.DataSource) return false; - if (RequestId != other.RequestId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DataSource.Length != 0) hash ^= DataSource.GetHashCode(); - if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DataSource.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DataSource); - } - if (RequestId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RequestId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DataSource.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DataSource); - } - if (RequestId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RequestId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DataSource.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DataSource); - } - if (RequestId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AbandonBackupRequest other) { - if (other == null) { - return; - } - if (other.DataSource.Length != 0) { - DataSource = other.DataSource; - } - if (other.RequestId.Length != 0) { - RequestId = other.RequestId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DataSource = input.ReadString(); - break; - } - case 18: { - RequestId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DataSource = input.ReadString(); - break; - } - case 18: { - RequestId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Message for finalizing a Backup. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class FinalizeBackupRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FinalizeBackupRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[29]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FinalizeBackupRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FinalizeBackupRequest(FinalizeBackupRequest other) : this() { - dataSource_ = other.dataSource_; - description_ = other.description_; - consistencyTime_ = other.consistencyTime_ != null ? other.consistencyTime_.Clone() : null; - requestId_ = other.requestId_; - backupId_ = other.backupId_; - recoveryRangeStartTime_ = other.recoveryRangeStartTime_ != null ? other.recoveryRangeStartTime_.Clone() : null; - recoveryRangeEndTime_ = other.recoveryRangeEndTime_ != null ? other.recoveryRangeEndTime_.Clone() : null; - retentionDuration_ = other.retentionDuration_ != null ? other.retentionDuration_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FinalizeBackupRequest Clone() { - return new FinalizeBackupRequest(this); - } - - /// Field number for the "data_source" field. - public const int DataSourceFieldNumber = 1; - private string dataSource_ = ""; - /// - /// Required. The resource name of the instance, in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources/'. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DataSource { - get { return dataSource_; } - set { - dataSource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 2; - private readonly static string DescriptionDefaultValue = ""; - - private string description_; - /// - /// This will be assigned to the description field of the newly created Backup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_ ?? DescriptionDefaultValue; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription { - get { return description_ != null; } - } - /// Clears the value of the "description" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription() { - description_ = null; - } - - /// Field number for the "consistency_time" field. - public const int ConsistencyTimeFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Timestamp consistencyTime_; - /// - /// The point in time when this backup was captured from the source. This will - /// be assigned to the consistency_time field of the newly created Backup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp ConsistencyTime { - get { return consistencyTime_; } - set { - consistencyTime_ = value; - } - } - - /// Field number for the "request_id" field. - public const int RequestIdFieldNumber = 4; - private string requestId_ = ""; - /// - /// Optional. An optional request ID to identify requests. Specify a unique - /// request ID so that if you must retry your request, the server will know to - /// ignore the request if it has already been completed. The server will - /// guarantee that for at least 60 minutes after the first request. - /// - /// For example, consider a situation where you make an initial request and - /// the request times out. If you make the request again with the same request - /// ID, the server can check if original operation with the same request ID - /// was received, and if so, will ignore the second request. This prevents - /// clients from accidentally creating duplicate commitments. - /// - /// The request ID must be a valid UUID with the exception that zero UUID is - /// not supported (00000000-0000-0000-0000-000000000000). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RequestId { - get { return requestId_; } - set { - requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "backup_id" field. - public const int BackupIdFieldNumber = 5; - private string backupId_ = ""; - /// - /// Required. Resource ID of the Backup resource to be finalized. This must be - /// the same backup_id that was used in the InitiateBackupRequest. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BackupId { - get { return backupId_; } - set { - backupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "recovery_range_start_time" field. - public const int RecoveryRangeStartTimeFieldNumber = 6; - private global::Google.Protobuf.WellKnownTypes.Timestamp recoveryRangeStartTime_; - /// - /// The earliest timestamp of data available in this Backup. This will set on - /// the newly created Backup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp RecoveryRangeStartTime { - get { return recoveryRangeStartTime_; } - set { - recoveryRangeStartTime_ = value; - } - } - - /// Field number for the "recovery_range_end_time" field. - public const int RecoveryRangeEndTimeFieldNumber = 7; - private global::Google.Protobuf.WellKnownTypes.Timestamp recoveryRangeEndTime_; - /// - /// The latest timestamp of data available in this Backup. This will be set on - /// the newly created Backup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp RecoveryRangeEndTime { - get { return recoveryRangeEndTime_; } - set { - recoveryRangeEndTime_ = value; - } - } - - /// Field number for the "retention_duration" field. - public const int RetentionDurationFieldNumber = 9; - private global::Google.Protobuf.WellKnownTypes.Duration retentionDuration_; - /// - /// The ExpireTime on the backup will be set to FinalizeTime plus this - /// duration. If the resulting ExpireTime is less than - /// EnforcedRetentionEndTime, then ExpireTime is set to - /// EnforcedRetentionEndTime. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration RetentionDuration { - get { return retentionDuration_; } - set { - retentionDuration_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FinalizeBackupRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FinalizeBackupRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DataSource != other.DataSource) return false; - if (Description != other.Description) return false; - if (!object.Equals(ConsistencyTime, other.ConsistencyTime)) return false; - if (RequestId != other.RequestId) return false; - if (BackupId != other.BackupId) return false; - if (!object.Equals(RecoveryRangeStartTime, other.RecoveryRangeStartTime)) return false; - if (!object.Equals(RecoveryRangeEndTime, other.RecoveryRangeEndTime)) return false; - if (!object.Equals(RetentionDuration, other.RetentionDuration)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DataSource.Length != 0) hash ^= DataSource.GetHashCode(); - if (HasDescription) hash ^= Description.GetHashCode(); - if (consistencyTime_ != null) hash ^= ConsistencyTime.GetHashCode(); - if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); - if (BackupId.Length != 0) hash ^= BackupId.GetHashCode(); - if (recoveryRangeStartTime_ != null) hash ^= RecoveryRangeStartTime.GetHashCode(); - if (recoveryRangeEndTime_ != null) hash ^= RecoveryRangeEndTime.GetHashCode(); - if (retentionDuration_ != null) hash ^= RetentionDuration.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DataSource.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DataSource); - } - if (HasDescription) { - output.WriteRawTag(18); - output.WriteString(Description); - } - if (consistencyTime_ != null) { - output.WriteRawTag(26); - output.WriteMessage(ConsistencyTime); - } - if (RequestId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(RequestId); - } - if (BackupId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(BackupId); - } - if (recoveryRangeStartTime_ != null) { - output.WriteRawTag(50); - output.WriteMessage(RecoveryRangeStartTime); - } - if (recoveryRangeEndTime_ != null) { - output.WriteRawTag(58); - output.WriteMessage(RecoveryRangeEndTime); - } - if (retentionDuration_ != null) { - output.WriteRawTag(74); - output.WriteMessage(RetentionDuration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DataSource.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DataSource); - } - if (HasDescription) { - output.WriteRawTag(18); - output.WriteString(Description); - } - if (consistencyTime_ != null) { - output.WriteRawTag(26); - output.WriteMessage(ConsistencyTime); - } - if (RequestId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(RequestId); - } - if (BackupId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(BackupId); - } - if (recoveryRangeStartTime_ != null) { - output.WriteRawTag(50); - output.WriteMessage(RecoveryRangeStartTime); - } - if (recoveryRangeEndTime_ != null) { - output.WriteRawTag(58); - output.WriteMessage(RecoveryRangeEndTime); - } - if (retentionDuration_ != null) { - output.WriteRawTag(74); - output.WriteMessage(RetentionDuration); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DataSource.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DataSource); - } - if (HasDescription) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (consistencyTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConsistencyTime); - } - if (RequestId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); - } - if (BackupId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BackupId); - } - if (recoveryRangeStartTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RecoveryRangeStartTime); - } - if (recoveryRangeEndTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RecoveryRangeEndTime); - } - if (retentionDuration_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RetentionDuration); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FinalizeBackupRequest other) { - if (other == null) { - return; - } - if (other.DataSource.Length != 0) { - DataSource = other.DataSource; - } - if (other.HasDescription) { - Description = other.Description; - } - if (other.consistencyTime_ != null) { - if (consistencyTime_ == null) { - ConsistencyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - ConsistencyTime.MergeFrom(other.ConsistencyTime); - } - if (other.RequestId.Length != 0) { - RequestId = other.RequestId; - } - if (other.BackupId.Length != 0) { - BackupId = other.BackupId; - } - if (other.recoveryRangeStartTime_ != null) { - if (recoveryRangeStartTime_ == null) { - RecoveryRangeStartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - RecoveryRangeStartTime.MergeFrom(other.RecoveryRangeStartTime); - } - if (other.recoveryRangeEndTime_ != null) { - if (recoveryRangeEndTime_ == null) { - RecoveryRangeEndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - RecoveryRangeEndTime.MergeFrom(other.RecoveryRangeEndTime); - } - if (other.retentionDuration_ != null) { - if (retentionDuration_ == null) { - RetentionDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - RetentionDuration.MergeFrom(other.RetentionDuration); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DataSource = input.ReadString(); - break; - } - case 18: { - Description = input.ReadString(); - break; - } - case 26: { - if (consistencyTime_ == null) { - ConsistencyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(ConsistencyTime); - break; - } - case 34: { - RequestId = input.ReadString(); - break; - } - case 42: { - BackupId = input.ReadString(); - break; - } - case 50: { - if (recoveryRangeStartTime_ == null) { - RecoveryRangeStartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RecoveryRangeStartTime); - break; - } - case 58: { - if (recoveryRangeEndTime_ == null) { - RecoveryRangeEndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RecoveryRangeEndTime); - break; - } - case 74: { - if (retentionDuration_ == null) { - RetentionDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(RetentionDuration); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DataSource = input.ReadString(); - break; - } - case 18: { - Description = input.ReadString(); - break; - } - case 26: { - if (consistencyTime_ == null) { - ConsistencyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(ConsistencyTime); - break; - } - case 34: { - RequestId = input.ReadString(); - break; - } - case 42: { - BackupId = input.ReadString(); - break; - } - case 50: { - if (recoveryRangeStartTime_ == null) { - RecoveryRangeStartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RecoveryRangeStartTime); - break; - } - case 58: { - if (recoveryRangeEndTime_ == null) { - RecoveryRangeEndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(RecoveryRangeEndTime); - break; - } - case 74: { - if (retentionDuration_ == null) { - RetentionDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(RetentionDuration); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for FetchAccessToken. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class FetchAccessTokenRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FetchAccessTokenRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[30]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FetchAccessTokenRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FetchAccessTokenRequest(FetchAccessTokenRequest other) : this() { - name_ = other.name_; - generationId_ = other.generationId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FetchAccessTokenRequest Clone() { - return new FetchAccessTokenRequest(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// Required. The resource name for the location for which static IPs should be - /// returned. - /// Must be in the format - /// 'projects/*/locations/*/backupVaults/*/dataSources'. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "generation_id" field. - public const int GenerationIdFieldNumber = 2; - private int generationId_; - /// - /// Required. The generation of the backup to update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int GenerationId { - get { return generationId_; } - set { - generationId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FetchAccessTokenRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FetchAccessTokenRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (GenerationId != other.GenerationId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (GenerationId != 0) hash ^= GenerationId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (GenerationId != 0) { - output.WriteRawTag(16); - output.WriteInt32(GenerationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (GenerationId != 0) { - output.WriteRawTag(16); - output.WriteInt32(GenerationId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (GenerationId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(GenerationId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FetchAccessTokenRequest other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.GenerationId != 0) { - GenerationId = other.GenerationId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 16: { - GenerationId = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 16: { - GenerationId = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for FetchAccessToken. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class FetchAccessTokenResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FetchAccessTokenResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[31]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FetchAccessTokenResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FetchAccessTokenResponse(FetchAccessTokenResponse other) : this() { - readLocation_ = other.readLocation_; - writeLocation_ = other.writeLocation_; - token_ = other.token_; - expireTime_ = other.expireTime_ != null ? other.expireTime_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FetchAccessTokenResponse Clone() { - return new FetchAccessTokenResponse(this); - } - - /// Field number for the "read_location" field. - public const int ReadLocationFieldNumber = 1; - private string readLocation_ = ""; - /// - /// The location in bucket that can be used for reading. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ReadLocation { - get { return readLocation_; } - set { - readLocation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "write_location" field. - public const int WriteLocationFieldNumber = 2; - private string writeLocation_ = ""; - /// - /// The location in bucket that can be used for writing. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string WriteLocation { - get { return writeLocation_; } - set { - writeLocation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "token" field. - public const int TokenFieldNumber = 3; - private string token_ = ""; - /// - /// The downscoped token that was created. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Token { - get { return token_; } - set { - token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "expire_time" field. - public const int ExpireTimeFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.Timestamp expireTime_; - /// - /// The token is valid until this time. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Timestamp ExpireTime { - get { return expireTime_; } - set { - expireTime_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FetchAccessTokenResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FetchAccessTokenResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ReadLocation != other.ReadLocation) return false; - if (WriteLocation != other.WriteLocation) return false; - if (Token != other.Token) return false; - if (!object.Equals(ExpireTime, other.ExpireTime)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ReadLocation.Length != 0) hash ^= ReadLocation.GetHashCode(); - if (WriteLocation.Length != 0) hash ^= WriteLocation.GetHashCode(); - if (Token.Length != 0) hash ^= Token.GetHashCode(); - if (expireTime_ != null) hash ^= ExpireTime.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ReadLocation.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ReadLocation); - } - if (WriteLocation.Length != 0) { - output.WriteRawTag(18); - output.WriteString(WriteLocation); - } - if (Token.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Token); - } - if (expireTime_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ExpireTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ReadLocation.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ReadLocation); - } - if (WriteLocation.Length != 0) { - output.WriteRawTag(18); - output.WriteString(WriteLocation); - } - if (Token.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Token); - } - if (expireTime_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ExpireTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ReadLocation.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ReadLocation); - } - if (WriteLocation.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(WriteLocation); - } - if (Token.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); - } - if (expireTime_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpireTime); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FetchAccessTokenResponse other) { - if (other == null) { - return; - } - if (other.ReadLocation.Length != 0) { - ReadLocation = other.ReadLocation; - } - if (other.WriteLocation.Length != 0) { - WriteLocation = other.WriteLocation; - } - if (other.Token.Length != 0) { - Token = other.Token; - } - if (other.expireTime_ != null) { - if (expireTime_ == null) { - ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - ExpireTime.MergeFrom(other.ExpireTime); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ReadLocation = input.ReadString(); - break; - } - case 18: { - WriteLocation = input.ReadString(); - break; - } - case 26: { - Token = input.ReadString(); - break; - } - case 34: { - if (expireTime_ == null) { - ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(ExpireTime); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ReadLocation = input.ReadString(); - break; - } - case 18: { - WriteLocation = input.ReadString(); - break; - } - case 26: { - Token = input.ReadString(); - break; - } - case 34: { - if (expireTime_ == null) { - ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); - } - input.ReadMessage(ExpireTime); - break; - } - } - } - } - #endif - - } - /// /// Request message for listing Backups. /// @@ -13010,7 +10311,7 @@ public sealed partial class ListBackupsRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[34]; } + get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[25]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13912,7 +11213,7 @@ public sealed partial class UpdateBackupRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[39]; } + get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[30]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15329,7 +12630,7 @@ public sealed partial class GcpResource : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[40]; } + get { return global::Google.Cloud.BackupDR.V1.BackupvaultReflection.Descriptor.MessageTypes[31]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/BackupvaultResourceNames.g.cs b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/BackupvaultResourceNames.g.cs index a641ac67890b..07614840961a 100644 --- a/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/BackupvaultResourceNames.g.cs +++ b/apis/Google.Cloud.BackupDR.V1/Google.Cloud.BackupDR.V1/BackupvaultResourceNames.g.cs @@ -995,78 +995,6 @@ public partial class GetDataSourceRequest } } - public partial class RemoveDataSourceRequest - { - /// - /// -typed view over the resource name property. - /// - public gcbv::DataSourceName DataSourceName - { - get => string.IsNullOrEmpty(Name) ? null : gcbv::DataSourceName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } - - public partial class SetInternalStatusRequest - { - /// - /// -typed view over the resource name property. - /// - public DataSourceName DataSourceAsDataSourceName - { - get => string.IsNullOrEmpty(DataSource) ? null : DataSourceName.Parse(DataSource, allowUnparsed: true); - set => DataSource = value?.ToString() ?? ""; - } - } - - public partial class InitiateBackupRequest - { - /// - /// -typed view over the resource name property. - /// - public DataSourceName DataSourceAsDataSourceName - { - get => string.IsNullOrEmpty(DataSource) ? null : DataSourceName.Parse(DataSource, allowUnparsed: true); - set => DataSource = value?.ToString() ?? ""; - } - } - - public partial class AbandonBackupRequest - { - /// - /// -typed view over the resource name property. - /// - public DataSourceName DataSourceAsDataSourceName - { - get => string.IsNullOrEmpty(DataSource) ? null : DataSourceName.Parse(DataSource, allowUnparsed: true); - set => DataSource = value?.ToString() ?? ""; - } - } - - public partial class FinalizeBackupRequest - { - /// - /// -typed view over the resource name property. - /// - public DataSourceName DataSourceAsDataSourceName - { - get => string.IsNullOrEmpty(DataSource) ? null : DataSourceName.Parse(DataSource, allowUnparsed: true); - set => DataSource = value?.ToString() ?? ""; - } - } - - public partial class FetchAccessTokenRequest - { - /// - /// -typed view over the resource name property. - /// - public gcbv::DataSourceName DataSourceName - { - get => string.IsNullOrEmpty(Name) ? null : gcbv::DataSourceName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } - public partial class ListBackupsRequest { /// diff --git a/apis/Google.Cloud.BackupDR.V1/gapic_metadata.json b/apis/Google.Cloud.BackupDR.V1/gapic_metadata.json index 323525285fd7..fcac2b362558 100644 --- a/apis/Google.Cloud.BackupDR.V1/gapic_metadata.json +++ b/apis/Google.Cloud.BackupDR.V1/gapic_metadata.json @@ -10,12 +10,6 @@ "grpc": { "libraryClient": "BackupDRClient", "rpcs": { - "AbandonBackup": { - "methods": [ - "AbandonBackup", - "AbandonBackupAsync" - ] - }, "CreateBackupPlan": { "methods": [ "CreateBackupPlan", @@ -70,24 +64,12 @@ "DeleteManagementServerAsync" ] }, - "FetchAccessToken": { - "methods": [ - "FetchAccessToken", - "FetchAccessTokenAsync" - ] - }, "FetchUsableBackupVaults": { "methods": [ "FetchUsableBackupVaults", "FetchUsableBackupVaultsAsync" ] }, - "FinalizeBackup": { - "methods": [ - "FinalizeBackup", - "FinalizeBackupAsync" - ] - }, "GetBackup": { "methods": [ "GetBackup", @@ -124,12 +106,6 @@ "GetManagementServerAsync" ] }, - "InitiateBackup": { - "methods": [ - "InitiateBackup", - "InitiateBackupAsync" - ] - }, "ListBackupPlanAssociations": { "methods": [ "ListBackupPlanAssociations", @@ -166,30 +142,12 @@ "ListManagementServersAsync" ] }, - "RemoveDataSource": { - "methods": [ - "RemoveDataSource", - "RemoveDataSourceAsync" - ] - }, "RestoreBackup": { "methods": [ "RestoreBackup", "RestoreBackupAsync" ] }, - "SetInternalStatus": { - "methods": [ - "SetInternalStatus", - "SetInternalStatusAsync" - ] - }, - "TestIamPermissions": { - "methods": [ - "TestIamPermissions", - "TestIamPermissionsAsync" - ] - }, "TriggerBackup": { "methods": [ "TriggerBackup",