diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1AsyncSnippet.g.cs similarity index 93% rename from apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesAsyncSnippet.g.cs rename to apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1AsyncSnippet.g.cs index 989d4c976e97..1d62824ca431 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesAsyncSnippet.g.cs +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1AsyncSnippet.g.cs @@ -16,7 +16,7 @@ namespace GoogleCSharpSnippets { - // [START secretmanager_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames] + // [START secretmanager_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames1] using Google.Api.Gax.ResourceNames; using Google.Cloud.SecretManager.V1; using System.Threading.Tasks; @@ -31,7 +31,7 @@ public sealed partial class GeneratedSecretManagerServiceClientSnippets /// - 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 CreateSecretResourceNamesAsync() + public async Task CreateSecretResourceNames1Async() { // Create client SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); @@ -43,5 +43,5 @@ public async Task CreateSecretResourceNamesAsync() Secret response = await secretManagerServiceClient.CreateSecretAsync(parent, secretId, secret); } } - // [END secretmanager_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames] + // [END secretmanager_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames1] } diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesSnippet.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1Snippet.g.cs similarity index 93% rename from apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesSnippet.g.cs rename to apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1Snippet.g.cs index f03766462040..2546f7c317ec 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNamesSnippet.g.cs +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1Snippet.g.cs @@ -16,7 +16,7 @@ namespace GoogleCSharpSnippets { - // [START secretmanager_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames] + // [START secretmanager_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames1] using Google.Api.Gax.ResourceNames; using Google.Cloud.SecretManager.V1; @@ -30,7 +30,7 @@ public sealed partial class GeneratedSecretManagerServiceClientSnippets /// - 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 CreateSecretResourceNames() + public void CreateSecretResourceNames1() { // Create client SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); @@ -42,5 +42,5 @@ public void CreateSecretResourceNames() Secret response = secretManagerServiceClient.CreateSecret(parent, secretId, secret); } } - // [END secretmanager_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames] + // [END secretmanager_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames1] } diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2AsyncSnippet.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2AsyncSnippet.g.cs new file mode 100644 index 000000000000..892cd2bf44f9 --- /dev/null +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2AsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// 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 secretmanager_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for CreateSecretAsync + /// + /// 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 CreateSecretResourceNames2Async() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = await secretManagerServiceClient.CreateSecretAsync(parent, secretId, secret); + } + } + // [END secretmanager_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames2] +} diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2Snippet.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2Snippet.g.cs new file mode 100644 index 000000000000..a8779e4e2e5a --- /dev/null +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2Snippet.g.cs @@ -0,0 +1,46 @@ +// 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 secretmanager_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for CreateSecret + /// + /// 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 CreateSecretResourceNames2() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = secretManagerServiceClient.CreateSecret(parent, secretId, secret); + } + } + // [END secretmanager_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames2] +} diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1AsyncSnippet.g.cs similarity index 96% rename from apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesAsyncSnippet.g.cs rename to apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1AsyncSnippet.g.cs index 0a7ee6bde704..63cddb62dbfe 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesAsyncSnippet.g.cs +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1AsyncSnippet.g.cs @@ -16,7 +16,7 @@ namespace GoogleCSharpSnippets { - // [START secretmanager_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames] + // [START secretmanager_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames1] using Google.Api.Gax; using Google.Api.Gax.ResourceNames; using Google.Cloud.SecretManager.V1; @@ -34,7 +34,7 @@ public sealed partial class GeneratedSecretManagerServiceClientSnippets /// - 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 ListSecretsResourceNamesAsync() + public async Task ListSecretsResourceNames1Async() { // Create client SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); @@ -76,5 +76,5 @@ public async Task ListSecretsResourceNamesAsync() string nextPageToken = singlePage.NextPageToken; } } - // [END secretmanager_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames] + // [END secretmanager_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames1] } diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesSnippet.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1Snippet.g.cs similarity index 96% rename from apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesSnippet.g.cs rename to apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1Snippet.g.cs index 4a2adaa6b326..4220ce4b78cf 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNamesSnippet.g.cs +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1Snippet.g.cs @@ -16,7 +16,7 @@ namespace GoogleCSharpSnippets { - // [START secretmanager_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames] + // [START secretmanager_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames1] using Google.Api.Gax; using Google.Api.Gax.ResourceNames; using Google.Cloud.SecretManager.V1; @@ -32,7 +32,7 @@ public sealed partial class GeneratedSecretManagerServiceClientSnippets /// - 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 ListSecretsResourceNames() + public void ListSecretsResourceNames1() { // Create client SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); @@ -74,5 +74,5 @@ public void ListSecretsResourceNames() string nextPageToken = singlePage.NextPageToken; } } - // [END secretmanager_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames] + // [END secretmanager_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames1] } diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2AsyncSnippet.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2AsyncSnippet.g.cs new file mode 100644 index 000000000000..826ca9a69a4c --- /dev/null +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2AsyncSnippet.g.cs @@ -0,0 +1,80 @@ +// 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 secretmanager_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecretsAsync + /// + /// 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 ListSecretsResourceNames2Async() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = secretManagerServiceClient.ListSecretsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Secret item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListSecretsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Secret item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Secret item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END secretmanager_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames2] +} diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2Snippet.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2Snippet.g.cs new file mode 100644 index 000000000000..c524853648ac --- /dev/null +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2Snippet.g.cs @@ -0,0 +1,78 @@ +// 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 secretmanager_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1; + using System; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecrets + /// + /// 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 ListSecretsResourceNames2() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = secretManagerServiceClient.ListSecrets(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Secret item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListSecretsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Secret item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Secret item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + } + } + // [END secretmanager_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames2] +} diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/snippet_metadata_google.cloud.secretmanager.v1.json b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/snippet_metadata_google.cloud.secretmanager.v1.json index 379ccc1c4593..def77e85ea28 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/snippet_metadata_google.cloud.secretmanager.v1.json +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.GeneratedSnippets/snippet_metadata_google.cloud.secretmanager.v1.json @@ -219,10 +219,10 @@ ] }, { - "regionTag": "secretmanager_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames", - "title": "ListSecretsResourceNames", + "regionTag": "secretmanager_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames1", + "title": "ListSecretsResourceNames1", "description": "Snippet for ListSecrets", - "file": "SecretManagerServiceClient.ListSecretsResourceNamesSnippet.g.cs", + "file": "SecretManagerServiceClient.ListSecretsResourceNames1Snippet.g.cs", "language": "C_SHARP", "clientMethod": { "shortName": "ListSecrets", @@ -274,10 +274,10 @@ ] }, { - "regionTag": "secretmanager_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames", - "title": "ListSecretsResourceNamesAsync", + "regionTag": "secretmanager_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames1", + "title": "ListSecretsResourceNames1Async", "description": "Snippet for ListSecretsAsync", - "file": "SecretManagerServiceClient.ListSecretsResourceNamesAsyncSnippet.g.cs", + "file": "SecretManagerServiceClient.ListSecretsResourceNames1AsyncSnippet.g.cs", "language": "C_SHARP", "clientMethod": { "shortName": "ListSecretsAsync", @@ -329,6 +329,117 @@ } ] }, + { + "regionTag": "secretmanager_v1_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames2", + "title": "ListSecretsResourceNames2", + "description": "Snippet for ListSecrets", + "file": "SecretManagerServiceClient.ListSecretsResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecrets", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient.ListSecrets", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames2", + "title": "ListSecretsResourceNames2Async", + "description": "Snippet for ListSecretsAsync", + "file": "SecretManagerServiceClient.ListSecretsResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecretsAsync", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient.ListSecretsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "System.String", + "name": "pageToken" + }, + { + "type": "System.Nullable[System.Int32]", + "name": "pageSize" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, { "regionTag": "secretmanager_v1_generated_SecretManagerService_CreateSecret_sync", "title": "CreateSecretRequestObject", @@ -538,10 +649,10 @@ ] }, { - "regionTag": "secretmanager_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames", - "title": "CreateSecretResourceNames", + "regionTag": "secretmanager_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames1", + "title": "CreateSecretResourceNames1", "description": "Snippet for CreateSecret", - "file": "SecretManagerServiceClient.CreateSecretResourceNamesSnippet.g.cs", + "file": "SecretManagerServiceClient.CreateSecretResourceNames1Snippet.g.cs", "language": "C_SHARP", "clientMethod": { "shortName": "CreateSecret", @@ -593,10 +704,10 @@ ] }, { - "regionTag": "secretmanager_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames", - "title": "CreateSecretResourceNamesAsync", + "regionTag": "secretmanager_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames1", + "title": "CreateSecretResourceNames1Async", "description": "Snippet for CreateSecretAsync", - "file": "SecretManagerServiceClient.CreateSecretResourceNamesAsyncSnippet.g.cs", + "file": "SecretManagerServiceClient.CreateSecretResourceNames1AsyncSnippet.g.cs", "language": "C_SHARP", "clientMethod": { "shortName": "CreateSecretAsync", @@ -648,6 +759,117 @@ } ] }, + { + "regionTag": "secretmanager_v1_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames2", + "title": "CreateSecretResourceNames2", + "description": "Snippet for CreateSecret", + "file": "SecretManagerServiceClient.CreateSecretResourceNames2Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecret", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient.CreateSecret", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames2", + "title": "CreateSecretResourceNames2Async", + "description": "Snippet for CreateSecretAsync", + "file": "SecretManagerServiceClient.CreateSecretResourceNames2AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient.CreateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, { "regionTag": "secretmanager_v1_generated_SecretManagerService_AddSecretVersion_sync", "title": "AddSecretVersionRequestObject", diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.Snippets/SecretManagerServiceClientSnippets.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.Snippets/SecretManagerServiceClientSnippets.g.cs index 72153d63c081..2685c86e13f9 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.Snippets/SecretManagerServiceClientSnippets.g.cs +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.Snippets/SecretManagerServiceClientSnippets.g.cs @@ -217,7 +217,7 @@ public async Task ListSecretsAsync() } /// Snippet for ListSecrets - public void ListSecretsResourceNames() + public void ListSecretsResourceNames1() { // Snippet: ListSecrets(ProjectName, string, int?, CallSettings) // Create client @@ -262,7 +262,7 @@ public void ListSecretsResourceNames() } /// Snippet for ListSecretsAsync - public async Task ListSecretsResourceNamesAsync() + public async Task ListSecretsResourceNames1Async() { // Snippet: ListSecretsAsync(ProjectName, string, int?, CallSettings) // Create client @@ -306,6 +306,96 @@ public async Task ListSecretsResourceNamesAsync() // End snippet } + /// Snippet for ListSecrets + public void ListSecretsResourceNames2() + { + // Snippet: ListSecrets(LocationName, string, int?, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedEnumerable response = secretManagerServiceClient.ListSecrets(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (Secret item in response) + { + // Do something with each item + Console.WriteLine(item); + } + + // Or iterate over pages (of server-defined size), performing one RPC per page + foreach (ListSecretsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Secret item in page) + { + // Do something with each item + Console.WriteLine(item); + } + } + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = response.ReadPage(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Secret item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + + /// Snippet for ListSecretsAsync + public async Task ListSecretsResourceNames2Async() + { + // Snippet: ListSecretsAsync(LocationName, string, int?, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + // Make the request + PagedAsyncEnumerable response = secretManagerServiceClient.ListSecretsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((Secret item) => + { + // Do something with each item + Console.WriteLine(item); + }); + + // Or iterate over pages (of server-defined size), performing one RPC per page + await response.AsRawResponses().ForEachAsync((ListSecretsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (Secret item in page) + { + // Do something with each item + Console.WriteLine(item); + } + }); + + // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required + int pageSize = 10; + Page singlePage = await response.ReadPageAsync(pageSize); + // Do something with the page of items + Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); + foreach (Secret item in singlePage) + { + // Do something with each item + Console.WriteLine(item); + } + // Store the pageToken, for when the next page is required. + string nextPageToken = singlePage.NextPageToken; + // End snippet + } + /// Snippet for CreateSecret public void CreateSecretRequestObject() { @@ -375,7 +465,7 @@ public async Task CreateSecretAsync() } /// Snippet for CreateSecret - public void CreateSecretResourceNames() + public void CreateSecretResourceNames1() { // Snippet: CreateSecret(ProjectName, string, Secret, CallSettings) // Create client @@ -390,7 +480,7 @@ public void CreateSecretResourceNames() } /// Snippet for CreateSecretAsync - public async Task CreateSecretResourceNamesAsync() + public async Task CreateSecretResourceNames1Async() { // Snippet: CreateSecretAsync(ProjectName, string, Secret, CallSettings) // Additional: CreateSecretAsync(ProjectName, string, Secret, CancellationToken) @@ -405,6 +495,37 @@ public async Task CreateSecretResourceNamesAsync() // End snippet } + /// Snippet for CreateSecret + public void CreateSecretResourceNames2() + { + // Snippet: CreateSecret(LocationName, string, Secret, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = secretManagerServiceClient.CreateSecret(parent, secretId, secret); + // End snippet + } + + /// Snippet for CreateSecretAsync + public async Task CreateSecretResourceNames2Async() + { + // Snippet: CreateSecretAsync(LocationName, string, Secret, CallSettings) + // Additional: CreateSecretAsync(LocationName, string, Secret, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = await secretManagerServiceClient.CreateSecretAsync(parent, secretId, secret); + // End snippet + } + /// Snippet for AddSecretVersion public void AddSecretVersionRequestObject() { diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.csproj b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.csproj index 43049eb11510..87c82776c419 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.csproj +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1.csproj @@ -11,6 +11,7 @@ + \ No newline at end of file diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/PackageApiMetadata.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/PackageApiMetadata.g.cs index 9b7d99e17d57..3078beab18e7 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/PackageApiMetadata.g.cs +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/PackageApiMetadata.g.cs @@ -16,6 +16,8 @@ #pragma warning disable CS8981 using gaxgrpc = Google.Api.Gax.Grpc; +using gcl = Google.Cloud.Location; +using proto = Google.Protobuf; using gpr = Google.Protobuf.Reflection; using scg = System.Collections.Generic; @@ -26,10 +28,24 @@ internal static class PackageApiMetadata { /// The for services in this package. internal static gaxgrpc::ApiMetadata ApiMetadata { get; } = new gaxgrpc::ApiMetadata("Google.Cloud.SecretManager.V1", GetFileDescriptors) - .WithRequestNumericEnumJsonEncoding(true); + .WithRequestNumericEnumJsonEncoding(true) + .WithHttpRuleOverrides(new scg::Dictionary + { + { + "google.cloud.location.Locations.GetLocation", + // { "get": "/v1/{name=projects/*/locations/*}" } + proto::ByteString.FromBase64("EiEvdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKn0=") + }, + { + "google.cloud.location.Locations.ListLocations", + // { "get": "/v1/{name=projects/*}/locations" } + proto::ByteString.FromBase64("Eh8vdjEve25hbWU9cHJvamVjdHMvKn0vbG9jYXRpb25z") + }, + }); private static scg::IEnumerable GetFileDescriptors() { + yield return gcl::LocationsReflection.Descriptor; yield return ResourcesReflection.Descriptor; yield return ServiceReflection.Descriptor; } diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Resources.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Resources.g.cs index 476875e19ee5..1c99508f1a90 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Resources.g.cs +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Resources.g.cs @@ -28,9 +28,9 @@ public static partial class ResourcesReflection { "dG8SHWdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxGh9nb29nbGUvYXBp", "L2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnBy", "b3RvGh5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8aH2dvb2dsZS9w", - "cm90b2J1Zi90aW1lc3RhbXAucHJvdG8i9AYKBlNlY3JldBIRCgRuYW1lGAEg", + "cm90b2J1Zi90aW1lc3RhbXAucHJvdG8i4ggKBlNlY3JldBIRCgRuYW1lGAEg", "ASgJQgPgQQMSRwoLcmVwbGljYXRpb24YAiABKAsyKi5nb29nbGUuY2xvdWQu", - "c2VjcmV0bWFuYWdlci52MS5SZXBsaWNhdGlvbkIG4EEF4EECEjQKC2NyZWF0", + "c2VjcmV0bWFuYWdlci52MS5SZXBsaWNhdGlvbkIG4EEF4EEBEjQKC2NyZWF0", "ZV90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EED", "EkEKBmxhYmVscxgEIAMoCzIxLmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2Vy", "LnYxLlNlY3JldC5MYWJlbHNFbnRyeRI5CgZ0b3BpY3MYBSADKAsyJC5nb29n", @@ -42,71 +42,82 @@ public static partial class ResourcesReflection { "D3ZlcnNpb25fYWxpYXNlcxgLIAMoCzI5Lmdvb2dsZS5jbG91ZC5zZWNyZXRt", "YW5hZ2VyLnYxLlNlY3JldC5WZXJzaW9uQWxpYXNlc0VudHJ5QgPgQQESUAoL", "YW5ub3RhdGlvbnMYDSADKAsyNi5nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdl", - "ci52MS5TZWNyZXQuQW5ub3RhdGlvbnNFbnRyeUID4EEBGi0KC0xhYmVsc0Vu", - "dHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEaNQoTVmVyc2lv", - "bkFsaWFzZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYA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W1lGAEgASgLMhouZ29vZ2xlLnByb3RvYnVm", + "LlRpbWVzdGFtcEID4EEBEjcKD3JvdGF0aW9uX3BlcmlvZBgCIAEoCzIZLmdv", + "b2dsZS5wcm90b2J1Zi5EdXJhdGlvbkID4EEEIkwKDVNlY3JldFBheWxvYWQS", + "DAoEZGF0YRgBIAEoDBIdCgtkYXRhX2NyYzMyYxgCIAEoA0ID4EEBSACIAQFC", + "DgoMX2RhdGFfY3JjMzJjQuoBCiFjb20uZ29vZ2xlLmNsb3VkLnNlY3JldG1h", + "bmFnZXIudjFCDlJlc291cmNlc1Byb3RvUAFaR2Nsb3VkLmdvb2dsZS5jb20v", + "Z28vc2VjcmV0bWFuYWdlci9hcGl2MS9zZWNyZXRtYW5hZ2VycGI7c2VjcmV0", + "bWFuYWdlcnBi+AEBogIDR1NNqgIdR29vZ2xlLkNsb3VkLlNlY3JldE1hbmFn", + "ZXIuVjHKAh1Hb29nbGVcQ2xvdWRcU2VjcmV0TWFuYWdlclxWMeoCIEdvb2ds", + "ZTo6Q2xvdWQ6OlNlY3JldE1hbmFnZXI6OlYxYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.Secret), global::Google.Cloud.SecretManager.V1.Secret.Parser, new[]{ "Name", "Replication", "CreateTime", "Labels", "Topics", "ExpireTime", "Ttl", "Etag", "Rotation", "VersionAliases", "Annotations" }, new[]{ "Expiration" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.SecretVersion), global::Google.Cloud.SecretManager.V1.SecretVersion.Parser, new[]{ "Name", "CreateTime", "DestroyTime", "State", "ReplicationStatus", "Etag", "ClientSpecifiedPayloadChecksum" }, null, new[]{ typeof(global::Google.Cloud.SecretManager.V1.SecretVersion.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.Secret), global::Google.Cloud.SecretManager.V1.Secret.Parser, new[]{ "Name", "Replication", "CreateTime", "Labels", "Topics", "ExpireTime", "Ttl", "Etag", "Rotation", "VersionAliases", "Annotations", "VersionDestroyTtl", "CustomerManagedEncryption" }, new[]{ "Expiration" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.SecretVersion), global::Google.Cloud.SecretManager.V1.SecretVersion.Parser, new[]{ "Name", "CreateTime", "DestroyTime", "State", "ReplicationStatus", "Etag", "ClientSpecifiedPayloadChecksum", "ScheduledDestroyTime", "CustomerManagedEncryption" }, null, new[]{ typeof(global::Google.Cloud.SecretManager.V1.SecretVersion.Types.State) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.Replication), global::Google.Cloud.SecretManager.V1.Replication.Parser, new[]{ "Automatic", "UserManaged" }, new[]{ "Replication" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.Replication.Types.Automatic), global::Google.Cloud.SecretManager.V1.Replication.Types.Automatic.Parser, new[]{ "CustomerManagedEncryption" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.Replication.Types.UserManaged), global::Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Parser, new[]{ "Replicas" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica), global::Google.Cloud.SecretManager.V1.Replication.Types.UserManaged.Types.Replica.Parser, new[]{ "Location", "CustomerManagedEncryption" }, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1.CustomerManagedEncryption), global::Google.Cloud.SecretManager.V1.CustomerManagedEncryption.Parser, new[]{ "KmsKeyName" }, null, null, null, null), @@ -174,6 +185,8 @@ public sealed partial class Secret : pb::IMessage rotation_ = other.rotation_ != null ? other.rotation_.Clone() : null; versionAliases_ = other.versionAliases_.Clone(); annotations_ = other.annotations_.Clone(); + versionDestroyTtl_ = other.versionDestroyTtl_ != null ? other.versionDestroyTtl_.Clone() : null; + customerManagedEncryption_ = other.customerManagedEncryption_ != null ? other.customerManagedEncryption_.Clone() : null; switch (other.ExpirationCase) { case ExpirationOneofCase.ExpireTime: ExpireTime = other.ExpireTime.Clone(); @@ -213,7 +226,7 @@ public sealed partial class Secret : pb::IMessage public const int ReplicationFieldNumber = 2; private global::Google.Cloud.SecretManager.V1.Replication replication_; /// - /// Required. Immutable. The replication policy of the secret data attached to + /// Optional. Immutable. The replication policy of the secret data attached to /// the [Secret][google.cloud.secretmanager.v1.Secret]. /// /// The replication policy cannot be changed after the Secret has been created. @@ -363,7 +376,7 @@ public sealed partial class Secret : pb::IMessage /// No more than 50 aliases can be assigned to a given secret. /// /// Version-Alias pairs will be viewable via GetSecret and modifiable via - /// UpdateSecret. At launch access by alias will only be supported on + /// UpdateSecret. Access by alias is only be supported on /// GetSecretVersion and AccessSecretVersion. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -397,6 +410,49 @@ public sealed partial class Secret : pb::IMessage get { return annotations_; } } + /// Field number for the "version_destroy_ttl" field. + public const int VersionDestroyTtlFieldNumber = 14; + private global::Google.Protobuf.WellKnownTypes.Duration versionDestroyTtl_; + /// + /// Optional. Secret Version TTL after destruction request + /// + /// This is a part of the Delayed secret version destroy feature. + /// For secret with TTL>0, version destruction doesn't happen immediately + /// on calling destroy instead the version goes to a disabled state and + /// destruction happens after the TTL expires. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration VersionDestroyTtl { + get { return versionDestroyTtl_; } + set { + versionDestroyTtl_ = value; + } + } + + /// Field number for the "customer_managed_encryption" field. + public const int CustomerManagedEncryptionFieldNumber = 15; + private global::Google.Cloud.SecretManager.V1.CustomerManagedEncryption customerManagedEncryption_; + /// + /// Optional. The customer-managed encryption configuration of the Regionalised + /// Secrets. If no configuration is provided, Google-managed default encryption + /// is used. + /// + /// Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption + /// configuration only apply to + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] added + /// afterwards. They do not apply retroactively to existing + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.CustomerManagedEncryption CustomerManagedEncryption { + get { return customerManagedEncryption_; } + set { + customerManagedEncryption_ = value; + } + } + private object expiration_; /// Enum of possible cases for the "expiration" oneof. public enum ExpirationOneofCase { @@ -444,6 +500,8 @@ public enum ExpirationOneofCase { if (!object.Equals(Rotation, other.Rotation)) return false; if (!VersionAliases.Equals(other.VersionAliases)) return false; if (!Annotations.Equals(other.Annotations)) return false; + if (!object.Equals(VersionDestroyTtl, other.VersionDestroyTtl)) return false; + if (!object.Equals(CustomerManagedEncryption, other.CustomerManagedEncryption)) return false; if (ExpirationCase != other.ExpirationCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -463,6 +521,8 @@ public enum ExpirationOneofCase { if (rotation_ != null) hash ^= Rotation.GetHashCode(); hash ^= VersionAliases.GetHashCode(); hash ^= Annotations.GetHashCode(); + if (versionDestroyTtl_ != null) hash ^= VersionDestroyTtl.GetHashCode(); + if (customerManagedEncryption_ != null) hash ^= CustomerManagedEncryption.GetHashCode(); hash ^= (int) expirationCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -514,6 +574,14 @@ public enum ExpirationOneofCase { } versionAliases_.WriteTo(output, _map_versionAliases_codec); annotations_.WriteTo(output, _map_annotations_codec); + if (versionDestroyTtl_ != null) { + output.WriteRawTag(114); + output.WriteMessage(VersionDestroyTtl); + } + if (customerManagedEncryption_ != null) { + output.WriteRawTag(122); + output.WriteMessage(CustomerManagedEncryption); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -556,6 +624,14 @@ public enum ExpirationOneofCase { } versionAliases_.WriteTo(ref output, _map_versionAliases_codec); annotations_.WriteTo(ref output, _map_annotations_codec); + if (versionDestroyTtl_ != null) { + output.WriteRawTag(114); + output.WriteMessage(VersionDestroyTtl); + } + if (customerManagedEncryption_ != null) { + output.WriteRawTag(122); + output.WriteMessage(CustomerManagedEncryption); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -591,6 +667,12 @@ public enum ExpirationOneofCase { } size += versionAliases_.CalculateSize(_map_versionAliases_codec); size += annotations_.CalculateSize(_map_annotations_codec); + if (versionDestroyTtl_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(VersionDestroyTtl); + } + if (customerManagedEncryption_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerManagedEncryption); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -631,6 +713,18 @@ public enum ExpirationOneofCase { } versionAliases_.MergeFrom(other.versionAliases_); annotations_.MergeFrom(other.annotations_); + if (other.versionDestroyTtl_ != null) { + if (versionDestroyTtl_ == null) { + VersionDestroyTtl = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + VersionDestroyTtl.MergeFrom(other.VersionDestroyTtl); + } + if (other.customerManagedEncryption_ != null) { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1.CustomerManagedEncryption(); + } + CustomerManagedEncryption.MergeFrom(other.CustomerManagedEncryption); + } switch (other.ExpirationCase) { case ExpirationOneofCase.ExpireTime: if (ExpireTime == null) { @@ -724,6 +818,20 @@ public enum ExpirationOneofCase { annotations_.AddEntriesFrom(input, _map_annotations_codec); break; } + case 114: { + if (versionDestroyTtl_ == null) { + VersionDestroyTtl = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(VersionDestroyTtl); + break; + } + case 122: { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1.CustomerManagedEncryption(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } } } #endif @@ -802,6 +910,20 @@ public enum ExpirationOneofCase { annotations_.AddEntriesFrom(ref input, _map_annotations_codec); break; } + case 114: { + if (versionDestroyTtl_ == null) { + VersionDestroyTtl = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(VersionDestroyTtl); + break; + } + case 122: { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1.CustomerManagedEncryption(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } } } } @@ -854,6 +976,8 @@ public sealed partial class SecretVersion : pb::IMessage replicationStatus_ = other.replicationStatus_ != null ? other.replicationStatus_.Clone() : null; etag_ = other.etag_; clientSpecifiedPayloadChecksum_ = other.clientSpecifiedPayloadChecksum_; + scheduledDestroyTime_ = other.scheduledDestroyTime_ != null ? other.scheduledDestroyTime_.Clone() : null; + customerManagedEncryption_ = other.customerManagedEncryption_ != null ? other.customerManagedEncryption_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -987,6 +1111,44 @@ public sealed partial class SecretVersion : pb::IMessage } } + /// Field number for the "scheduled_destroy_time" field. + public const int ScheduledDestroyTimeFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp scheduledDestroyTime_; + /// + /// Optional. Output only. Scheduled destroy time for secret version. + /// This is a part of the Delayed secret version destroy feature. For a + /// Secret with a valid version destroy TTL, when a secert version is + /// destroyed, the version is moved to disabled state and it is scheduled for + /// destruction. The version is destroyed only after the + /// `scheduled_destroy_time`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ScheduledDestroyTime { + get { return scheduledDestroyTime_; } + set { + scheduledDestroyTime_ = value; + } + } + + /// Field number for the "customer_managed_encryption" field. + public const int CustomerManagedEncryptionFieldNumber = 9; + private global::Google.Cloud.SecretManager.V1.CustomerManagedEncryptionStatus customerManagedEncryption_; + /// + /// Output only. The customer-managed encryption status of the + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only + /// populated if customer-managed encryption is used and + /// [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1.CustomerManagedEncryptionStatus CustomerManagedEncryption { + get { return customerManagedEncryption_; } + set { + customerManagedEncryption_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -1009,6 +1171,8 @@ public sealed partial class SecretVersion : pb::IMessage if (!object.Equals(ReplicationStatus, other.ReplicationStatus)) return false; if (Etag != other.Etag) return false; if (ClientSpecifiedPayloadChecksum != other.ClientSpecifiedPayloadChecksum) return false; + if (!object.Equals(ScheduledDestroyTime, other.ScheduledDestroyTime)) return false; + if (!object.Equals(CustomerManagedEncryption, other.CustomerManagedEncryption)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1023,6 +1187,8 @@ public sealed partial class SecretVersion : pb::IMessage if (replicationStatus_ != null) hash ^= ReplicationStatus.GetHashCode(); if (Etag.Length != 0) hash ^= Etag.GetHashCode(); if (ClientSpecifiedPayloadChecksum != false) hash ^= ClientSpecifiedPayloadChecksum.GetHashCode(); + if (scheduledDestroyTime_ != null) hash ^= ScheduledDestroyTime.GetHashCode(); + if (customerManagedEncryption_ != null) hash ^= CustomerManagedEncryption.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1069,6 +1235,14 @@ public sealed partial class SecretVersion : pb::IMessage output.WriteRawTag(56); output.WriteBool(ClientSpecifiedPayloadChecksum); } + if (scheduledDestroyTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ScheduledDestroyTime); + } + if (customerManagedEncryption_ != null) { + output.WriteRawTag(74); + output.WriteMessage(CustomerManagedEncryption); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1107,6 +1281,14 @@ public sealed partial class SecretVersion : pb::IMessage output.WriteRawTag(56); output.WriteBool(ClientSpecifiedPayloadChecksum); } + if (scheduledDestroyTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ScheduledDestroyTime); + } + if (customerManagedEncryption_ != null) { + output.WriteRawTag(74); + output.WriteMessage(CustomerManagedEncryption); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1138,6 +1320,12 @@ public sealed partial class SecretVersion : pb::IMessage if (ClientSpecifiedPayloadChecksum != false) { size += 1 + 1; } + if (scheduledDestroyTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ScheduledDestroyTime); + } + if (customerManagedEncryption_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerManagedEncryption); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1180,6 +1368,18 @@ public sealed partial class SecretVersion : pb::IMessage if (other.ClientSpecifiedPayloadChecksum != false) { ClientSpecifiedPayloadChecksum = other.ClientSpecifiedPayloadChecksum; } + if (other.scheduledDestroyTime_ != null) { + if (scheduledDestroyTime_ == null) { + ScheduledDestroyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ScheduledDestroyTime.MergeFrom(other.ScheduledDestroyTime); + } + if (other.customerManagedEncryption_ != null) { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1.CustomerManagedEncryptionStatus(); + } + CustomerManagedEncryption.MergeFrom(other.CustomerManagedEncryption); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1232,6 +1432,20 @@ public sealed partial class SecretVersion : pb::IMessage ClientSpecifiedPayloadChecksum = input.ReadBool(); break; } + case 66: { + if (scheduledDestroyTime_ == null) { + ScheduledDestroyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ScheduledDestroyTime); + break; + } + case 74: { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1.CustomerManagedEncryptionStatus(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } } } #endif @@ -1284,6 +1498,20 @@ public sealed partial class SecretVersion : pb::IMessage ClientSpecifiedPayloadChecksum = input.ReadBool(); break; } + case 66: { + if (scheduledDestroyTime_ == null) { + ScheduledDestroyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ScheduledDestroyTime); + break; + } + case 74: { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1.CustomerManagedEncryptionStatus(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } } } } @@ -3741,8 +3969,9 @@ public sealed partial class Topic : pb::IMessage /// /// Required. The resource name of the Pub/Sub topic that will be published to, /// in the following format: `projects/*/topics/*`. For publication to succeed, - /// the Secret Manager P4SA must have `pubsub.publisher` permissions on the - /// topic. + /// the Secret Manager service agent must have the `pubsub.topic.publish` + /// permission on the topic. The Pub/Sub Publisher role + /// (`roles/pubsub.publisher`) includes this permission. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ResourcesResourceNames.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ResourcesResourceNames.g.cs index ef99496493d7..dcc4ef9d46ed 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ResourcesResourceNames.g.cs +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ResourcesResourceNames.g.cs @@ -32,10 +32,17 @@ public enum ResourceNameType /// A resource name with pattern projects/{project}/secrets/{secret}. ProjectSecret = 1, + + /// + /// A resource name with pattern projects/{project}/locations/{location}/secrets/{secret}. + /// + ProjectLocationSecret = 2, } private static gax::PathTemplate s_projectSecret = new gax::PathTemplate("projects/{project}/secrets/{secret}"); + private static gax::PathTemplate s_projectLocationSecret = new gax::PathTemplate("projects/{project}/locations/{location}/secrets/{secret}"); + /// Creates a containing an unparsed resource name. /// The unparsed resource name. Must not be null. /// @@ -53,6 +60,17 @@ public enum ResourceNameType public static SecretName FromProjectSecret(string projectId, string secretId) => new SecretName(ResourceNameType.ProjectSecret, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), secretId: gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId))); + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/secrets/{secret}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Secret ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static SecretName FromProjectLocationSecret(string projectId, string locationId, string secretId) => + new SecretName(ResourceNameType.ProjectLocationSecret, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), secretId: gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId))); + /// /// Formats the IDs into the string representation of this with pattern /// projects/{project}/secrets/{secret}. @@ -78,11 +96,26 @@ public enum ResourceNameType public static string FormatProjectSecret(string projectId, string secretId) => s_projectSecret.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId))); + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/secrets/{secret}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Secret ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/secrets/{secret}. + /// + public static string FormatProjectLocationSecret(string projectId, string locationId, string secretId) => + s_projectLocationSecret.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId))); + /// Parses the given resource name string into a new instance. /// /// To parse successfully, the resource name must be formatted as one of the following: /// /// projects/{project}/secrets/{secret} + /// projects/{project}/locations/{location}/secrets/{secret} /// /// /// The resource name in string form. Must not be null. @@ -97,6 +130,7 @@ public enum ResourceNameType /// To parse successfully, the resource name must be formatted as one of the following: /// /// projects/{project}/secrets/{secret} + /// projects/{project}/locations/{location}/secrets/{secret} /// /// Or may be in any format if is true. /// @@ -117,6 +151,7 @@ public enum ResourceNameType /// To parse successfully, the resource name must be formatted as one of the following: /// /// projects/{project}/secrets/{secret} + /// projects/{project}/locations/{location}/secrets/{secret} /// /// /// The resource name in string form. Must not be null. @@ -134,6 +169,7 @@ public enum ResourceNameType /// To parse successfully, the resource name must be formatted as one of the following: /// /// projects/{project}/secrets/{secret} + /// projects/{project}/locations/{location}/secrets/{secret} /// /// Or may be in any format if is true. /// @@ -156,6 +192,11 @@ public static bool TryParse(string secretName, bool allowUnparsed, out SecretNam result = FromProjectSecret(resourceName[0], resourceName[1]); return true; } + if (s_projectLocationSecret.TryParseName(secretName, out resourceName)) + { + result = FromProjectLocationSecret(resourceName[0], resourceName[1], resourceName[2]); + return true; + } if (allowUnparsed) { if (gax::UnparsedResourceName.TryParse(secretName, out gax::UnparsedResourceName unparsedResourceName)) @@ -168,10 +209,11 @@ public static bool TryParse(string secretName, bool allowUnparsed, out SecretNam return false; } - private SecretName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string projectId = null, string secretId = null) + private SecretName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string locationId = null, string projectId = null, string secretId = null) { Type = type; UnparsedResource = unparsedResourceName; + LocationId = locationId; ProjectId = projectId; SecretId = secretId; } @@ -196,12 +238,17 @@ public SecretName(string projectId, string secretId) : this(ResourceNameType.Pro public gax::UnparsedResourceName UnparsedResource { get; } /// - /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// The Location ID. May be null, depending on which resource name is contained by this instance. + /// + public string LocationId { get; } + + /// + /// The Project ID. May be null, depending on which resource name is contained by this instance. /// public string ProjectId { get; } /// - /// The Secret ID. Will not be null, unless this instance contains an unparsed resource name. + /// The Secret ID. May be null, depending on which resource name is contained by this instance. /// public string SecretId { get; } @@ -216,6 +263,7 @@ public override string ToString() { case ResourceNameType.Unparsed: return UnparsedResource.ToString(); case ResourceNameType.ProjectSecret: return s_projectSecret.Expand(ProjectId, SecretId); + case ResourceNameType.ProjectLocationSecret: return s_projectLocationSecret.Expand(ProjectId, LocationId, SecretId); default: throw new sys::InvalidOperationException("Unrecognized resource-type."); } } @@ -261,10 +309,18 @@ public enum ResourceNameType /// A resource name with pattern projects/{project}/secrets/{secret}/versions/{secret_version}. /// ProjectSecretSecretVersion = 1, + + /// + /// A resource name with pattern + /// projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}. + /// + ProjectLocationSecretSecretVersion = 2, } private static gax::PathTemplate s_projectSecretSecretVersion = new gax::PathTemplate("projects/{project}/secrets/{secret}/versions/{secret_version}"); + private static gax::PathTemplate s_projectLocationSecretSecretVersion = new gax::PathTemplate("projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}"); + /// Creates a containing an unparsed resource name. /// The unparsed resource name. Must not be null. /// @@ -285,6 +341,18 @@ public enum ResourceNameType public static SecretVersionName FromProjectSecretSecretVersion(string projectId, string secretId, string secretVersionId) => new SecretVersionName(ResourceNameType.ProjectSecretSecretVersion, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), secretId: gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)), secretVersionId: gax::GaxPreconditions.CheckNotNullOrEmpty(secretVersionId, nameof(secretVersionId))); + /// + /// Creates a with the pattern + /// projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Secret ID. Must not be null or empty. + /// The SecretVersion ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static SecretVersionName FromProjectLocationSecretSecretVersion(string projectId, string locationId, string secretId, string secretVersionId) => + new SecretVersionName(ResourceNameType.ProjectLocationSecretSecretVersion, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), locationId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), secretId: gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)), secretVersionId: gax::GaxPreconditions.CheckNotNullOrEmpty(secretVersionId, nameof(secretVersionId))); + /// /// Formats the IDs into the string representation of this with pattern /// projects/{project}/secrets/{secret}/versions/{secret_version}. @@ -313,6 +381,21 @@ public enum ResourceNameType public static string FormatProjectSecretSecretVersion(string projectId, string secretId, string secretVersionId) => s_projectSecretSecretVersion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)), gax::GaxPreconditions.CheckNotNullOrEmpty(secretVersionId, nameof(secretVersionId))); + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}. + /// + /// The Project ID. Must not be null or empty. + /// The Location ID. Must not be null or empty. + /// The Secret ID. Must not be null or empty. + /// The SecretVersion ID. Must not be null or empty. + /// + /// The string representation of this with pattern + /// projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}. + /// + public static string FormatProjectLocationSecretSecretVersion(string projectId, string locationId, string secretId, string secretVersionId) => + s_projectLocationSecretSecretVersion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(locationId, nameof(locationId)), gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)), gax::GaxPreconditions.CheckNotNullOrEmpty(secretVersionId, nameof(secretVersionId))); + /// /// Parses the given resource name string into a new instance. /// @@ -322,6 +405,11 @@ public enum ResourceNameType /// /// projects/{project}/secrets/{secret}/versions/{secret_version} /// + /// + /// + /// projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version} + /// + /// /// /// /// The resource name in string form. Must not be null. @@ -338,6 +426,11 @@ public enum ResourceNameType /// /// projects/{project}/secrets/{secret}/versions/{secret_version} /// + /// + /// + /// projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version} + /// + /// /// /// Or may be in any format if is true. /// @@ -360,6 +453,11 @@ public enum ResourceNameType /// /// projects/{project}/secrets/{secret}/versions/{secret_version} /// + /// + /// + /// projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version} + /// + /// /// /// /// The resource name in string form. Must not be null. @@ -380,6 +478,11 @@ public enum ResourceNameType /// /// projects/{project}/secrets/{secret}/versions/{secret_version} /// + /// + /// + /// projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version} + /// + /// /// /// Or may be in any format if is true. /// @@ -402,6 +505,11 @@ public static bool TryParse(string secretVersionName, bool allowUnparsed, out Se result = FromProjectSecretSecretVersion(resourceName[0], resourceName[1], resourceName[2]); return true; } + if (s_projectLocationSecretSecretVersion.TryParseName(secretVersionName, out resourceName)) + { + result = FromProjectLocationSecretSecretVersion(resourceName[0], resourceName[1], resourceName[2], resourceName[3]); + return true; + } if (allowUnparsed) { if (gax::UnparsedResourceName.TryParse(secretVersionName, out gax::UnparsedResourceName unparsedResourceName)) @@ -414,10 +522,11 @@ public static bool TryParse(string secretVersionName, bool allowUnparsed, out Se return false; } - private SecretVersionName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string projectId = null, string secretId = null, string secretVersionId = null) + private SecretVersionName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string locationId = null, string projectId = null, string secretId = null, string secretVersionId = null) { Type = type; UnparsedResource = unparsedResourceName; + LocationId = locationId; ProjectId = projectId; SecretId = secretId; SecretVersionId = secretVersionId; @@ -444,18 +553,23 @@ public SecretVersionName(string projectId, string secretId, string secretVersion public gax::UnparsedResourceName UnparsedResource { get; } /// - /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// The Location ID. May be null, depending on which resource name is contained by this instance. + /// + public string LocationId { get; } + + /// + /// The Project ID. May be null, depending on which resource name is contained by this instance. /// public string ProjectId { get; } /// - /// The Secret ID. Will not be null, unless this instance contains an unparsed resource name. + /// The Secret ID. May be null, depending on which resource name is contained by this instance. /// public string SecretId { get; } /// - /// The SecretVersion ID. Will not be null, unless this instance contains an unparsed resource - /// name. + /// The SecretVersion ID. May be null, depending on which resource name is contained by this + /// instance. /// public string SecretVersionId { get; } @@ -470,6 +584,7 @@ public override string ToString() { case ResourceNameType.Unparsed: return UnparsedResource.ToString(); case ResourceNameType.ProjectSecretSecretVersion: return s_projectSecretSecretVersion.Expand(ProjectId, SecretId, SecretVersionId); + case ResourceNameType.ProjectLocationSecretSecretVersion: return s_projectLocationSecretSecretVersion.Expand(ProjectId, LocationId, SecretId, SecretVersionId); default: throw new sys::InvalidOperationException("Unrecognized resource-type."); } } diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/SecretManagerServiceClient.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/SecretManagerServiceClient.g.cs index 15323dc8be18..041c4aa5a0fa 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/SecretManagerServiceClient.g.cs +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/SecretManagerServiceClient.g.cs @@ -19,6 +19,7 @@ using gaxgrpc = Google.Api.Gax.Grpc; using gagr = Google.Api.Gax.ResourceNames; using gciv = Google.Cloud.Iam.V1; +using gcl = Google.Cloud.Location; using proto = Google.Protobuf; using wkt = Google.Protobuf.WellKnownTypes; using grpccore = Grpc.Core; @@ -63,6 +64,7 @@ private SecretManagerServiceSettings(SecretManagerServiceSettings existing) : ba SetIamPolicySettings = existing.SetIamPolicySettings; GetIamPolicySettings = existing.GetIamPolicySettings; TestIamPermissionsSettings = existing.TestIamPermissionsSettings; + LocationsSettings = existing.LocationsSettings; OnCopy(existing); } @@ -265,6 +267,11 @@ private SecretManagerServiceSettings(SecretManagerServiceSettings existing) : ba /// public gaxgrpc::CallSettings TestIamPermissionsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + /// + /// The settings to use for the associated with the client. + /// + public gcl::LocationsSettings LocationsSettings { get; set; } = gcl::LocationsSettings.GetDefault(); + /// Creates a deep clone of this object, with all the same property values. /// A deep clone of this object. public SecretManagerServiceSettings Clone() => new SecretManagerServiceSettings(this); @@ -415,6 +422,9 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// The underlying gRPC SecretManagerService client public virtual SecretManagerService.SecretManagerServiceClient GrpcClient => throw new sys::NotImplementedException(); + /// The associated with this client. + public virtual gcl::LocationsClient LocationsClient => throw new sys::NotImplementedException(); + /// /// Lists [Secrets][google.cloud.secretmanager.v1.Secret]. /// @@ -438,8 +448,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// /// Required. The resource name of the project associated with the - /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format - /// `projects/*`. + /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*` /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -464,8 +474,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// /// Required. The resource name of the project associated with the - /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format - /// `projects/*`. + /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*` /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -490,8 +500,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// /// Required. The resource name of the project associated with the - /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format - /// `projects/*`. + /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*` /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -516,8 +526,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// /// Required. The resource name of the project associated with the - /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format - /// `projects/*`. + /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*` /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -537,6 +547,58 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo PageSize = pageSize ?? 0, }, callSettings); + /// + /// Lists [Secrets][google.cloud.secretmanager.v1.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListSecrets(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListSecrets(new ListSecretsRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + + /// + /// Lists [Secrets][google.cloud.secretmanager.v1.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*` + /// + /// + /// The token returned from the previous request. A value of null or an empty string retrieves the first + /// page. + /// + /// + /// The size of page to request. The response will not be larger than this, but may be smaller. A value of + /// null or 0 uses a server-defined page size. + /// + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListSecretsAsync(gagr::LocationName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => + ListSecretsAsync(new ListSecretsRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + PageToken = pageToken ?? "", + PageSize = pageSize ?? 0, + }, callSettings); + /// /// Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. @@ -573,7 +635,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// /// Required. The resource name of the project to associate with the - /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`. + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. /// /// /// Required. This must be unique within the project. @@ -602,7 +665,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// /// Required. The resource name of the project to associate with the - /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`. + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. /// /// /// Required. This must be unique within the project. @@ -631,7 +695,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// /// Required. The resource name of the project to associate with the - /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`. + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. /// /// /// Required. This must be unique within the project. @@ -655,7 +720,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// /// Required. The resource name of the project to associate with the - /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`. + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. /// /// /// Required. This must be unique within the project. @@ -684,7 +750,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// /// Required. The resource name of the project to associate with the - /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`. + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. /// /// /// Required. This must be unique within the project. @@ -713,7 +780,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// /// Required. The resource name of the project to associate with the - /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`. + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. /// /// /// Required. This must be unique within the project. @@ -731,6 +799,91 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo public virtual stt::Task CreateSecretAsync(gagr::ProjectName parent, string secretId, Secret secret, st::CancellationToken cancellationToken) => CreateSecretAsync(parent, secretId, secret, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. + /// + /// + /// Required. This must be unique within the project. + /// + /// A secret ID is a string with a maximum length of 255 characters and can + /// contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and + /// underscore (`_`) characters. + /// + /// + /// Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial + /// field values. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Secret CreateSecret(gagr::LocationName parent, string secretId, Secret secret, gaxgrpc::CallSettings callSettings = null) => + CreateSecret(new CreateSecretRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + SecretId = gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)), + Secret = gax::GaxPreconditions.CheckNotNull(secret, nameof(secret)), + }, callSettings); + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. + /// + /// + /// Required. This must be unique within the project. + /// + /// A secret ID is a string with a maximum length of 255 characters and can + /// contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and + /// underscore (`_`) characters. + /// + /// + /// Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial + /// field values. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateSecretAsync(gagr::LocationName parent, string secretId, Secret secret, gaxgrpc::CallSettings callSettings = null) => + CreateSecretAsync(new CreateSecretRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + SecretId = gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)), + Secret = gax::GaxPreconditions.CheckNotNull(secret, nameof(secret)), + }, callSettings); + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. + /// + /// + /// Required. This must be unique within the project. + /// + /// A secret ID is a string with a maximum length of 255 characters and can + /// contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and + /// underscore (`_`) characters. + /// + /// + /// Required. A [Secret][google.cloud.secretmanager.v1.Secret] with initial + /// field values. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateSecretAsync(gagr::LocationName parent, string secretId, Secret secret, st::CancellationToken cancellationToken) => + CreateSecretAsync(parent, secretId, secret, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + /// /// Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] /// containing secret data and attaches it to an existing @@ -773,7 +926,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret] to associate with the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*`. + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// /// Required. The secret payload of the @@ -797,7 +950,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret] to associate with the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*`. + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// /// Required. The secret payload of the @@ -821,7 +974,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret] to associate with the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*`. + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// /// Required. The secret payload of the @@ -841,7 +994,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret] to associate with the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*`. + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// /// Required. The secret payload of the @@ -865,7 +1018,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret] to associate with the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*`. + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// /// Required. The secret payload of the @@ -889,7 +1042,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret] to associate with the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*`. + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// /// Required. The secret payload of the @@ -933,7 +1086,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret], in the format - /// `projects/*/secrets/*`. + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -949,7 +1102,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret], in the format - /// `projects/*/secrets/*`. + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -965,7 +1118,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret], in the format - /// `projects/*/secrets/*`. + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -978,7 +1131,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret], in the format - /// `projects/*/secrets/*`. + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -994,7 +1147,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret], in the format - /// `projects/*/secrets/*`. + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1010,7 +1163,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret], in the format - /// `projects/*/secrets/*`. + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1248,7 +1401,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret] associated with the /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in - /// the format `projects/*/secrets/*`. + /// the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -1276,7 +1429,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret] associated with the /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in - /// the format `projects/*/secrets/*`. + /// the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -1304,7 +1457,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret] associated with the /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in - /// the format `projects/*/secrets/*`. + /// the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -1332,7 +1485,7 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret] associated with the /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] to list, in - /// the format `projects/*/secrets/*`. + /// the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// /// /// The token returned from the previous request. A value of null or an empty string retrieves the first @@ -1401,10 +1554,13 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1424,10 +1580,13 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1447,10 +1606,13 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1467,10 +1629,13 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1490,10 +1655,13 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1513,10 +1681,13 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1572,10 +1743,13 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1595,10 +1769,13 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1618,10 +1795,13 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1638,10 +1818,13 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1661,10 +1844,13 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1684,10 +1870,13 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1743,7 +1932,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1763,7 +1953,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1783,7 +1974,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1800,7 +1992,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1820,7 +2013,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1840,7 +2034,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1896,7 +2091,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1916,7 +2112,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1936,7 +2133,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -1953,7 +2151,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -1973,7 +2172,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -1993,7 +2193,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -2053,7 +2254,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -2074,7 +2276,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -2095,7 +2298,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -2113,7 +2317,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// If not null, applies overrides to this RPC call. /// The RPC response. @@ -2134,7 +2339,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// If not null, applies overrides to this RPC call. /// A Task containing the RPC response. @@ -2155,7 +2361,8 @@ internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvo /// /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// /// A to use for this RPC. /// A Task containing the RPC response. @@ -2341,6 +2548,7 @@ public SecretManagerServiceClientImpl(SecretManagerService.SecretManagerServiceC Settings = effectiveSettings, Logger = logger, }); + LocationsClient = new gcl::LocationsClientImpl(grpcClient.CreateLocationsClient(), effectiveSettings.LocationsSettings, logger); _callListSecrets = clientHelper.BuildApiCall("ListSecrets", grpcClient.ListSecretsAsync, grpcClient.ListSecrets, effectiveSettings.ListSecretsSettings).WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callListSecrets); Modify_ListSecretsApiCall(ref _callListSecrets); @@ -2426,6 +2634,9 @@ public SecretManagerServiceClientImpl(SecretManagerService.SecretManagerServiceC /// The underlying gRPC SecretManagerService client public override SecretManagerService.SecretManagerServiceClient GrpcClient { get; } + /// The associated with this client. + public override gcl::LocationsClient LocationsClient { get; } + partial void Modify_ListSecretsRequest(ref ListSecretsRequest request, ref gaxgrpc::CallSettings settings); partial void Modify_CreateSecretRequest(ref CreateSecretRequest request, ref gaxgrpc::CallSettings settings); @@ -2918,4 +3129,20 @@ public partial class ListSecretVersionsResponse : gaxgrpc::IPageResponse GetEnumerator(); } + + public static partial class SecretManagerService + { + public partial class SecretManagerServiceClient + { + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// + /// A new for the same target as this client. + /// + public virtual gcl::Locations.LocationsClient CreateLocationsClient() => + new gcl::Locations.LocationsClient(CallInvoker); + } + } } diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Service.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Service.g.cs index d272ca6671b7..6ef2e993850c 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Service.g.cs +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/Service.g.cs @@ -32,116 +32,137 @@ public static partial class ServiceReflection { "c291cmNlcy5wcm90bxoeZ29vZ2xlL2lhbS92MS9pYW1fcG9saWN5LnByb3Rv", "Ghpnb29nbGUvaWFtL3YxL3BvbGljeS5wcm90bxobZ29vZ2xlL3Byb3RvYnVm", "L2VtcHR5LnByb3RvGiBnb29nbGU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MU2VydmljZVByb3RvUAFaR2Nsb3Vk", + "Lmdvb2dsZS5jb20vZ28vc2VjcmV0bWFuYWdlci9hcGl2MS9zZWNyZXRtYW5h", + "Z2VycGI7c2VjcmV0bWFuYWdlcnBi+AEBogIDR1NNqgIdR29vZ2xlLkNsb3Vk", + "LlNlY3JldE1hbmFnZXIuVjHKAh1Hb29nbGVcQ2xvdWRcU2VjcmV0TWFuYWdl", + "clxWMeoCIEdvb2dsZTo6Q2xvdWQ6OlNlY3JldE1hbmFnZXI6OlYxYgZwcm90", + "bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.SecretManager.V1.ResourcesReflection.Descriptor, global::Google.Cloud.Iam.V1.IamPolicyReflection.Descriptor, global::Google.Cloud.Iam.V1.PolicyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -223,8 +244,8 @@ public sealed partial class ListSecretsRequest : pb::IMessage /// Required. The resource name of the project associated with the - /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format - /// `projects/*`. + /// [Secrets][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*` /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -579,7 +600,10 @@ public sealed partial class ListSecretsResponse : pb::IMessage - /// The total number of [Secrets][google.cloud.secretmanager.v1.Secret]. + /// The total number of [Secrets][google.cloud.secretmanager.v1.Secret] but 0 + /// when the + /// [ListSecretsRequest.filter][google.cloud.secretmanager.v1.ListSecretsRequest.filter] + /// field is set. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -817,7 +841,8 @@ public sealed partial class CreateSecretRequest : pb::IMessage /// Required. The resource name of the project to associate with the - /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*`. + /// [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*` + /// or `projects/*/locations/*`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1110,7 +1135,7 @@ public sealed partial class AddSecretVersionRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1358,7 +1383,7 @@ public sealed partial class GetSecretRequest : pb::IMessage /// /// Required. The resource name of the /// [Secret][google.cloud.secretmanager.v1.Secret], in the format - /// `projects/*/secrets/*`. + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1561,7 +1586,7 @@ public sealed partial class ListSecretVersionsRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1917,7 +1942,10 @@ public sealed partial class ListSecretVersionsResponse : pb::IMessage /// The total number of - /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. + /// [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] but 0 when + /// the + /// [ListSecretsRequest.filter][google.cloud.secretmanager.v1.ListSecretsRequest.filter] + /// field is set. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2154,10 +2182,13 @@ public sealed partial class GetSecretVersionRequest : pb::IMessage /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2612,10 +2643,13 @@ public sealed partial class AccessSecretVersionRequest : pb::IMessage /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// - /// `projects/*/secrets/*/versions/latest` is an alias to the most recently - /// created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -2815,7 +2849,8 @@ public sealed partial class AccessSecretVersionResponse : pb::IMessage /// The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format - /// `projects/*/secrets/*/versions/*`. + /// `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3304,7 +3339,8 @@ public sealed partial class DisableSecretVersionRequest : pb::IMessage /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to disable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3546,7 +3582,8 @@ public sealed partial class EnableSecretVersionRequest : pb::IMessage /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -3788,7 +3825,8 @@ public sealed partial class DestroySecretVersionRequest : pb::IMessage /// Required. The resource name of the /// [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to destroy in - /// the format `projects/*/secrets/*/versions/*`. + /// the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceCollectionExtensions.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceCollectionExtensions.g.cs index 4cf57aabf8cf..4e9fa3ecdb6f 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceCollectionExtensions.g.cs +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceCollectionExtensions.g.cs @@ -16,7 +16,9 @@ #pragma warning disable CS8981 using gaxgrpc = Google.Api.Gax.Grpc; +using gcl = Google.Cloud.Location; using gcsv = Google.Cloud.SecretManager.V1; +using proto = Google.Protobuf; using gpr = Google.Protobuf.Reflection; using sys = System; using scg = System.Collections.Generic; diff --git a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceResourceNames.g.cs b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceResourceNames.g.cs index 1ad94f716a26..fdfea3647961 100644 --- a/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceResourceNames.g.cs +++ b/apis/Google.Cloud.SecretManager.V1/Google.Cloud.SecretManager.V1/ServiceResourceNames.g.cs @@ -15,6 +15,7 @@ // Generated code. DO NOT EDIT! #pragma warning disable CS8981 +using gax = Google.Api.Gax; using gagr = Google.Api.Gax.ResourceNames; using gcsv = Google.Cloud.SecretManager.V1; @@ -30,6 +31,39 @@ public partial class ListSecretsRequest get => string.IsNullOrEmpty(Parent) ? null : gagr::ProjectName.Parse(Parent, allowUnparsed: true); set => Parent = value?.ToString() ?? ""; } + + /// + /// -typed view over the resource name property. + /// + public gagr::LocationName ParentAsLocationName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::LocationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public gax::IResourceName ParentAsResourceName + { + get + { + if (string.IsNullOrEmpty(Parent)) + { + return null; + } + if (gagr::ProjectName.TryParse(Parent, out gagr::ProjectName project)) + { + return project; + } + if (gagr::LocationName.TryParse(Parent, out gagr::LocationName location)) + { + return location; + } + return gax::UnparsedResourceName.Parse(Parent); + } + set => Parent = value?.ToString() ?? ""; + } } public partial class CreateSecretRequest @@ -42,6 +76,39 @@ public partial class CreateSecretRequest get => string.IsNullOrEmpty(Parent) ? null : gagr::ProjectName.Parse(Parent, allowUnparsed: true); set => Parent = value?.ToString() ?? ""; } + + /// + /// -typed view over the resource name property. + /// + public gagr::LocationName ParentAsLocationName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::LocationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public gax::IResourceName ParentAsResourceName + { + get + { + if (string.IsNullOrEmpty(Parent)) + { + return null; + } + if (gagr::ProjectName.TryParse(Parent, out gagr::ProjectName project)) + { + return project; + } + if (gagr::LocationName.TryParse(Parent, out gagr::LocationName location)) + { + return location; + } + return gax::UnparsedResourceName.Parse(Parent); + } + set => Parent = value?.ToString() ?? ""; + } } public partial class AddSecretVersionRequest diff --git a/apis/apis.json b/apis/apis.json index be1cd057ccd2..fab21827c16d 100644 --- a/apis/apis.json +++ b/apis/apis.json @@ -4074,7 +4074,8 @@ "type": "grpc", "description": "Recommended Google client library to access the Secret Manager API (v1).", "dependencies": { - "Google.Cloud.Iam.V1": "3.2.0" + "Google.Cloud.Iam.V1": "3.2.0", + "Google.Cloud.Location": "2.2.0" }, "tags": [ "secret",