From a621df065413b1cce8919940357bcff374befc86 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 16 Jan 2025 12:12:04 +0000 Subject: [PATCH] docs: fix link in Markdown comments PiperOrigin-RevId: 716133197 Source-Link: https://github.com/googleapis/googleapis/commit/d27e7a1f954c265f2ce9180b582c12452b67396c Source-Link: https://github.com/googleapis/googleapis-gen/commit/1839ebd97e429df1e93f01bfbbc95ab3d4d74c3c Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjcmV0TWFuYWdlci5WMUJldGEyLy5Pd2xCb3QueWFtbCIsImgiOiIxODM5ZWJkOTdlNDI5ZGYxZTkzZjAxYmZiYmM5NWFiM2Q0ZDc0YzNjIn0= --- ...etManager.V1Beta2.GeneratedSnippets.csproj | 15 + ...lient.AccessSecretVersionAsyncSnippet.g.cs | 44 + ...ecretVersionRequestObjectAsyncSnippet.g.cs | 47 + ...cessSecretVersionRequestObjectSnippet.g.cs | 46 + ...ecretVersionResourceNamesAsyncSnippet.g.cs | 44 + ...cessSecretVersionResourceNamesSnippet.g.cs | 43 + ...viceClient.AccessSecretVersionSnippet.g.cs | 43 + ...ceClient.AddSecretVersionAsyncSnippet.g.cs | 45 + ...ecretVersionRequestObjectAsyncSnippet.g.cs | 48 + ....AddSecretVersionRequestObjectSnippet.g.cs | 47 + ...ecretVersionResourceNamesAsyncSnippet.g.cs | 45 + ....AddSecretVersionResourceNamesSnippet.g.cs | 44 + ...ServiceClient.AddSecretVersionSnippet.g.cs | 44 + ...erviceClient.CreateSecretAsyncSnippet.g.cs | 46 + ...CreateSecretRequestObjectAsyncSnippet.g.cs | 50 + ...ient.CreateSecretRequestObjectSnippet.g.cs | 49 + ...reateSecretResourceNames1AsyncSnippet.g.cs | 47 + ...ent.CreateSecretResourceNames1Snippet.g.cs | 46 + ...reateSecretResourceNames2AsyncSnippet.g.cs | 47 + ...ent.CreateSecretResourceNames2Snippet.g.cs | 46 + ...agerServiceClient.CreateSecretSnippet.g.cs | 45 + ...erviceClient.DeleteSecretAsyncSnippet.g.cs | 44 + ...DeleteSecretRequestObjectAsyncSnippet.g.cs | 48 + ...ient.DeleteSecretRequestObjectSnippet.g.cs | 47 + ...DeleteSecretResourceNamesAsyncSnippet.g.cs | 44 + ...ient.DeleteSecretResourceNamesSnippet.g.cs | 43 + ...agerServiceClient.DeleteSecretSnippet.g.cs | 43 + ...ient.DestroySecretVersionAsyncSnippet.g.cs | 44 + ...ecretVersionRequestObjectAsyncSnippet.g.cs | 48 + ...troySecretVersionRequestObjectSnippet.g.cs | 47 + ...ecretVersionResourceNamesAsyncSnippet.g.cs | 44 + ...troySecretVersionResourceNamesSnippet.g.cs | 43 + ...iceClient.DestroySecretVersionSnippet.g.cs | 43 + ...ient.DisableSecretVersionAsyncSnippet.g.cs | 44 + ...ecretVersionRequestObjectAsyncSnippet.g.cs | 48 + ...ableSecretVersionRequestObjectSnippet.g.cs | 47 + ...ecretVersionResourceNamesAsyncSnippet.g.cs | 44 + ...ableSecretVersionResourceNamesSnippet.g.cs | 43 + ...iceClient.DisableSecretVersionSnippet.g.cs | 43 + ...lient.EnableSecretVersionAsyncSnippet.g.cs | 44 + ...ecretVersionRequestObjectAsyncSnippet.g.cs | 48 + ...ableSecretVersionRequestObjectSnippet.g.cs | 47 + ...ecretVersionResourceNamesAsyncSnippet.g.cs | 44 + ...ableSecretVersionResourceNamesSnippet.g.cs | 43 + ...viceClient.EnableSecretVersionSnippet.g.cs | 43 + ...GetIamPolicyRequestObjectAsyncSnippet.g.cs | 50 + ...ient.GetIamPolicyRequestObjectSnippet.g.cs | 49 + ...erServiceClient.GetSecretAsyncSnippet.g.cs | 44 + ...nt.GetSecretRequestObjectAsyncSnippet.g.cs | 47 + ...eClient.GetSecretRequestObjectSnippet.g.cs | 46 + ...nt.GetSecretResourceNamesAsyncSnippet.g.cs | 44 + ...eClient.GetSecretResourceNamesSnippet.g.cs | 43 + ...ManagerServiceClient.GetSecretSnippet.g.cs | 43 + ...ceClient.GetSecretVersionAsyncSnippet.g.cs | 44 + ...ecretVersionRequestObjectAsyncSnippet.g.cs | 47 + ....GetSecretVersionRequestObjectSnippet.g.cs | 46 + ...ecretVersionResourceNamesAsyncSnippet.g.cs | 44 + ....GetSecretVersionResourceNamesSnippet.g.cs | 43 + ...ServiceClient.GetSecretVersionSnippet.g.cs | 43 + ...Client.ListSecretVersionsAsyncSnippet.g.cs | 79 + ...cretVersionsRequestObjectAsyncSnippet.g.cs | 83 + ...istSecretVersionsRequestObjectSnippet.g.cs | 81 + ...cretVersionsResourceNamesAsyncSnippet.g.cs | 79 + ...istSecretVersionsResourceNamesSnippet.g.cs | 77 + ...rviceClient.ListSecretVersionsSnippet.g.cs | 77 + ...ServiceClient.ListSecretsAsyncSnippet.g.cs | 79 + ....ListSecretsRequestObjectAsyncSnippet.g.cs | 84 + ...lient.ListSecretsRequestObjectSnippet.g.cs | 82 + ...ListSecretsResourceNames1AsyncSnippet.g.cs | 80 + ...ient.ListSecretsResourceNames1Snippet.g.cs | 78 + ...ListSecretsResourceNames2AsyncSnippet.g.cs | 80 + ...ient.ListSecretsResourceNames2Snippet.g.cs | 78 + ...nagerServiceClient.ListSecretsSnippet.g.cs | 77 + ...SetIamPolicyRequestObjectAsyncSnippet.g.cs | 52 + ...ient.SetIamPolicyRequestObjectSnippet.g.cs | 51 + ...mPermissionsRequestObjectAsyncSnippet.g.cs | 50 + ...estIamPermissionsRequestObjectSnippet.g.cs | 49 + ...erviceClient.UpdateSecretAsyncSnippet.g.cs | 46 + ...UpdateSecretRequestObjectAsyncSnippet.g.cs | 49 + ...ient.UpdateSecretRequestObjectSnippet.g.cs | 48 + ...agerServiceClient.UpdateSecretSnippet.g.cs | 45 + ...ta_google.cloud.secretmanager.v1beta2.json | 3993 ++++++++++++++ ...loud.SecretManager.V1Beta2.Snippets.csproj | 15 + .../SecretManagerServiceClientSnippets.g.cs | 1688 ++++++ .../Google.Cloud.SecretManager.V1Beta2.csproj | 49 + .../PackageApiMetadata.g.cs | 53 + .../Resources.g.cs | 4676 +++++++++++++++++ .../ResourcesResourceNames.g.cs | 874 +++ .../SecretManagerServiceClient.g.cs | 3318 ++++++++++++ .../Service.g.cs | 4027 ++++++++++++++ .../ServiceCollectionExtensions.g.cs | 67 + .../ServiceGrpc.g.cs | 1465 ++++++ .../ServiceResourceNames.g.cs | 229 + .../gapic_metadata.json | 108 + 94 files changed, 24706 insertions(+) create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2AsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2Snippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectAsyncSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretSnippet.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/snippet_metadata_google.cloud.secretmanager.v1beta2.json create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.Snippets/Google.Cloud.SecretManager.V1Beta2.Snippets.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.Snippets/SecretManagerServiceClientSnippets.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.csproj create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/PackageApiMetadata.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/Resources.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ResourcesResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/SecretManagerServiceClient.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/Service.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ServiceCollectionExtensions.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ServiceGrpc.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ServiceResourceNames.g.cs create mode 100755 owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/gapic_metadata.json diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets.csproj b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets.csproj new file mode 100755 index 000000000000..a9fff5fa84a0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..45c6676cbfe9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_AccessSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for AccessSecretVersionAsync + /// + /// 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 AccessSecretVersionAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + AccessSecretVersionResponse response = await secretManagerServiceClient.AccessSecretVersionAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_AccessSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..fb800074a7b0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_AccessSecretVersion_async] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for AccessSecretVersionAsync + /// + /// 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 AccessSecretVersionRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + AccessSecretVersionRequest request = new AccessSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + }; + // Make the request + AccessSecretVersionResponse response = await secretManagerServiceClient.AccessSecretVersionAsync(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_AccessSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c7931bb6f726 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_AccessSecretVersion_sync] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for AccessSecretVersion + /// + /// 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 AccessSecretVersionRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + AccessSecretVersionRequest request = new AccessSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + }; + // Make the request + AccessSecretVersionResponse response = secretManagerServiceClient.AccessSecretVersion(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_AccessSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..83e72289e149 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_AccessSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for AccessSecretVersionAsync + /// + /// 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 AccessSecretVersionResourceNamesAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + AccessSecretVersionResponse response = await secretManagerServiceClient.AccessSecretVersionAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_AccessSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..3d37f3dfd987 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_AccessSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for AccessSecretVersion + /// + /// 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 AccessSecretVersionResourceNames() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + AccessSecretVersionResponse response = secretManagerServiceClient.AccessSecretVersion(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_AccessSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..27b1bf816ad8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AccessSecretVersionSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_AccessSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for AccessSecretVersion + /// + /// 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 AccessSecretVersion() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + AccessSecretVersionResponse response = secretManagerServiceClient.AccessSecretVersion(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_AccessSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..a137527bd1db --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_AddSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for AddSecretVersionAsync + /// + /// 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 AddSecretVersionAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/secrets/[SECRET]"; + SecretPayload payload = new SecretPayload(); + // Make the request + SecretVersion response = await secretManagerServiceClient.AddSecretVersionAsync(parent, payload); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_AddSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..14bc9285ec06 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_AddSecretVersion_async] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for AddSecretVersionAsync + /// + /// 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 AddSecretVersionRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + AddSecretVersionRequest request = new AddSecretVersionRequest + { + ParentAsSecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + Payload = new SecretPayload(), + }; + // Make the request + SecretVersion response = await secretManagerServiceClient.AddSecretVersionAsync(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_AddSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..ccc64f815d1b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_AddSecretVersion_sync] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for AddSecretVersion + /// + /// 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 AddSecretVersionRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + AddSecretVersionRequest request = new AddSecretVersionRequest + { + ParentAsSecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + Payload = new SecretPayload(), + }; + // Make the request + SecretVersion response = secretManagerServiceClient.AddSecretVersion(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_AddSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..124583814e5d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_AddSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for AddSecretVersionAsync + /// + /// 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 AddSecretVersionResourceNamesAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretName parent = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + SecretPayload payload = new SecretPayload(); + // Make the request + SecretVersion response = await secretManagerServiceClient.AddSecretVersionAsync(parent, payload); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_AddSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..49d1c590691f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionResourceNamesSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_AddSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for AddSecretVersion + /// + /// 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 AddSecretVersionResourceNames() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretName parent = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + SecretPayload payload = new SecretPayload(); + // Make the request + SecretVersion response = secretManagerServiceClient.AddSecretVersion(parent, payload); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_AddSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..048797512fd9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.AddSecretVersionSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_AddSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for AddSecretVersion + /// + /// 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 AddSecretVersion() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/secrets/[SECRET]"; + SecretPayload payload = new SecretPayload(); + // Make the request + SecretVersion response = secretManagerServiceClient.AddSecretVersion(parent, payload); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_AddSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretAsyncSnippet.g.cs new file mode 100755 index 000000000000..4b9ea658ebd6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_CreateSecret_async_flattened] + using Google.Cloud.SecretManager.V1Beta2; + 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 CreateSecretAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = await secretManagerServiceClient.CreateSecretAsync(parent, secretId, secret); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_CreateSecret_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..4937c9623ff2 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,50 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_CreateSecret_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta2; + 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 CreateSecretRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateSecretRequest request = new CreateSecretRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + SecretId = "", + Secret = new Secret(), + }; + // Make the request + Secret response = await secretManagerServiceClient.CreateSecretAsync(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_CreateSecret_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..8a39e33cb204 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretRequestObjectSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_CreateSecret_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta2; + + 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 CreateSecretRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + CreateSecretRequest request = new CreateSecretRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + SecretId = "", + Secret = new Secret(), + }; + // Make the request + Secret response = secretManagerServiceClient.CreateSecret(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_CreateSecret_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..1beb6f9f5705 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1AsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta2; + 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 CreateSecretResourceNames1Async() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = await secretManagerServiceClient.CreateSecretAsync(parent, secretId, secret); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..1e57f237ff22 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames1Snippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames1] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta2; + + 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 CreateSecretResourceNames1() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = secretManagerServiceClient.CreateSecret(parent, secretId, secret); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..ea41b582e6a7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2AsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta2; + 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_v1beta2_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..8e0f165c7806 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretResourceNames2Snippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames2] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta2; + + 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_v1beta2_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretSnippet.g.cs new file mode 100755 index 000000000000..6c8ae28fe853 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.CreateSecretSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_CreateSecret_sync_flattened] + using Google.Cloud.SecretManager.V1Beta2; + + 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 CreateSecret() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = secretManagerServiceClient.CreateSecret(parent, secretId, secret); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_CreateSecret_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretAsyncSnippet.g.cs new file mode 100755 index 000000000000..29da89b92c51 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DeleteSecret_async_flattened] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DeleteSecretAsync + /// + /// 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 DeleteSecretAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]"; + // Make the request + await secretManagerServiceClient.DeleteSecretAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DeleteSecret_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..5e29207cd6e0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DeleteSecret_async] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DeleteSecretAsync + /// + /// 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 DeleteSecretRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + DeleteSecretRequest request = new DeleteSecretRequest + { + SecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + Etag = "", + }; + // Make the request + await secretManagerServiceClient.DeleteSecretAsync(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DeleteSecret_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..a1706187869e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DeleteSecret_sync] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DeleteSecret + /// + /// 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 DeleteSecretRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + DeleteSecretRequest request = new DeleteSecretRequest + { + SecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + Etag = "", + }; + // Make the request + secretManagerServiceClient.DeleteSecret(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DeleteSecret_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..1a915cb241b8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DeleteSecret_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DeleteSecretAsync + /// + /// 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 DeleteSecretResourceNamesAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretName name = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + // Make the request + await secretManagerServiceClient.DeleteSecretAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DeleteSecret_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..158cfd283926 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DeleteSecret_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DeleteSecret + /// + /// 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 DeleteSecretResourceNames() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretName name = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + // Make the request + secretManagerServiceClient.DeleteSecret(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DeleteSecret_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretSnippet.g.cs new file mode 100755 index 000000000000..d86bc641d40a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DeleteSecretSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DeleteSecret_sync_flattened] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DeleteSecret + /// + /// 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 DeleteSecret() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]"; + // Make the request + secretManagerServiceClient.DeleteSecret(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DeleteSecret_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..2eec770df813 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DestroySecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DestroySecretVersionAsync + /// + /// 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 DestroySecretVersionAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = await secretManagerServiceClient.DestroySecretVersionAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DestroySecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..cb803cd59bf9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DestroySecretVersion_async] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DestroySecretVersionAsync + /// + /// 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 DestroySecretVersionRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + DestroySecretVersionRequest request = new DestroySecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + Etag = "", + }; + // Make the request + SecretVersion response = await secretManagerServiceClient.DestroySecretVersionAsync(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DestroySecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..c4f6d7d20ad4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DestroySecretVersion_sync] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DestroySecretVersion + /// + /// 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 DestroySecretVersionRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + DestroySecretVersionRequest request = new DestroySecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + Etag = "", + }; + // Make the request + SecretVersion response = secretManagerServiceClient.DestroySecretVersion(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DestroySecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..4d5ae852f5d6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DestroySecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DestroySecretVersionAsync + /// + /// 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 DestroySecretVersionResourceNamesAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = await secretManagerServiceClient.DestroySecretVersionAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DestroySecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..847b1f2834c6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DestroySecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DestroySecretVersion + /// + /// 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 DestroySecretVersionResourceNames() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = secretManagerServiceClient.DestroySecretVersion(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DestroySecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionSnippet.g.cs new file mode 100755 index 000000000000..c8e75fd692d1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DestroySecretVersionSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DestroySecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DestroySecretVersion + /// + /// 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 DestroySecretVersion() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = secretManagerServiceClient.DestroySecretVersion(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DestroySecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..c87d99de7199 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DisableSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DisableSecretVersionAsync + /// + /// 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 DisableSecretVersionAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = await secretManagerServiceClient.DisableSecretVersionAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DisableSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..13a4b9e21856 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DisableSecretVersion_async] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DisableSecretVersionAsync + /// + /// 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 DisableSecretVersionRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + DisableSecretVersionRequest request = new DisableSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + Etag = "", + }; + // Make the request + SecretVersion response = await secretManagerServiceClient.DisableSecretVersionAsync(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DisableSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..6f78abfdecea --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DisableSecretVersion_sync] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DisableSecretVersion + /// + /// 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 DisableSecretVersionRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + DisableSecretVersionRequest request = new DisableSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + Etag = "", + }; + // Make the request + SecretVersion response = secretManagerServiceClient.DisableSecretVersion(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DisableSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..296ff3dad57c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DisableSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DisableSecretVersionAsync + /// + /// 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 DisableSecretVersionResourceNamesAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = await secretManagerServiceClient.DisableSecretVersionAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DisableSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..cd8f6adcf7c8 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DisableSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DisableSecretVersion + /// + /// 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 DisableSecretVersionResourceNames() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = secretManagerServiceClient.DisableSecretVersion(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DisableSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..9d71a6643130 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.DisableSecretVersionSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_DisableSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for DisableSecretVersion + /// + /// 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 DisableSecretVersion() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = secretManagerServiceClient.DisableSecretVersion(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_DisableSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..eb091122d29b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_EnableSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for EnableSecretVersionAsync + /// + /// 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 EnableSecretVersionAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = await secretManagerServiceClient.EnableSecretVersionAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_EnableSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..891bfa5fed82 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_EnableSecretVersion_async] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for EnableSecretVersionAsync + /// + /// 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 EnableSecretVersionRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + EnableSecretVersionRequest request = new EnableSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + Etag = "", + }; + // Make the request + SecretVersion response = await secretManagerServiceClient.EnableSecretVersionAsync(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_EnableSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..94fdd7c4d6fa --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionRequestObjectSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_EnableSecretVersion_sync] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for EnableSecretVersion + /// + /// 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 EnableSecretVersionRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + EnableSecretVersionRequest request = new EnableSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + Etag = "", + }; + // Make the request + SecretVersion response = secretManagerServiceClient.EnableSecretVersion(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_EnableSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..725972e006eb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_EnableSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for EnableSecretVersionAsync + /// + /// 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 EnableSecretVersionResourceNamesAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = await secretManagerServiceClient.EnableSecretVersionAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_EnableSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..6afd6bec7f85 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_EnableSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for EnableSecretVersion + /// + /// 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 EnableSecretVersionResourceNames() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = secretManagerServiceClient.EnableSecretVersion(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_EnableSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..c6aa4ea0df3d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.EnableSecretVersionSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_EnableSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for EnableSecretVersion + /// + /// 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 EnableSecretVersion() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = secretManagerServiceClient.EnableSecretVersion(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_EnableSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..5323932777e0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,50 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetIamPolicy_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetIamPolicyAsync + /// + /// 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 GetIamPolicyRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = await secretManagerServiceClient.GetIamPolicyAsync(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetIamPolicy_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..09303a3f77f5 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetIamPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetIamPolicy_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetIamPolicy + /// + /// 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 GetIamPolicyRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = secretManagerServiceClient.GetIamPolicy(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetIamPolicy_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretAsyncSnippet.g.cs new file mode 100755 index 000000000000..d20e75c68e5c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetSecret_async_flattened] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetSecretAsync + /// + /// 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 GetSecretAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]"; + // Make the request + Secret response = await secretManagerServiceClient.GetSecretAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetSecret_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..2213ccfbc8b6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetSecret_async] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetSecretAsync + /// + /// 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 GetSecretRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + GetSecretRequest request = new GetSecretRequest + { + SecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + }; + // Make the request + Secret response = await secretManagerServiceClient.GetSecretAsync(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetSecret_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..33ee69e4341a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetSecret_sync] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetSecret + /// + /// 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 GetSecretRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + GetSecretRequest request = new GetSecretRequest + { + SecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + }; + // Make the request + Secret response = secretManagerServiceClient.GetSecret(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetSecret_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..f16fecab0a3f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetSecret_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetSecretAsync + /// + /// 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 GetSecretResourceNamesAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretName name = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + // Make the request + Secret response = await secretManagerServiceClient.GetSecretAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetSecret_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..8f7179b7339f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetSecret_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetSecret + /// + /// 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 GetSecretResourceNames() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretName name = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + // Make the request + Secret response = secretManagerServiceClient.GetSecret(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetSecret_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretSnippet.g.cs new file mode 100755 index 000000000000..89e89f6496a4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetSecret_sync_flattened] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetSecret + /// + /// 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 GetSecret() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]"; + // Make the request + Secret response = secretManagerServiceClient.GetSecret(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetSecret_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionAsyncSnippet.g.cs new file mode 100755 index 000000000000..418cda2d99ae --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetSecretVersion_async_flattened] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetSecretVersionAsync + /// + /// 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 GetSecretVersionAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = await secretManagerServiceClient.GetSecretVersionAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetSecretVersion_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..172da514a532 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetSecretVersion_async] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetSecretVersionAsync + /// + /// 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 GetSecretVersionRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + GetSecretVersionRequest request = new GetSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + }; + // Make the request + SecretVersion response = await secretManagerServiceClient.GetSecretVersionAsync(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetSecretVersion_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..cec8a7362515 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetSecretVersion_sync] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetSecretVersion + /// + /// 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 GetSecretVersionRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + GetSecretVersionRequest request = new GetSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + }; + // Make the request + SecretVersion response = secretManagerServiceClient.GetSecretVersion(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetSecretVersion_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..f1b0f8d565e7 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetSecretVersion_async_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetSecretVersionAsync + /// + /// 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 GetSecretVersionResourceNamesAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = await secretManagerServiceClient.GetSecretVersionAsync(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetSecretVersion_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..3aff4fa64e39 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetSecretVersion_sync_flattened_resourceNames] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetSecretVersion + /// + /// 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 GetSecretVersionResourceNames() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = secretManagerServiceClient.GetSecretVersion(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetSecretVersion_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionSnippet.g.cs new file mode 100755 index 000000000000..76f1c8e885b6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.GetSecretVersionSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_GetSecretVersion_sync_flattened] + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for GetSecretVersion + /// + /// 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 GetSecretVersion() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = secretManagerServiceClient.GetSecretVersion(name); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_GetSecretVersion_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsAsyncSnippet.g.cs new file mode 100755 index 000000000000..a023c2bc172a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecretVersions_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecretVersionsAsync + /// + /// 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 ListSecretVersionsAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/secrets/[SECRET]"; + // Make the request + PagedAsyncEnumerable response = secretManagerServiceClient.ListSecretVersionsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecretVersion 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((ListSecretVersionsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecretVersion 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 (SecretVersion 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_v1beta2_generated_SecretManagerService_ListSecretVersions_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..a41c974418b9 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,83 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecretVersions_async] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecretVersionsAsync + /// + /// 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 ListSecretVersionsRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + ListSecretVersionsRequest request = new ListSecretVersionsRequest + { + ParentAsSecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + Filter = "", + }; + // Make the request + PagedAsyncEnumerable response = secretManagerServiceClient.ListSecretVersionsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecretVersion 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((ListSecretVersionsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecretVersion 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 (SecretVersion 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_v1beta2_generated_SecretManagerService_ListSecretVersions_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..edde4086c96c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsRequestObjectSnippet.g.cs @@ -0,0 +1,81 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecretVersions_sync] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta2; + using System; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecretVersions + /// + /// 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 ListSecretVersionsRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + ListSecretVersionsRequest request = new ListSecretVersionsRequest + { + ParentAsSecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + Filter = "", + }; + // Make the request + PagedEnumerable response = secretManagerServiceClient.ListSecretVersions(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecretVersion 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 (ListSecretVersionsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecretVersion 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 (SecretVersion 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_v1beta2_generated_SecretManagerService_ListSecretVersions_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesAsyncSnippet.g.cs new file mode 100755 index 000000000000..7c18e6ced8c1 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecretVersions_async_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta2; + using System; + using System.Linq; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecretVersionsAsync + /// + /// 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 ListSecretVersionsResourceNamesAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretName parent = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + // Make the request + PagedAsyncEnumerable response = secretManagerServiceClient.ListSecretVersionsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecretVersion 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((ListSecretVersionsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecretVersion 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 (SecretVersion 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_v1beta2_generated_SecretManagerService_ListSecretVersions_async_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesSnippet.g.cs new file mode 100755 index 000000000000..18a8d9fe8947 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsResourceNamesSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecretVersions_sync_flattened_resourceNames] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta2; + using System; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecretVersions + /// + /// 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 ListSecretVersionsResourceNames() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretName parent = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + // Make the request + PagedEnumerable response = secretManagerServiceClient.ListSecretVersions(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecretVersion 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 (ListSecretVersionsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecretVersion 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 (SecretVersion 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_v1beta2_generated_SecretManagerService_ListSecretVersions_sync_flattened_resourceNames] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsSnippet.g.cs new file mode 100755 index 000000000000..8938cf15be2f --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretVersionsSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecretVersions_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta2; + using System; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecretVersions + /// + /// 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 ListSecretVersions() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/secrets/[SECRET]"; + // Make the request + PagedEnumerable response = secretManagerServiceClient.ListSecretVersions(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecretVersion 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 (ListSecretVersionsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecretVersion 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 (SecretVersion 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_v1beta2_generated_SecretManagerService_ListSecretVersions_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsAsyncSnippet.g.cs new file mode 100755 index 000000000000..74097fc8ef77 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsAsyncSnippet.g.cs @@ -0,0 +1,79 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecrets_async_flattened] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta2; + 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 ListSecretsAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // 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_v1beta2_generated_SecretManagerService_ListSecrets_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..a2a7491b06bc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,84 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecrets_async] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta2; + 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 ListSecretsRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + ListSecretsRequest request = new ListSecretsRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + Filter = "", + }; + // Make the request + PagedAsyncEnumerable response = secretManagerServiceClient.ListSecretsAsync(request); + + // 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_v1beta2_generated_SecretManagerService_ListSecrets_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..784ae2dcc680 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsRequestObjectSnippet.g.cs @@ -0,0 +1,82 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecrets_sync] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta2; + 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 ListSecretsRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + ListSecretsRequest request = new ListSecretsRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + Filter = "", + }; + // Make the request + PagedEnumerable response = secretManagerServiceClient.ListSecrets(request); + + // 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_v1beta2_generated_SecretManagerService_ListSecrets_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1AsyncSnippet.g.cs new file mode 100755 index 000000000000..1287e61bbb33 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1AsyncSnippet.g.cs @@ -0,0 +1,80 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta2; + 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 ListSecretsResourceNames1Async() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // 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_v1beta2_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1Snippet.g.cs new file mode 100755 index 000000000000..493ba5822097 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames1Snippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames1] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta2; + 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 ListSecretsResourceNames1() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // 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_v1beta2_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames1] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2AsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2AsyncSnippet.g.cs new file mode 100755 index 000000000000..30a5a1b7174d --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2AsyncSnippet.g.cs @@ -0,0 +1,80 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta2; + 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_v1beta2_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2Snippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2Snippet.g.cs new file mode 100755 index 000000000000..109bbde8a82e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsResourceNames2Snippet.g.cs @@ -0,0 +1,78 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames2] + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.SecretManager.V1Beta2; + 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_v1beta2_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames2] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsSnippet.g.cs new file mode 100755 index 000000000000..487b07768355 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.ListSecretsSnippet.g.cs @@ -0,0 +1,77 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_ListSecrets_sync_flattened] + using Google.Api.Gax; + using Google.Cloud.SecretManager.V1Beta2; + 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 ListSecrets() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // 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_v1beta2_generated_SecretManagerService_ListSecrets_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..e7dc9d2e00fb --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,52 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_SetIamPolicy_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1Beta2; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for SetIamPolicyAsync + /// + /// 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 SetIamPolicyRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SetIamPolicyRequest request = new SetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Policy = new Policy(), + UpdateMask = new FieldMask(), + }; + // Make the request + Policy response = await secretManagerServiceClient.SetIamPolicyAsync(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_SetIamPolicy_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..2b73f335d59b --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.SetIamPolicyRequestObjectSnippet.g.cs @@ -0,0 +1,51 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_SetIamPolicy_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1Beta2; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for SetIamPolicy + /// + /// 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 SetIamPolicyRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SetIamPolicyRequest request = new SetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Policy = new Policy(), + UpdateMask = new FieldMask(), + }; + // Make the request + Policy response = secretManagerServiceClient.SetIamPolicy(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_SetIamPolicy_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..6f5565ecfecf --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,50 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_TestIamPermissions_async] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1Beta2; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for TestIamPermissionsAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task TestIamPermissionsRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = await secretManagerServiceClient.TestIamPermissionsAsync(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_TestIamPermissions_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..98385692e324 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.TestIamPermissionsRequestObjectSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_TestIamPermissions_sync] + using Google.Api.Gax; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1Beta2; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for TestIamPermissions + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void TestIamPermissionsRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = secretManagerServiceClient.TestIamPermissions(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_TestIamPermissions_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretAsyncSnippet.g.cs new file mode 100755 index 000000000000..16229071b09c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_UpdateSecret_async_flattened] + using Google.Cloud.SecretManager.V1Beta2; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for UpdateSecretAsync + /// + /// 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 UpdateSecretAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + Secret secret = new Secret(); + FieldMask updateMask = new FieldMask(); + // Make the request + Secret response = await secretManagerServiceClient.UpdateSecretAsync(secret, updateMask); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_UpdateSecret_async_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectAsyncSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectAsyncSnippet.g.cs new file mode 100755 index 000000000000..0edf9f03b0de --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_UpdateSecret_async] + using Google.Cloud.SecretManager.V1Beta2; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for UpdateSecretAsync + /// + /// 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 UpdateSecretRequestObjectAsync() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateSecretRequest request = new UpdateSecretRequest + { + Secret = new Secret(), + UpdateMask = new FieldMask(), + }; + // Make the request + Secret response = await secretManagerServiceClient.UpdateSecretAsync(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_UpdateSecret_async] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectSnippet.g.cs new file mode 100755 index 000000000000..52e73859ab52 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_UpdateSecret_sync] + using Google.Cloud.SecretManager.V1Beta2; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for UpdateSecret + /// + /// 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 UpdateSecretRequestObject() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + UpdateSecretRequest request = new UpdateSecretRequest + { + Secret = new Secret(), + UpdateMask = new FieldMask(), + }; + // Make the request + Secret response = secretManagerServiceClient.UpdateSecret(request); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_UpdateSecret_sync] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretSnippet.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretSnippet.g.cs new file mode 100755 index 000000000000..4f711167a7e4 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/SecretManagerServiceClient.UpdateSecretSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 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_v1beta2_generated_SecretManagerService_UpdateSecret_sync_flattened] + using Google.Cloud.SecretManager.V1Beta2; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedSecretManagerServiceClientSnippets + { + /// Snippet for UpdateSecret + /// + /// 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 UpdateSecret() + { + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + Secret secret = new Secret(); + FieldMask updateMask = new FieldMask(); + // Make the request + Secret response = secretManagerServiceClient.UpdateSecret(secret, updateMask); + } + } + // [END secretmanager_v1beta2_generated_SecretManagerService_UpdateSecret_sync_flattened] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/snippet_metadata_google.cloud.secretmanager.v1beta2.json b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/snippet_metadata_google.cloud.secretmanager.v1beta2.json new file mode 100755 index 000000000000..143e8a1aacdc --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.GeneratedSnippets/snippet_metadata_google.cloud.secretmanager.v1beta2.json @@ -0,0 +1,3993 @@ +{ + "clientLibrary": { + "name": "Google.Cloud.SecretManager.V1Beta2", + "language": "C_SHARP", + "apis": [ + { + "id": "google.cloud.secretmanager.v1beta2", + "version": "v1beta2" + } + ] + }, + "snippets": [ + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecrets_sync", + "title": "ListSecretsRequestObject", + "description": "Snippet for ListSecrets", + "file": "SecretManagerServiceClient.ListSecretsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecrets", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.ListSecrets", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 80, + "type": "FULL" + }, + { + "start": 37, + "end": 78, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecrets_async", + "title": "ListSecretsRequestObjectAsync", + "description": "Snippet for ListSecretsAsync", + "file": "SecretManagerServiceClient.ListSecretsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecretsAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.ListSecretsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 82, + "type": "FULL" + }, + { + "start": 39, + "end": 80, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecrets_sync_flattened", + "title": "ListSecrets", + "description": "Snippet for ListSecrets", + "file": "SecretManagerServiceClient.ListSecretsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecrets", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.ListSecrets", + "parameters": [ + { + "type": "System.String", + "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.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecrets_async_flattened", + "title": "ListSecretsAsync", + "description": "Snippet for ListSecretsAsync", + "file": "SecretManagerServiceClient.ListSecretsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecretsAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.ListSecretsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "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.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecrets_sync_flattened_resourceNames1", + "title": "ListSecretsResourceNames1", + "description": "Snippet for ListSecrets", + "file": "SecretManagerServiceClient.ListSecretsResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecrets", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.ListSecrets", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "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.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecrets_async_flattened_resourceNames1", + "title": "ListSecretsResourceNames1Async", + "description": "Snippet for ListSecretsAsync", + "file": "SecretManagerServiceClient.ListSecretsResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecretsAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.ListSecretsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "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.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_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.V1Beta2.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.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 76, + "type": "FULL" + }, + { + "start": 37, + "end": 74, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_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.V1Beta2.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.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecrets", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 78, + "type": "FULL" + }, + { + "start": 39, + "end": 76, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_CreateSecret_sync", + "title": "CreateSecretRequestObject", + "description": "Snippet for CreateSecret", + "file": "SecretManagerServiceClient.CreateSecretRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecret", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.CreateSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.CreateSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_CreateSecret_async", + "title": "CreateSecretRequestObjectAsync", + "description": "Snippet for CreateSecretAsync", + "file": "SecretManagerServiceClient.CreateSecretRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.CreateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.CreateSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 36, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_CreateSecret_sync_flattened", + "title": "CreateSecret", + "description": "Snippet for CreateSecret", + "file": "SecretManagerServiceClient.CreateSecretSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecret", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.CreateSecret", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta2.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_CreateSecret_async_flattened", + "title": "CreateSecretAsync", + "description": "Snippet for CreateSecretAsync", + "file": "SecretManagerServiceClient.CreateSecretAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.CreateSecretAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta2.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_CreateSecret_sync_flattened_resourceNames1", + "title": "CreateSecretResourceNames1", + "description": "Snippet for CreateSecret", + "file": "SecretManagerServiceClient.CreateSecretResourceNames1Snippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecret", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.CreateSecret", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta2.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_CreateSecret_async_flattened_resourceNames1", + "title": "CreateSecretResourceNames1Async", + "description": "Snippet for CreateSecretAsync", + "file": "SecretManagerServiceClient.CreateSecretResourceNames1AsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.CreateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.ProjectName", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta2.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_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.V1Beta2.SecretManagerServiceClient.CreateSecret", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta2.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_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.V1Beta2.SecretManagerServiceClient.CreateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "System.String", + "name": "secretId" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta2.Secret", + "name": "secret" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "CreateSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.CreateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 36, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AddSecretVersion_sync", + "title": "AddSecretVersionRequestObject", + "description": "Snippet for AddSecretVersion", + "file": "SecretManagerServiceClient.AddSecretVersionRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "AddSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.AddSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.AddSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AddSecretVersion_async", + "title": "AddSecretVersionRequestObjectAsync", + "description": "Snippet for AddSecretVersionAsync", + "file": "SecretManagerServiceClient.AddSecretVersionRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "AddSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.AddSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.AddSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AddSecretVersion_sync_flattened", + "title": "AddSecretVersion", + "description": "Snippet for AddSecretVersion", + "file": "SecretManagerServiceClient.AddSecretVersionSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "AddSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.AddSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretPayload", + "name": "payload" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AddSecretVersion_async_flattened", + "title": "AddSecretVersionAsync", + "description": "Snippet for AddSecretVersionAsync", + "file": "SecretManagerServiceClient.AddSecretVersionAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "AddSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.AddSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretPayload", + "name": "payload" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AddSecretVersion_sync_flattened_resourceNames", + "title": "AddSecretVersionResourceNames", + "description": "Snippet for AddSecretVersion", + "file": "SecretManagerServiceClient.AddSecretVersionResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "AddSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.AddSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretPayload", + "name": "payload" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 34, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AddSecretVersion_async_flattened_resourceNames", + "title": "AddSecretVersionResourceNamesAsync", + "description": "Snippet for AddSecretVersionAsync", + "file": "SecretManagerServiceClient.AddSecretVersionResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "AddSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.AddSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretName", + "name": "parent" + }, + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretPayload", + "name": "payload" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "AddSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecret_sync", + "title": "GetSecretRequestObject", + "description": "Snippet for GetSecret", + "file": "SecretManagerServiceClient.GetSecretRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecret", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.GetSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecret_async", + "title": "GetSecretRequestObjectAsync", + "description": "Snippet for GetSecretAsync", + "file": "SecretManagerServiceClient.GetSecretRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.GetSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecret_sync_flattened", + "title": "GetSecret", + "description": "Snippet for GetSecret", + "file": "SecretManagerServiceClient.GetSecretSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecret", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetSecret", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecret_async_flattened", + "title": "GetSecretAsync", + "description": "Snippet for GetSecretAsync", + "file": "SecretManagerServiceClient.GetSecretAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetSecretAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecret_sync_flattened_resourceNames", + "title": "GetSecretResourceNames", + "description": "Snippet for GetSecret", + "file": "SecretManagerServiceClient.GetSecretResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecret", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecret_async_flattened_resourceNames", + "title": "GetSecretResourceNamesAsync", + "description": "Snippet for GetSecretAsync", + "file": "SecretManagerServiceClient.GetSecretResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_UpdateSecret_sync", + "title": "UpdateSecretRequestObject", + "description": "Snippet for UpdateSecret", + "file": "SecretManagerServiceClient.UpdateSecretRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSecret", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.UpdateSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.UpdateSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "UpdateSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.UpdateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_UpdateSecret_async", + "title": "UpdateSecretRequestObjectAsync", + "description": "Snippet for UpdateSecretAsync", + "file": "SecretManagerServiceClient.UpdateSecretRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.UpdateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.UpdateSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "UpdateSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.UpdateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_UpdateSecret_sync_flattened", + "title": "UpdateSecret", + "description": "Snippet for UpdateSecret", + "file": "SecretManagerServiceClient.UpdateSecretSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSecret", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.UpdateSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.Secret", + "name": "secret" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.Secret", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "UpdateSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.UpdateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_UpdateSecret_async_flattened", + "title": "UpdateSecretAsync", + "description": "Snippet for UpdateSecretAsync", + "file": "SecretManagerServiceClient.UpdateSecretAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.UpdateSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.Secret", + "name": "secret" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "UpdateSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.UpdateSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DeleteSecret_sync", + "title": "DeleteSecretRequestObject", + "description": "Snippet for DeleteSecret", + "file": "SecretManagerServiceClient.DeleteSecretRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSecret", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DeleteSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DeleteSecret_async", + "title": "DeleteSecretRequestObjectAsync", + "description": "Snippet for DeleteSecretAsync", + "file": "SecretManagerServiceClient.DeleteSecretRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DeleteSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DeleteSecret_sync_flattened", + "title": "DeleteSecret", + "description": "Snippet for DeleteSecret", + "file": "SecretManagerServiceClient.DeleteSecretSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSecret", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DeleteSecret", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DeleteSecret_async_flattened", + "title": "DeleteSecretAsync", + "description": "Snippet for DeleteSecretAsync", + "file": "SecretManagerServiceClient.DeleteSecretAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DeleteSecretAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DeleteSecret_sync_flattened_resourceNames", + "title": "DeleteSecretResourceNames", + "description": "Snippet for DeleteSecret", + "file": "SecretManagerServiceClient.DeleteSecretResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSecret", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DeleteSecret", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DeleteSecret_async_flattened_resourceNames", + "title": "DeleteSecretResourceNamesAsync", + "description": "Snippet for DeleteSecretAsync", + "file": "SecretManagerServiceClient.DeleteSecretResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteSecretAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DeleteSecretAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DeleteSecret", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DeleteSecret", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecretVersions_sync", + "title": "ListSecretVersionsRequestObject", + "description": "Snippet for ListSecretVersions", + "file": "SecretManagerServiceClient.ListSecretVersionsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecretVersions", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.ListSecretVersions", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 79, + "type": "FULL" + }, + { + "start": 36, + "end": 77, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecretVersions_async", + "title": "ListSecretVersionsRequestObjectAsync", + "description": "Snippet for ListSecretVersionsAsync", + "file": "SecretManagerServiceClient.ListSecretVersionsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecretVersionsAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.ListSecretVersionsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Api.Gax.PagedAsyncEnumerable", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 81, + "type": "FULL" + }, + { + "start": 38, + "end": 79, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecretVersions_sync_flattened", + "title": "ListSecretVersions", + "description": "Snippet for ListSecretVersions", + "file": "SecretManagerServiceClient.ListSecretVersionsSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecretVersions", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.ListSecretVersions", + "parameters": [ + { + "type": "System.String", + "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.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecretVersions_async_flattened", + "title": "ListSecretVersionsAsync", + "description": "Snippet for ListSecretVersionsAsync", + "file": "SecretManagerServiceClient.ListSecretVersionsAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecretVersionsAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.ListSecretVersionsAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "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.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecretVersions_sync_flattened_resourceNames", + "title": "ListSecretVersionsResourceNames", + "description": "Snippet for ListSecretVersions", + "file": "SecretManagerServiceClient.ListSecretVersionsResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecretVersions", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.ListSecretVersions", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretName", + "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.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 75, + "type": "FULL" + }, + { + "start": 36, + "end": 73, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecretVersions_async_flattened_resourceNames", + "title": "ListSecretVersionsResourceNamesAsync", + "description": "Snippet for ListSecretVersionsAsync", + "file": "SecretManagerServiceClient.ListSecretVersionsResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "ListSecretVersionsAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.ListSecretVersionsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretName", + "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.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "ListSecretVersions", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecretVersions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 77, + "type": "FULL" + }, + { + "start": 38, + "end": 75, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecretVersion_sync", + "title": "GetSecretVersionRequestObject", + "description": "Snippet for GetSecretVersion", + "file": "SecretManagerServiceClient.GetSecretVersionRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.GetSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecretVersion_async", + "title": "GetSecretVersionRequestObjectAsync", + "description": "Snippet for GetSecretVersionAsync", + "file": "SecretManagerServiceClient.GetSecretVersionRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.GetSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecretVersion_sync_flattened", + "title": "GetSecretVersion", + "description": "Snippet for GetSecretVersion", + "file": "SecretManagerServiceClient.GetSecretVersionSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecretVersion_async_flattened", + "title": "GetSecretVersionAsync", + "description": "Snippet for GetSecretVersionAsync", + "file": "SecretManagerServiceClient.GetSecretVersionAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecretVersion_sync_flattened_resourceNames", + "title": "GetSecretVersionResourceNames", + "description": "Snippet for GetSecretVersion", + "file": "SecretManagerServiceClient.GetSecretVersionResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecretVersion_async_flattened_resourceNames", + "title": "GetSecretVersionResourceNamesAsync", + "description": "Snippet for GetSecretVersionAsync", + "file": "SecretManagerServiceClient.GetSecretVersionResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AccessSecretVersion_sync", + "title": "AccessSecretVersionRequestObject", + "description": "Snippet for AccessSecretVersion", + "file": "SecretManagerServiceClient.AccessSecretVersionRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "AccessSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.AccessSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionResponse", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AccessSecretVersion_async", + "title": "AccessSecretVersionRequestObjectAsync", + "description": "Snippet for AccessSecretVersionAsync", + "file": "SecretManagerServiceClient.AccessSecretVersionRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "AccessSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.AccessSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AccessSecretVersion_sync_flattened", + "title": "AccessSecretVersion", + "description": "Snippet for AccessSecretVersion", + "file": "SecretManagerServiceClient.AccessSecretVersionSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "AccessSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.AccessSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionResponse", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AccessSecretVersion_async_flattened", + "title": "AccessSecretVersionAsync", + "description": "Snippet for AccessSecretVersionAsync", + "file": "SecretManagerServiceClient.AccessSecretVersionAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "AccessSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.AccessSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AccessSecretVersion_sync_flattened_resourceNames", + "title": "AccessSecretVersionResourceNames", + "description": "Snippet for AccessSecretVersion", + "file": "SecretManagerServiceClient.AccessSecretVersionResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "AccessSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.AccessSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionResponse", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AccessSecretVersion_async_flattened_resourceNames", + "title": "AccessSecretVersionResourceNamesAsync", + "description": "Snippet for AccessSecretVersionAsync", + "file": "SecretManagerServiceClient.AccessSecretVersionResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "AccessSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.AccessSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "AccessSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DisableSecretVersion_sync", + "title": "DisableSecretVersionRequestObject", + "description": "Snippet for DisableSecretVersion", + "file": "SecretManagerServiceClient.DisableSecretVersionRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DisableSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DisableSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.DisableSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DisableSecretVersion_async", + "title": "DisableSecretVersionRequestObjectAsync", + "description": "Snippet for DisableSecretVersionAsync", + "file": "SecretManagerServiceClient.DisableSecretVersionRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DisableSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DisableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.DisableSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DisableSecretVersion_sync_flattened", + "title": "DisableSecretVersion", + "description": "Snippet for DisableSecretVersion", + "file": "SecretManagerServiceClient.DisableSecretVersionSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DisableSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DisableSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DisableSecretVersion_async_flattened", + "title": "DisableSecretVersionAsync", + "description": "Snippet for DisableSecretVersionAsync", + "file": "SecretManagerServiceClient.DisableSecretVersionAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DisableSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DisableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DisableSecretVersion_sync_flattened_resourceNames", + "title": "DisableSecretVersionResourceNames", + "description": "Snippet for DisableSecretVersion", + "file": "SecretManagerServiceClient.DisableSecretVersionResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DisableSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DisableSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DisableSecretVersion_async_flattened_resourceNames", + "title": "DisableSecretVersionResourceNamesAsync", + "description": "Snippet for DisableSecretVersionAsync", + "file": "SecretManagerServiceClient.DisableSecretVersionResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DisableSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DisableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DisableSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DisableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_EnableSecretVersion_sync", + "title": "EnableSecretVersionRequestObject", + "description": "Snippet for EnableSecretVersion", + "file": "SecretManagerServiceClient.EnableSecretVersionRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "EnableSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.EnableSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.EnableSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_EnableSecretVersion_async", + "title": "EnableSecretVersionRequestObjectAsync", + "description": "Snippet for EnableSecretVersionAsync", + "file": "SecretManagerServiceClient.EnableSecretVersionRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "EnableSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.EnableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.EnableSecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_EnableSecretVersion_sync_flattened", + "title": "EnableSecretVersion", + "description": "Snippet for EnableSecretVersion", + "file": "SecretManagerServiceClient.EnableSecretVersionSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "EnableSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.EnableSecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_EnableSecretVersion_async_flattened", + "title": "EnableSecretVersionAsync", + "description": "Snippet for EnableSecretVersionAsync", + "file": "SecretManagerServiceClient.EnableSecretVersionAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "EnableSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.EnableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_EnableSecretVersion_sync_flattened_resourceNames", + "title": "EnableSecretVersionResourceNames", + "description": "Snippet for EnableSecretVersion", + "file": "SecretManagerServiceClient.EnableSecretVersionResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "EnableSecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.EnableSecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_EnableSecretVersion_async_flattened_resourceNames", + "title": "EnableSecretVersionResourceNamesAsync", + "description": "Snippet for EnableSecretVersionAsync", + "file": "SecretManagerServiceClient.EnableSecretVersionResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "EnableSecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.EnableSecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "EnableSecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.EnableSecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DestroySecretVersion_sync", + "title": "DestroySecretVersionRequestObject", + "description": "Snippet for DestroySecretVersion", + "file": "SecretManagerServiceClient.DestroySecretVersionRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DestroySecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DestroySecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.DestroySecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 34, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DestroySecretVersion_async", + "title": "DestroySecretVersionRequestObjectAsync", + "description": "Snippet for DestroySecretVersionAsync", + "file": "SecretManagerServiceClient.DestroySecretVersionRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DestroySecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DestroySecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.DestroySecretVersionRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DestroySecretVersion_sync_flattened", + "title": "DestroySecretVersion", + "description": "Snippet for DestroySecretVersion", + "file": "SecretManagerServiceClient.DestroySecretVersionSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DestroySecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DestroySecretVersion", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DestroySecretVersion_async_flattened", + "title": "DestroySecretVersionAsync", + "description": "Snippet for DestroySecretVersionAsync", + "file": "SecretManagerServiceClient.DestroySecretVersionAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DestroySecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DestroySecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DestroySecretVersion_sync_flattened_resourceNames", + "title": "DestroySecretVersionResourceNames", + "description": "Snippet for DestroySecretVersion", + "file": "SecretManagerServiceClient.DestroySecretVersionResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DestroySecretVersion", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DestroySecretVersion", + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.SecretManager.V1Beta2.SecretVersion", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DestroySecretVersion_async_flattened_resourceNames", + "title": "DestroySecretVersionResourceNamesAsync", + "description": "Snippet for DestroySecretVersionAsync", + "file": "SecretManagerServiceClient.DestroySecretVersionResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DestroySecretVersionAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.DestroySecretVersionAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.SecretManager.V1Beta2.SecretVersionName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "DestroySecretVersion", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DestroySecretVersion", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_SetIamPolicy_sync", + "title": "SetIamPolicyRequestObject", + "description": "Snippet for SetIamPolicy", + "file": "SecretManagerServiceClient.SetIamPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.SetIamPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.SetIamPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.SetIamPolicy", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 49, + "type": "FULL" + }, + { + "start": 37, + "end": 47, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_SetIamPolicy_async", + "title": "SetIamPolicyRequestObjectAsync", + "description": "Snippet for SetIamPolicyAsync", + "file": "SecretManagerServiceClient.SetIamPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "SetIamPolicyAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.SetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.SetIamPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.SetIamPolicy", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + }, + { + "start": 38, + "end": 48, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetIamPolicy_sync", + "title": "GetIamPolicyRequestObject", + "description": "Snippet for GetIamPolicy", + "file": "SecretManagerServiceClient.GetIamPolicyRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetIamPolicy", + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.GetIamPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.Policy", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetIamPolicy", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetIamPolicy_async", + "title": "GetIamPolicyRequestObjectAsync", + "description": "Snippet for GetIamPolicyAsync", + "file": "SecretManagerServiceClient.GetIamPolicyRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "GetIamPolicyAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.GetIamPolicyAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.GetIamPolicyRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetIamPolicy", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 37, + "end": 46, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_TestIamPermissions_sync", + "title": "TestIamPermissionsRequestObject", + "description": "Snippet for TestIamPermissions", + "file": "SecretManagerServiceClient.TestIamPermissionsRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.TestIamPermissions", + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.TestIamPermissionsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.Iam.V1.TestIamPermissionsResponse", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.TestIamPermissions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_TestIamPermissions_async", + "title": "TestIamPermissionsRequestObjectAsync", + "description": "Snippet for TestIamPermissionsAsync", + "file": "SecretManagerServiceClient.TestIamPermissionsRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "TestIamPermissionsAsync", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient.TestIamPermissionsAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.Iam.V1.TestIamPermissionsRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "SecretManagerServiceClient", + "fullName": "Google.Cloud.SecretManager.V1Beta2.SecretManagerServiceClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.TestIamPermissions", + "service": { + "shortName": "SecretManagerService", + "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 48, + "type": "FULL" + }, + { + "start": 37, + "end": 46, + "type": "SHORT" + } + ] + } + ] +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.Snippets/Google.Cloud.SecretManager.V1Beta2.Snippets.csproj b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.Snippets/Google.Cloud.SecretManager.V1Beta2.Snippets.csproj new file mode 100755 index 000000000000..a9fff5fa84a0 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.Snippets/Google.Cloud.SecretManager.V1Beta2.Snippets.csproj @@ -0,0 +1,15 @@ + + + + + net6.0;net462 + latest + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.Snippets/SecretManagerServiceClientSnippets.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.Snippets/SecretManagerServiceClientSnippets.g.cs new file mode 100755 index 000000000000..7d6b9b7b372a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.Snippets/SecretManagerServiceClientSnippets.g.cs @@ -0,0 +1,1688 @@ +// Copyright 2025 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 +{ + using Google.Api.Gax; + using Google.Api.Gax.ResourceNames; + using Google.Cloud.Iam.V1; + using Google.Cloud.SecretManager.V1Beta2; + using Google.Protobuf.WellKnownTypes; + using System; + using System.Linq; + using System.Threading.Tasks; + + /// Generated snippets. + public sealed class AllGeneratedSecretManagerServiceClientSnippets + { + /// Snippet for ListSecrets + public void ListSecretsRequestObject() + { + // Snippet: ListSecrets(ListSecretsRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + ListSecretsRequest request = new ListSecretsRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + Filter = "", + }; + // Make the request + PagedEnumerable response = secretManagerServiceClient.ListSecrets(request); + + // 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 ListSecretsRequestObjectAsync() + { + // Snippet: ListSecretsAsync(ListSecretsRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + ListSecretsRequest request = new ListSecretsRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + Filter = "", + }; + // Make the request + PagedAsyncEnumerable response = secretManagerServiceClient.ListSecretsAsync(request); + + // 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 ListSecrets + public void ListSecrets() + { + // Snippet: ListSecrets(string, string, int?, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // 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 ListSecretsAsync() + { + // Snippet: ListSecretsAsync(string, string, int?, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + // 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 ListSecrets + public void ListSecretsResourceNames1() + { + // Snippet: ListSecrets(ProjectName, string, int?, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // 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 ListSecretsResourceNames1Async() + { + // Snippet: ListSecretsAsync(ProjectName, string, int?, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + // 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 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() + { + // Snippet: CreateSecret(CreateSecretRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + CreateSecretRequest request = new CreateSecretRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + SecretId = "", + Secret = new Secret(), + }; + // Make the request + Secret response = secretManagerServiceClient.CreateSecret(request); + // End snippet + } + + /// Snippet for CreateSecretAsync + public async Task CreateSecretRequestObjectAsync() + { + // Snippet: CreateSecretAsync(CreateSecretRequest, CallSettings) + // Additional: CreateSecretAsync(CreateSecretRequest, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + CreateSecretRequest request = new CreateSecretRequest + { + ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), + SecretId = "", + Secret = new Secret(), + }; + // Make the request + Secret response = await secretManagerServiceClient.CreateSecretAsync(request); + // End snippet + } + + /// Snippet for CreateSecret + public void CreateSecret() + { + // Snippet: CreateSecret(string, string, Secret, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = secretManagerServiceClient.CreateSecret(parent, secretId, secret); + // End snippet + } + + /// Snippet for CreateSecretAsync + public async Task CreateSecretAsync() + { + // Snippet: CreateSecretAsync(string, string, Secret, CallSettings) + // Additional: CreateSecretAsync(string, string, Secret, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]"; + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = await secretManagerServiceClient.CreateSecretAsync(parent, secretId, secret); + // End snippet + } + + /// Snippet for CreateSecret + public void CreateSecretResourceNames1() + { + // Snippet: CreateSecret(ProjectName, string, Secret, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = secretManagerServiceClient.CreateSecret(parent, secretId, secret); + // End snippet + } + + /// Snippet for CreateSecretAsync + public async Task CreateSecretResourceNames1Async() + { + // Snippet: CreateSecretAsync(ProjectName, string, Secret, CallSettings) + // Additional: CreateSecretAsync(ProjectName, string, Secret, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + ProjectName parent = ProjectName.FromProject("[PROJECT]"); + string secretId = ""; + Secret secret = new Secret(); + // Make the request + Secret response = await secretManagerServiceClient.CreateSecretAsync(parent, secretId, secret); + // 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() + { + // Snippet: AddSecretVersion(AddSecretVersionRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + AddSecretVersionRequest request = new AddSecretVersionRequest + { + ParentAsSecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + Payload = new SecretPayload(), + }; + // Make the request + SecretVersion response = secretManagerServiceClient.AddSecretVersion(request); + // End snippet + } + + /// Snippet for AddSecretVersionAsync + public async Task AddSecretVersionRequestObjectAsync() + { + // Snippet: AddSecretVersionAsync(AddSecretVersionRequest, CallSettings) + // Additional: AddSecretVersionAsync(AddSecretVersionRequest, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + AddSecretVersionRequest request = new AddSecretVersionRequest + { + ParentAsSecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + Payload = new SecretPayload(), + }; + // Make the request + SecretVersion response = await secretManagerServiceClient.AddSecretVersionAsync(request); + // End snippet + } + + /// Snippet for AddSecretVersion + public void AddSecretVersion() + { + // Snippet: AddSecretVersion(string, SecretPayload, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/secrets/[SECRET]"; + SecretPayload payload = new SecretPayload(); + // Make the request + SecretVersion response = secretManagerServiceClient.AddSecretVersion(parent, payload); + // End snippet + } + + /// Snippet for AddSecretVersionAsync + public async Task AddSecretVersionAsync() + { + // Snippet: AddSecretVersionAsync(string, SecretPayload, CallSettings) + // Additional: AddSecretVersionAsync(string, SecretPayload, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/secrets/[SECRET]"; + SecretPayload payload = new SecretPayload(); + // Make the request + SecretVersion response = await secretManagerServiceClient.AddSecretVersionAsync(parent, payload); + // End snippet + } + + /// Snippet for AddSecretVersion + public void AddSecretVersionResourceNames() + { + // Snippet: AddSecretVersion(SecretName, SecretPayload, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretName parent = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + SecretPayload payload = new SecretPayload(); + // Make the request + SecretVersion response = secretManagerServiceClient.AddSecretVersion(parent, payload); + // End snippet + } + + /// Snippet for AddSecretVersionAsync + public async Task AddSecretVersionResourceNamesAsync() + { + // Snippet: AddSecretVersionAsync(SecretName, SecretPayload, CallSettings) + // Additional: AddSecretVersionAsync(SecretName, SecretPayload, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretName parent = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + SecretPayload payload = new SecretPayload(); + // Make the request + SecretVersion response = await secretManagerServiceClient.AddSecretVersionAsync(parent, payload); + // End snippet + } + + /// Snippet for GetSecret + public void GetSecretRequestObject() + { + // Snippet: GetSecret(GetSecretRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + GetSecretRequest request = new GetSecretRequest + { + SecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + }; + // Make the request + Secret response = secretManagerServiceClient.GetSecret(request); + // End snippet + } + + /// Snippet for GetSecretAsync + public async Task GetSecretRequestObjectAsync() + { + // Snippet: GetSecretAsync(GetSecretRequest, CallSettings) + // Additional: GetSecretAsync(GetSecretRequest, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + GetSecretRequest request = new GetSecretRequest + { + SecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + }; + // Make the request + Secret response = await secretManagerServiceClient.GetSecretAsync(request); + // End snippet + } + + /// Snippet for GetSecret + public void GetSecret() + { + // Snippet: GetSecret(string, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]"; + // Make the request + Secret response = secretManagerServiceClient.GetSecret(name); + // End snippet + } + + /// Snippet for GetSecretAsync + public async Task GetSecretAsync() + { + // Snippet: GetSecretAsync(string, CallSettings) + // Additional: GetSecretAsync(string, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]"; + // Make the request + Secret response = await secretManagerServiceClient.GetSecretAsync(name); + // End snippet + } + + /// Snippet for GetSecret + public void GetSecretResourceNames() + { + // Snippet: GetSecret(SecretName, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretName name = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + // Make the request + Secret response = secretManagerServiceClient.GetSecret(name); + // End snippet + } + + /// Snippet for GetSecretAsync + public async Task GetSecretResourceNamesAsync() + { + // Snippet: GetSecretAsync(SecretName, CallSettings) + // Additional: GetSecretAsync(SecretName, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretName name = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + // Make the request + Secret response = await secretManagerServiceClient.GetSecretAsync(name); + // End snippet + } + + /// Snippet for UpdateSecret + public void UpdateSecretRequestObject() + { + // Snippet: UpdateSecret(UpdateSecretRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + UpdateSecretRequest request = new UpdateSecretRequest + { + Secret = new Secret(), + UpdateMask = new FieldMask(), + }; + // Make the request + Secret response = secretManagerServiceClient.UpdateSecret(request); + // End snippet + } + + /// Snippet for UpdateSecretAsync + public async Task UpdateSecretRequestObjectAsync() + { + // Snippet: UpdateSecretAsync(UpdateSecretRequest, CallSettings) + // Additional: UpdateSecretAsync(UpdateSecretRequest, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + UpdateSecretRequest request = new UpdateSecretRequest + { + Secret = new Secret(), + UpdateMask = new FieldMask(), + }; + // Make the request + Secret response = await secretManagerServiceClient.UpdateSecretAsync(request); + // End snippet + } + + /// Snippet for UpdateSecret + public void UpdateSecret() + { + // Snippet: UpdateSecret(Secret, FieldMask, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + Secret secret = new Secret(); + FieldMask updateMask = new FieldMask(); + // Make the request + Secret response = secretManagerServiceClient.UpdateSecret(secret, updateMask); + // End snippet + } + + /// Snippet for UpdateSecretAsync + public async Task UpdateSecretAsync() + { + // Snippet: UpdateSecretAsync(Secret, FieldMask, CallSettings) + // Additional: UpdateSecretAsync(Secret, FieldMask, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + Secret secret = new Secret(); + FieldMask updateMask = new FieldMask(); + // Make the request + Secret response = await secretManagerServiceClient.UpdateSecretAsync(secret, updateMask); + // End snippet + } + + /// Snippet for DeleteSecret + public void DeleteSecretRequestObject() + { + // Snippet: DeleteSecret(DeleteSecretRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + DeleteSecretRequest request = new DeleteSecretRequest + { + SecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + Etag = "", + }; + // Make the request + secretManagerServiceClient.DeleteSecret(request); + // End snippet + } + + /// Snippet for DeleteSecretAsync + public async Task DeleteSecretRequestObjectAsync() + { + // Snippet: DeleteSecretAsync(DeleteSecretRequest, CallSettings) + // Additional: DeleteSecretAsync(DeleteSecretRequest, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + DeleteSecretRequest request = new DeleteSecretRequest + { + SecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + Etag = "", + }; + // Make the request + await secretManagerServiceClient.DeleteSecretAsync(request); + // End snippet + } + + /// Snippet for DeleteSecret + public void DeleteSecret() + { + // Snippet: DeleteSecret(string, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]"; + // Make the request + secretManagerServiceClient.DeleteSecret(name); + // End snippet + } + + /// Snippet for DeleteSecretAsync + public async Task DeleteSecretAsync() + { + // Snippet: DeleteSecretAsync(string, CallSettings) + // Additional: DeleteSecretAsync(string, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]"; + // Make the request + await secretManagerServiceClient.DeleteSecretAsync(name); + // End snippet + } + + /// Snippet for DeleteSecret + public void DeleteSecretResourceNames() + { + // Snippet: DeleteSecret(SecretName, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretName name = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + // Make the request + secretManagerServiceClient.DeleteSecret(name); + // End snippet + } + + /// Snippet for DeleteSecretAsync + public async Task DeleteSecretResourceNamesAsync() + { + // Snippet: DeleteSecretAsync(SecretName, CallSettings) + // Additional: DeleteSecretAsync(SecretName, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretName name = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + // Make the request + await secretManagerServiceClient.DeleteSecretAsync(name); + // End snippet + } + + /// Snippet for ListSecretVersions + public void ListSecretVersionsRequestObject() + { + // Snippet: ListSecretVersions(ListSecretVersionsRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + ListSecretVersionsRequest request = new ListSecretVersionsRequest + { + ParentAsSecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + Filter = "", + }; + // Make the request + PagedEnumerable response = secretManagerServiceClient.ListSecretVersions(request); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecretVersion 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 (ListSecretVersionsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecretVersion 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 (SecretVersion 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 ListSecretVersionsAsync + public async Task ListSecretVersionsRequestObjectAsync() + { + // Snippet: ListSecretVersionsAsync(ListSecretVersionsRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + ListSecretVersionsRequest request = new ListSecretVersionsRequest + { + ParentAsSecretName = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"), + Filter = "", + }; + // Make the request + PagedAsyncEnumerable response = secretManagerServiceClient.ListSecretVersionsAsync(request); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecretVersion 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((ListSecretVersionsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecretVersion 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 (SecretVersion 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 ListSecretVersions + public void ListSecretVersions() + { + // Snippet: ListSecretVersions(string, string, int?, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/secrets/[SECRET]"; + // Make the request + PagedEnumerable response = secretManagerServiceClient.ListSecretVersions(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecretVersion 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 (ListSecretVersionsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecretVersion 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 (SecretVersion 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 ListSecretVersionsAsync + public async Task ListSecretVersionsAsync() + { + // Snippet: ListSecretVersionsAsync(string, string, int?, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/secrets/[SECRET]"; + // Make the request + PagedAsyncEnumerable response = secretManagerServiceClient.ListSecretVersionsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecretVersion 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((ListSecretVersionsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecretVersion 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 (SecretVersion 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 ListSecretVersions + public void ListSecretVersionsResourceNames() + { + // Snippet: ListSecretVersions(SecretName, string, int?, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretName parent = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + // Make the request + PagedEnumerable response = secretManagerServiceClient.ListSecretVersions(parent); + + // Iterate over all response items, lazily performing RPCs as required + foreach (SecretVersion 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 (ListSecretVersionsResponse page in response.AsRawResponses()) + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecretVersion 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 (SecretVersion 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 ListSecretVersionsAsync + public async Task ListSecretVersionsResourceNamesAsync() + { + // Snippet: ListSecretVersionsAsync(SecretName, string, int?, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretName parent = SecretName.FromProjectSecret("[PROJECT]", "[SECRET]"); + // Make the request + PagedAsyncEnumerable response = secretManagerServiceClient.ListSecretVersionsAsync(parent); + + // Iterate over all response items, lazily performing RPCs as required + await response.ForEachAsync((SecretVersion 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((ListSecretVersionsResponse page) => + { + // Do something with each page of items + Console.WriteLine("A page of results:"); + foreach (SecretVersion 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 (SecretVersion 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 GetSecretVersion + public void GetSecretVersionRequestObject() + { + // Snippet: GetSecretVersion(GetSecretVersionRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + GetSecretVersionRequest request = new GetSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + }; + // Make the request + SecretVersion response = secretManagerServiceClient.GetSecretVersion(request); + // End snippet + } + + /// Snippet for GetSecretVersionAsync + public async Task GetSecretVersionRequestObjectAsync() + { + // Snippet: GetSecretVersionAsync(GetSecretVersionRequest, CallSettings) + // Additional: GetSecretVersionAsync(GetSecretVersionRequest, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + GetSecretVersionRequest request = new GetSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + }; + // Make the request + SecretVersion response = await secretManagerServiceClient.GetSecretVersionAsync(request); + // End snippet + } + + /// Snippet for GetSecretVersion + public void GetSecretVersion() + { + // Snippet: GetSecretVersion(string, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = secretManagerServiceClient.GetSecretVersion(name); + // End snippet + } + + /// Snippet for GetSecretVersionAsync + public async Task GetSecretVersionAsync() + { + // Snippet: GetSecretVersionAsync(string, CallSettings) + // Additional: GetSecretVersionAsync(string, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = await secretManagerServiceClient.GetSecretVersionAsync(name); + // End snippet + } + + /// Snippet for GetSecretVersion + public void GetSecretVersionResourceNames() + { + // Snippet: GetSecretVersion(SecretVersionName, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = secretManagerServiceClient.GetSecretVersion(name); + // End snippet + } + + /// Snippet for GetSecretVersionAsync + public async Task GetSecretVersionResourceNamesAsync() + { + // Snippet: GetSecretVersionAsync(SecretVersionName, CallSettings) + // Additional: GetSecretVersionAsync(SecretVersionName, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = await secretManagerServiceClient.GetSecretVersionAsync(name); + // End snippet + } + + /// Snippet for AccessSecretVersion + public void AccessSecretVersionRequestObject() + { + // Snippet: AccessSecretVersion(AccessSecretVersionRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + AccessSecretVersionRequest request = new AccessSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + }; + // Make the request + AccessSecretVersionResponse response = secretManagerServiceClient.AccessSecretVersion(request); + // End snippet + } + + /// Snippet for AccessSecretVersionAsync + public async Task AccessSecretVersionRequestObjectAsync() + { + // Snippet: AccessSecretVersionAsync(AccessSecretVersionRequest, CallSettings) + // Additional: AccessSecretVersionAsync(AccessSecretVersionRequest, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + AccessSecretVersionRequest request = new AccessSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + }; + // Make the request + AccessSecretVersionResponse response = await secretManagerServiceClient.AccessSecretVersionAsync(request); + // End snippet + } + + /// Snippet for AccessSecretVersion + public void AccessSecretVersion() + { + // Snippet: AccessSecretVersion(string, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + AccessSecretVersionResponse response = secretManagerServiceClient.AccessSecretVersion(name); + // End snippet + } + + /// Snippet for AccessSecretVersionAsync + public async Task AccessSecretVersionAsync() + { + // Snippet: AccessSecretVersionAsync(string, CallSettings) + // Additional: AccessSecretVersionAsync(string, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + AccessSecretVersionResponse response = await secretManagerServiceClient.AccessSecretVersionAsync(name); + // End snippet + } + + /// Snippet for AccessSecretVersion + public void AccessSecretVersionResourceNames() + { + // Snippet: AccessSecretVersion(SecretVersionName, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + AccessSecretVersionResponse response = secretManagerServiceClient.AccessSecretVersion(name); + // End snippet + } + + /// Snippet for AccessSecretVersionAsync + public async Task AccessSecretVersionResourceNamesAsync() + { + // Snippet: AccessSecretVersionAsync(SecretVersionName, CallSettings) + // Additional: AccessSecretVersionAsync(SecretVersionName, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + AccessSecretVersionResponse response = await secretManagerServiceClient.AccessSecretVersionAsync(name); + // End snippet + } + + /// Snippet for DisableSecretVersion + public void DisableSecretVersionRequestObject() + { + // Snippet: DisableSecretVersion(DisableSecretVersionRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + DisableSecretVersionRequest request = new DisableSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + Etag = "", + }; + // Make the request + SecretVersion response = secretManagerServiceClient.DisableSecretVersion(request); + // End snippet + } + + /// Snippet for DisableSecretVersionAsync + public async Task DisableSecretVersionRequestObjectAsync() + { + // Snippet: DisableSecretVersionAsync(DisableSecretVersionRequest, CallSettings) + // Additional: DisableSecretVersionAsync(DisableSecretVersionRequest, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + DisableSecretVersionRequest request = new DisableSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + Etag = "", + }; + // Make the request + SecretVersion response = await secretManagerServiceClient.DisableSecretVersionAsync(request); + // End snippet + } + + /// Snippet for DisableSecretVersion + public void DisableSecretVersion() + { + // Snippet: DisableSecretVersion(string, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = secretManagerServiceClient.DisableSecretVersion(name); + // End snippet + } + + /// Snippet for DisableSecretVersionAsync + public async Task DisableSecretVersionAsync() + { + // Snippet: DisableSecretVersionAsync(string, CallSettings) + // Additional: DisableSecretVersionAsync(string, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = await secretManagerServiceClient.DisableSecretVersionAsync(name); + // End snippet + } + + /// Snippet for DisableSecretVersion + public void DisableSecretVersionResourceNames() + { + // Snippet: DisableSecretVersion(SecretVersionName, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = secretManagerServiceClient.DisableSecretVersion(name); + // End snippet + } + + /// Snippet for DisableSecretVersionAsync + public async Task DisableSecretVersionResourceNamesAsync() + { + // Snippet: DisableSecretVersionAsync(SecretVersionName, CallSettings) + // Additional: DisableSecretVersionAsync(SecretVersionName, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = await secretManagerServiceClient.DisableSecretVersionAsync(name); + // End snippet + } + + /// Snippet for EnableSecretVersion + public void EnableSecretVersionRequestObject() + { + // Snippet: EnableSecretVersion(EnableSecretVersionRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + EnableSecretVersionRequest request = new EnableSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + Etag = "", + }; + // Make the request + SecretVersion response = secretManagerServiceClient.EnableSecretVersion(request); + // End snippet + } + + /// Snippet for EnableSecretVersionAsync + public async Task EnableSecretVersionRequestObjectAsync() + { + // Snippet: EnableSecretVersionAsync(EnableSecretVersionRequest, CallSettings) + // Additional: EnableSecretVersionAsync(EnableSecretVersionRequest, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + EnableSecretVersionRequest request = new EnableSecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + Etag = "", + }; + // Make the request + SecretVersion response = await secretManagerServiceClient.EnableSecretVersionAsync(request); + // End snippet + } + + /// Snippet for EnableSecretVersion + public void EnableSecretVersion() + { + // Snippet: EnableSecretVersion(string, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = secretManagerServiceClient.EnableSecretVersion(name); + // End snippet + } + + /// Snippet for EnableSecretVersionAsync + public async Task EnableSecretVersionAsync() + { + // Snippet: EnableSecretVersionAsync(string, CallSettings) + // Additional: EnableSecretVersionAsync(string, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = await secretManagerServiceClient.EnableSecretVersionAsync(name); + // End snippet + } + + /// Snippet for EnableSecretVersion + public void EnableSecretVersionResourceNames() + { + // Snippet: EnableSecretVersion(SecretVersionName, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = secretManagerServiceClient.EnableSecretVersion(name); + // End snippet + } + + /// Snippet for EnableSecretVersionAsync + public async Task EnableSecretVersionResourceNamesAsync() + { + // Snippet: EnableSecretVersionAsync(SecretVersionName, CallSettings) + // Additional: EnableSecretVersionAsync(SecretVersionName, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = await secretManagerServiceClient.EnableSecretVersionAsync(name); + // End snippet + } + + /// Snippet for DestroySecretVersion + public void DestroySecretVersionRequestObject() + { + // Snippet: DestroySecretVersion(DestroySecretVersionRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + DestroySecretVersionRequest request = new DestroySecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + Etag = "", + }; + // Make the request + SecretVersion response = secretManagerServiceClient.DestroySecretVersion(request); + // End snippet + } + + /// Snippet for DestroySecretVersionAsync + public async Task DestroySecretVersionRequestObjectAsync() + { + // Snippet: DestroySecretVersionAsync(DestroySecretVersionRequest, CallSettings) + // Additional: DestroySecretVersionAsync(DestroySecretVersionRequest, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + DestroySecretVersionRequest request = new DestroySecretVersionRequest + { + SecretVersionName = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"), + Etag = "", + }; + // Make the request + SecretVersion response = await secretManagerServiceClient.DestroySecretVersionAsync(request); + // End snippet + } + + /// Snippet for DestroySecretVersion + public void DestroySecretVersion() + { + // Snippet: DestroySecretVersion(string, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = secretManagerServiceClient.DestroySecretVersion(name); + // End snippet + } + + /// Snippet for DestroySecretVersionAsync + public async Task DestroySecretVersionAsync() + { + // Snippet: DestroySecretVersionAsync(string, CallSettings) + // Additional: DestroySecretVersionAsync(string, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + string name = "projects/[PROJECT]/secrets/[SECRET]/versions/[SECRET_VERSION]"; + // Make the request + SecretVersion response = await secretManagerServiceClient.DestroySecretVersionAsync(name); + // End snippet + } + + /// Snippet for DestroySecretVersion + public void DestroySecretVersionResourceNames() + { + // Snippet: DestroySecretVersion(SecretVersionName, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = secretManagerServiceClient.DestroySecretVersion(name); + // End snippet + } + + /// Snippet for DestroySecretVersionAsync + public async Task DestroySecretVersionResourceNamesAsync() + { + // Snippet: DestroySecretVersionAsync(SecretVersionName, CallSettings) + // Additional: DestroySecretVersionAsync(SecretVersionName, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SecretVersionName name = SecretVersionName.FromProjectSecretSecretVersion("[PROJECT]", "[SECRET]", "[SECRET_VERSION]"); + // Make the request + SecretVersion response = await secretManagerServiceClient.DestroySecretVersionAsync(name); + // End snippet + } + + /// Snippet for SetIamPolicy + public void SetIamPolicyRequestObject() + { + // Snippet: SetIamPolicy(SetIamPolicyRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + SetIamPolicyRequest request = new SetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Policy = new Policy(), + UpdateMask = new FieldMask(), + }; + // Make the request + Policy response = secretManagerServiceClient.SetIamPolicy(request); + // End snippet + } + + /// Snippet for SetIamPolicyAsync + public async Task SetIamPolicyRequestObjectAsync() + { + // Snippet: SetIamPolicyAsync(SetIamPolicyRequest, CallSettings) + // Additional: SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + SetIamPolicyRequest request = new SetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Policy = new Policy(), + UpdateMask = new FieldMask(), + }; + // Make the request + Policy response = await secretManagerServiceClient.SetIamPolicyAsync(request); + // End snippet + } + + /// Snippet for GetIamPolicy + public void GetIamPolicyRequestObject() + { + // Snippet: GetIamPolicy(GetIamPolicyRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = secretManagerServiceClient.GetIamPolicy(request); + // End snippet + } + + /// Snippet for GetIamPolicyAsync + public async Task GetIamPolicyRequestObjectAsync() + { + // Snippet: GetIamPolicyAsync(GetIamPolicyRequest, CallSettings) + // Additional: GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + GetIamPolicyRequest request = new GetIamPolicyRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Options = new GetPolicyOptions(), + }; + // Make the request + Policy response = await secretManagerServiceClient.GetIamPolicyAsync(request); + // End snippet + } + + /// Snippet for TestIamPermissions + public void TestIamPermissionsRequestObject() + { + // Snippet: TestIamPermissions(TestIamPermissionsRequest, CallSettings) + // Create client + SecretManagerServiceClient secretManagerServiceClient = SecretManagerServiceClient.Create(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = secretManagerServiceClient.TestIamPermissions(request); + // End snippet + } + + /// Snippet for TestIamPermissionsAsync + public async Task TestIamPermissionsRequestObjectAsync() + { + // Snippet: TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings) + // Additional: TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken) + // Create client + SecretManagerServiceClient secretManagerServiceClient = await SecretManagerServiceClient.CreateAsync(); + // Initialize request argument(s) + TestIamPermissionsRequest request = new TestIamPermissionsRequest + { + ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"), + Permissions = { "", }, + }; + // Make the request + TestIamPermissionsResponse response = await secretManagerServiceClient.TestIamPermissionsAsync(request); + // End snippet + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.csproj b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.csproj new file mode 100755 index 000000000000..9568571bdce6 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2.csproj @@ -0,0 +1,49 @@ + + + + + + 1.0.0-alpha01 + + + + + + + + + netstandard2.0;net462 + latest + true + true + true + + + + + + + + + + + + \ No newline at end of file diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/PackageApiMetadata.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/PackageApiMetadata.g.cs new file mode 100755 index 000000000000..3858f8a31572 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/PackageApiMetadata.g.cs @@ -0,0 +1,53 @@ +// Copyright 2025 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! + +#pragma warning disable CS8981 +using gaxgrpc = Google.Api.Gax.Grpc; +using gcl = Google.Cloud.Location; +using gpr = Google.Protobuf.Reflection; +using proto = Google.Protobuf; +using scg = System.Collections.Generic; + +namespace Google.Cloud.SecretManager.V1Beta2 +{ + /// Static class to provide common access to package-wide API metadata. + internal static class PackageApiMetadata + { + /// The for services in this package. + internal static gaxgrpc::ApiMetadata ApiMetadata { get; } = new gaxgrpc::ApiMetadata("Google.Cloud.SecretManager.V1Beta2", GetFileDescriptors) + .WithRequestNumericEnumJsonEncoding(true) + .WithHttpRuleOverrides(new scg::Dictionary + { + { + "google.cloud.location.Locations.GetLocation", + // { "get": "/v1beta2/{name=projects/*/locations/*}" } + proto::ByteString.FromBase64("EiYvdjFiZXRhMi97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qfQ==") + }, + { + "google.cloud.location.Locations.ListLocations", + // { "get": "/v1beta2/{name=projects/*}/locations" } + proto::ByteString.FromBase64("EiQvdjFiZXRhMi97bmFtZT1wcm9qZWN0cy8qfS9sb2NhdGlvbnM=") + }, + }); + + private static scg::IEnumerable GetFileDescriptors() + { + yield return gcl::LocationsReflection.Descriptor; + yield return ResourcesReflection.Descriptor; + yield return ServiceReflection.Descriptor; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/Resources.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/Resources.g.cs new file mode 100755 index 000000000000..80f668ae0d3c --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/Resources.g.cs @@ -0,0 +1,4676 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1beta2/resources.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.Cloud.SecretManager.V1Beta2 { + + /// Holder for reflection information generated from google/cloud/secretmanager/v1beta2/resources.proto + public static partial class ResourcesReflection { + + #region Descriptor + /// File descriptor for google/cloud/secretmanager/v1beta2/resources.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ResourcesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjJnb29nbGUvY2xvdWQvc2VjcmV0bWFuYWdlci92MWJldGEyL3Jlc291cmNl", + "cy5wcm90bxIiZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMhof", + "Z29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9y", + "ZXNvdXJjZS5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL2R1cmF0aW9uLnByb3Rv", + "Gh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvIoUJCgZTZWNyZXQS", + "EQoEbmFtZRgBIAEoCUID4EEDEkwKC3JlcGxpY2F0aW9uGAIgASgLMi8uZ29v", + "Z2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMi5SZXBsaWNhdGlvbkIG", + "4EEF4EEBEjQKC2NyZWF0ZV90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVm", + "LlRpbWVzdGFtcEID4EEDEkYKBmxhYmVscxgEIAMoCzI2Lmdvb2dsZS5jbG91", + "ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0YTIuU2VjcmV0LkxhYmVsc0VudHJ5Ej4K", + "BnRvcGljcxgFIAMoCzIpLmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYx", + "YmV0YTIuVG9waWNCA+BBARI2CgtleHBpcmVfdGltZRgGIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAUgAEi0KA3R0bBgHIAEoCzIZLmdv", + "b2dsZS5wcm90b2J1Zi5EdXJhdGlvbkID4EEESAASEQoEZXRhZxgIIAEoCUID", + "4EEBEkMKCHJvdGF0aW9uGAkgASgLMiwuZ29vZ2xlLmNsb3VkLnNlY3JldG1h", + "bmFnZXIudjFiZXRhMi5Sb3RhdGlvbkID4EEBElwKD3ZlcnNpb25fYWxpYXNl", + "cxgLIAMoCzI+Lmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0YTIu", + "U2VjcmV0LlZlcnNpb25BbGlhc2VzRW50cnlCA+BBARJVCgthbm5vdGF0aW9u", + "cxgNIAMoCzI7Lmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0YTIu", + "U2VjcmV0LkFubm90YXRpb25zRW50cnlCA+BBARI7ChN2ZXJzaW9uX2Rlc3Ry", + "b3lfdHRsGA4gASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uQgPgQQES", + "ZwobY3VzdG9tZXJfbWFuYWdlZF9lbmNyeXB0aW9uGA8gASgLMj0uZ29vZ2xl", + "LmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMi5DdXN0b21lck1hbmFnZWRF", + "bmNyeXB0aW9uQgPgQQEaLQoLTGFiZWxzRW50cnkSCwoDa2V5GAEgASgJEg0K", + "BXZhbHVlGAIgASgJOgI4ARo1ChNWZXJzaW9uQWxpYXNlc0VudHJ5EgsKA2tl", + "eRgBIAEoCRINCgV2YWx1ZRgCIAEoAzoCOAEaMgoQQW5ub3RhdGlvbnNFbnRy", + "eRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBOpkB6kGVAQojc2Vj", + "cmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbS9TZWNyZXQSI3Byb2plY3RzL3tw", + "cm9qZWN0fS9zZWNyZXRzL3tzZWNyZXR9Ejhwcm9qZWN0cy97cHJvamVjdH0v", + "bG9jYXRpb25zL3tsb2NhdGlvbn0vc2VjcmV0cy97c2VjcmV0fSoHc2VjcmV0", + "czIGc2VjcmV0QgwKCmV4cGlyYXRpb24i0QYKDVNlY3JldFZlcnNpb24SEQoE", + "bmFtZRgBIAEoCUID4EEDEjQKC2NyZWF0ZV90aW1lGAIgASgLMhouZ29vZ2xl", + "LnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEjUKDGRlc3Ryb3lfdGltZRgDIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxJLCgVzdGF0ZRgE", + "IAEoDjI3Lmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0YTIuU2Vj", + "cmV0VmVyc2lvbi5TdGF0ZUID4EEDElEKEnJlcGxpY2F0aW9uX3N0YXR1cxgF", + "IAEoCzI1Lmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0YTIuUmVw", + "bGljYXRpb25TdGF0dXMSEQoEZXRhZxgGIAEoCUID4EEDEi4KIWNsaWVudF9z", + "cGVjaWZpZWRfcGF5bG9hZF9jaGVja3N1bRgHIAEoCEID4EEDEj8KFnNjaGVk", + "dWxlZF9kZXN0cm95X3RpbWUYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", + "ZXN0YW1wQgPgQQMSbQobY3VzdG9tZXJfbWFuYWdlZF9lbmNyeXB0aW9uGAkg", + "ASgLMkMuZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMi5DdXN0", + "b21lck1hbmFnZWRFbmNyeXB0aW9uU3RhdHVzQgPgQQMiSAoFU3RhdGUSFQoR", + "U1RBVEVfVU5TUEVDSUZJRUQQABILCgdFTkFCTEVEEAESDAoIRElTQUJMRUQQ", + "AhINCglERVNUUk9ZRUQQAzriAepB3gEKKnNlY3JldG1hbmFnZXIuZ29vZ2xl", + "YXBpcy5jb20vU2VjcmV0VmVyc2lvbhI9cHJvamVjdHMve3Byb2plY3R9L3Nl", + "Y3JldHMve3NlY3JldH0vdmVyc2lvbnMve3NlY3JldF92ZXJzaW9ufRJScHJv", + "amVjdHMve3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L3NlY3JldHMv", + "e3NlY3JldH0vdmVyc2lvbnMve3NlY3JldF92ZXJzaW9ufSoOc2VjcmV0VmVy", + "c2lvbnMyDXNlY3JldFZlcnNpb24iqgQKC1JlcGxpY2F0aW9uEk4KCWF1dG9t", + "YXRpYxgBIAEoCzI5Lmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0", + "YTIuUmVwbGljYXRpb24uQXV0b21hdGljSAASUwoMdXNlcl9tYW5hZ2VkGAIg", + "ASgLMjsuZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMi5SZXBs", + "aWNhdGlvbi5Vc2VyTWFuYWdlZEgAGnQKCUF1dG9tYXRpYxJnChtjdXN0b21l", + "cl9tYW5hZ2VkX2VuY3J5cHRpb24YASABKAsyPS5nb29nbGUuY2xvdWQuc2Vj", + "cmV0bWFuYWdlci52MWJldGEyLkN1c3RvbWVyTWFuYWdlZEVuY3J5cHRpb25C", + "A+BBARrwAQoLVXNlck1hbmFnZWQSWgoIcmVwbGljYXMYASADKAsyQy5nb29n", + "bGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MWJldGEyLlJlcGxpY2F0aW9uLlVz", + "ZXJNYW5hZ2VkLlJlcGxpY2FCA+BBAhqEAQoHUmVwbGljYRIQCghsb2NhdGlv", + "bhgBIAEoCRJnChtjdXN0b21lcl9tYW5hZ2VkX2VuY3J5cHRpb24YAiABKAsy", + "PS5nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MWJldGEyLkN1c3RvbWVy", + "TWFuYWdlZEVuY3J5cHRpb25CA+BBAUINCgtyZXBsaWNhdGlvbiI2ChlDdXN0", + "b21lck1hbmFnZWRFbmNyeXB0aW9uEhkKDGttc19rZXlfbmFtZRgBIAEoCUID", + "4EECIoUFChFSZXBsaWNhdGlvblN0YXR1cxJaCglhdXRvbWF0aWMYASABKAsy", + "RS5nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MWJldGEyLlJlcGxpY2F0", + "aW9uU3RhdHVzLkF1dG9tYXRpY1N0YXR1c0gAEl8KDHVzZXJfbWFuYWdlZBgC", + "IAEoCzJHLmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0YTIuUmVw", + "bGljYXRpb25TdGF0dXMuVXNlck1hbmFnZWRTdGF0dXNIABqAAQoPQXV0b21h", + "dGljU3RhdHVzEm0KG2N1c3RvbWVyX21hbmFnZWRfZW5jcnlwdGlvbhgBIAEo", + "CzJDLmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0YTIuQ3VzdG9t", + "ZXJNYW5hZ2VkRW5jcnlwdGlvblN0YXR1c0ID4EEDGpkCChFVc2VyTWFuYWdl", + "ZFN0YXR1cxJsCghyZXBsaWNhcxgBIAMoCzJVLmdvb2dsZS5jbG91ZC5zZWNy", + "ZXRtYW5hZ2VyLnYxYmV0YTIuUmVwbGljYXRpb25TdGF0dXMuVXNlck1hbmFn", + "ZWRTdGF0dXMuUmVwbGljYVN0YXR1c0ID4EEDGpUBCg1SZXBsaWNhU3RhdHVz", + "EhUKCGxvY2F0aW9uGAEgASgJQgPgQQMSbQobY3VzdG9tZXJfbWFuYWdlZF9l", + "bmNyeXB0aW9uGAIgASgLMkMuZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIu", + "djFiZXRhMi5DdXN0b21lck1hbmFnZWRFbmNyeXB0aW9uU3RhdHVzQgPgQQNC", + "FAoScmVwbGljYXRpb25fc3RhdHVzIkQKH0N1c3RvbWVyTWFuYWdlZEVuY3J5", + "cHRpb25TdGF0dXMSIQoUa21zX2tleV92ZXJzaW9uX25hbWUYASABKAlCA+BB", + "AiJfCgVUb3BpYxIRCgRuYW1lGAEgASgJQgPgQQI6Q+pBQAobcHVic3ViLmdv", + "b2dsZWFwaXMuY29tL1RvcGljEiFwcm9qZWN0cy97cHJvamVjdH0vdG9waWNz", + "L3t0b3BpY30igAEKCFJvdGF0aW9uEjsKEm5leHRfcm90YXRpb25fdGltZRgB", + "IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBARI3Cg9yb3Rh", + "dGlvbl9wZXJpb2QYAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25C", + "A+BBBCJMCg1TZWNyZXRQYXlsb2FkEgwKBGRhdGEYASABKAwSHQoLZGF0YV9j", + "cmMzMmMYAiABKANCA+BBAUgAiAEBQg4KDF9kYXRhX2NyYzMyY0KAAgomY29t", + "Lmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0YTJCDlJlc291cmNl", + "c1Byb3RvUAFaTGNsb3VkLmdvb2dsZS5jb20vZ28vc2VjcmV0bWFuYWdlci9h", + "cGl2MWJldGEyL3NlY3JldG1hbmFnZXJwYjtzZWNyZXRtYW5hZ2VycGKiAgNH", + "U02qAiJHb29nbGUuQ2xvdWQuU2VjcmV0TWFuYWdlci5WMUJldGEyygIiR29v", + "Z2xlXENsb3VkXFNlY3JldE1hbmFnZXJcVjFiZXRhMuoCJUdvb2dsZTo6Q2xv", + "dWQ6OlNlY3JldE1hbmFnZXI6OlYxYmV0YTJiBnByb3RvMw==")); + 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.V1Beta2.Secret), global::Google.Cloud.SecretManager.V1Beta2.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.V1Beta2.SecretVersion), global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Parser, new[]{ "Name", "CreateTime", "DestroyTime", "State", "ReplicationStatus", "Etag", "ClientSpecifiedPayloadChecksum", "ScheduledDestroyTime", "CustomerManagedEncryption" }, null, new[]{ typeof(global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Types.State) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.Replication), global::Google.Cloud.SecretManager.V1Beta2.Replication.Parser, new[]{ "Automatic", "UserManaged" }, new[]{ "Replication" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.Automatic), global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.Automatic.Parser, new[]{ "CustomerManagedEncryption" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.UserManaged), global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.UserManaged.Parser, new[]{ "Replicas" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.UserManaged.Types.Replica), global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.UserManaged.Types.Replica.Parser, new[]{ "Location", "CustomerManagedEncryption" }, null, null, null, null)})}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryption), global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryption.Parser, new[]{ "KmsKeyName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus), global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Parser, new[]{ "Automatic", "UserManaged" }, new[]{ "ReplicationStatus" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.AutomaticStatus), global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.AutomaticStatus.Parser, new[]{ "CustomerManagedEncryption" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.UserManagedStatus), global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.UserManagedStatus.Parser, new[]{ "Replicas" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.UserManagedStatus.Types.ReplicaStatus), global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.UserManagedStatus.Types.ReplicaStatus.Parser, new[]{ "Location", "CustomerManagedEncryption" }, null, null, null, null)})}), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryptionStatus), global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryptionStatus.Parser, new[]{ "KmsKeyVersionName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.Topic), global::Google.Cloud.SecretManager.V1Beta2.Topic.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.Rotation), global::Google.Cloud.SecretManager.V1Beta2.Rotation.Parser, new[]{ "NextRotationTime", "RotationPeriod" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.SecretPayload), global::Google.Cloud.SecretManager.V1Beta2.SecretPayload.Parser, new[]{ "Data", "DataCrc32C" }, new[]{ "DataCrc32C" }, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// A [Secret][google.cloud.secretmanager.v1beta2.Secret] is a logical secret + /// whose value and versions can be accessed. + /// + /// A [Secret][google.cloud.secretmanager.v1beta2.Secret] is made up of zero or + /// more [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] that + /// represent the secret data. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Secret : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Secret()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ResourcesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Secret() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Secret(Secret other) : this() { + name_ = other.name_; + replication_ = other.replication_ != null ? other.replication_.Clone() : null; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + labels_ = other.labels_.Clone(); + topics_ = other.topics_.Clone(); + etag_ = other.etag_; + 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(); + break; + case ExpirationOneofCase.Ttl: + Ttl = other.Ttl.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Secret Clone() { + return new Secret(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] in the format + /// `projects/*/secrets/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "replication" field. + public const int ReplicationFieldNumber = 2; + private global::Google.Cloud.SecretManager.V1Beta2.Replication replication_; + /// + /// Optional. Immutable. The replication policy of the secret data attached to + /// the [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The replication policy cannot be changed after the Secret has been created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.Replication Replication { + get { return replication_; } + set { + replication_ = value; + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time at which the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "labels" field. + public const int LabelsFieldNumber = 4; + private static readonly pbc::MapField.Codec _map_labels_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 34); + private readonly pbc::MapField labels_ = new pbc::MapField(); + /// + /// The labels assigned to this Secret. + /// + /// Label keys must be between 1 and 63 characters long, have a UTF-8 encoding + /// of maximum 128 bytes, and must conform to the following PCRE regular + /// expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}` + /// + /// Label values must be between 0 and 63 characters long, have a UTF-8 + /// encoding of maximum 128 bytes, and must conform to the following PCRE + /// regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}` + /// + /// No more than 64 labels can be assigned to a given resource. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Labels { + get { return labels_; } + } + + /// Field number for the "topics" field. + public const int TopicsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_topics_codec + = pb::FieldCodec.ForMessage(42, global::Google.Cloud.SecretManager.V1Beta2.Topic.Parser); + private readonly pbc::RepeatedField topics_ = new pbc::RepeatedField(); + /// + /// Optional. A list of up to 10 Pub/Sub topics to which messages are published + /// when control plane operations are called on the secret or its versions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Topics { + get { return topics_; } + } + + /// Field number for the "expire_time" field. + public const int ExpireTimeFieldNumber = 6; + /// + /// Optional. Timestamp in UTC when the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] is scheduled to + /// expire. This is always provided on output, regardless of what was sent on + /// input. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpireTime { + get { return expirationCase_ == ExpirationOneofCase.ExpireTime ? (global::Google.Protobuf.WellKnownTypes.Timestamp) expiration_ : null; } + set { + expiration_ = value; + expirationCase_ = value == null ? ExpirationOneofCase.None : ExpirationOneofCase.ExpireTime; + } + } + + /// Field number for the "ttl" field. + public const int TtlFieldNumber = 7; + /// + /// Input only. The TTL for the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration Ttl { + get { return expirationCase_ == ExpirationOneofCase.Ttl ? (global::Google.Protobuf.WellKnownTypes.Duration) expiration_ : null; } + set { + expiration_ = value; + expirationCase_ = value == null ? ExpirationOneofCase.None : ExpirationOneofCase.Ttl; + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 8; + private string etag_ = ""; + /// + /// Optional. Etag of the currently stored + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "rotation" field. + public const int RotationFieldNumber = 9; + private global::Google.Cloud.SecretManager.V1Beta2.Rotation rotation_; + /// + /// Optional. Rotation policy attached to the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. May be excluded if + /// there is no rotation policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.Rotation Rotation { + get { return rotation_; } + set { + rotation_ = value; + } + } + + /// Field number for the "version_aliases" field. + public const int VersionAliasesFieldNumber = 11; + private static readonly pbc::MapField.Codec _map_versionAliases_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 90); + private readonly pbc::MapField versionAliases_ = new pbc::MapField(); + /// + /// Optional. Mapping from version alias to version name. + /// + /// A version alias is a string with a maximum length of 63 characters and can + /// contain uppercase and lowercase letters, numerals, and the hyphen (`-`) + /// and underscore ('_') characters. An alias string must start with a + /// letter and cannot be the string 'latest' or 'NEW'. + /// No more than 50 aliases can be assigned to a given secret. + /// + /// Version-Alias pairs will be viewable via GetSecret and modifiable via + /// UpdateSecret. Access by alias is only supported for + /// GetSecretVersion and AccessSecretVersion. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField VersionAliases { + get { return versionAliases_; } + } + + /// Field number for the "annotations" field. + public const int AnnotationsFieldNumber = 13; + private static readonly pbc::MapField.Codec _map_annotations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 106); + private readonly pbc::MapField annotations_ = new pbc::MapField(); + /// + /// Optional. Custom metadata about the secret. + /// + /// Annotations are distinct from various forms of labels. + /// Annotations exist to allow client tools to store their own state + /// information without requiring a database. + /// + /// Annotation keys must be between 1 and 63 characters long, have a UTF-8 + /// encoding of maximum 128 bytes, begin and end with an alphanumeric character + /// ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and + /// alphanumerics in between these symbols. + /// + /// The total size of annotation keys and values must be less than 16KiB. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Annotations { + 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.V1Beta2.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.v1beta2.Secret] + /// encryption configuration only apply to + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] added + /// afterwards. They do not apply retroactively to existing + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryption CustomerManagedEncryption { + get { return customerManagedEncryption_; } + set { + customerManagedEncryption_ = value; + } + } + + private object expiration_; + /// Enum of possible cases for the "expiration" oneof. + public enum ExpirationOneofCase { + None = 0, + ExpireTime = 6, + Ttl = 7, + } + private ExpirationOneofCase expirationCase_ = ExpirationOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExpirationOneofCase ExpirationCase { + get { return expirationCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearExpiration() { + expirationCase_ = ExpirationOneofCase.None; + expiration_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Secret); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Secret other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(Replication, other.Replication)) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!Labels.Equals(other.Labels)) return false; + if(!topics_.Equals(other.topics_)) return false; + if (!object.Equals(ExpireTime, other.ExpireTime)) return false; + if (!object.Equals(Ttl, other.Ttl)) return false; + if (Etag != other.Etag) return false; + 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); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (replication_ != null) hash ^= Replication.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + hash ^= Labels.GetHashCode(); + hash ^= topics_.GetHashCode(); + if (expirationCase_ == ExpirationOneofCase.ExpireTime) hash ^= ExpireTime.GetHashCode(); + if (expirationCase_ == ExpirationOneofCase.Ttl) hash ^= Ttl.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + 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(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (replication_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Replication); + } + if (createTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CreateTime); + } + labels_.WriteTo(output, _map_labels_codec); + topics_.WriteTo(output, _repeated_topics_codec); + if (expirationCase_ == ExpirationOneofCase.ExpireTime) { + output.WriteRawTag(50); + output.WriteMessage(ExpireTime); + } + if (expirationCase_ == ExpirationOneofCase.Ttl) { + output.WriteRawTag(58); + output.WriteMessage(Ttl); + } + if (Etag.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Etag); + } + if (rotation_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Rotation); + } + 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); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (replication_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Replication); + } + if (createTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CreateTime); + } + labels_.WriteTo(ref output, _map_labels_codec); + topics_.WriteTo(ref output, _repeated_topics_codec); + if (expirationCase_ == ExpirationOneofCase.ExpireTime) { + output.WriteRawTag(50); + output.WriteMessage(ExpireTime); + } + if (expirationCase_ == ExpirationOneofCase.Ttl) { + output.WriteRawTag(58); + output.WriteMessage(Ttl); + } + if (Etag.Length != 0) { + output.WriteRawTag(66); + output.WriteString(Etag); + } + if (rotation_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Rotation); + } + 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); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (replication_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Replication); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + size += labels_.CalculateSize(_map_labels_codec); + size += topics_.CalculateSize(_repeated_topics_codec); + if (expirationCase_ == ExpirationOneofCase.ExpireTime) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpireTime); + } + if (expirationCase_ == ExpirationOneofCase.Ttl) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ttl); + } + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (rotation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rotation); + } + 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(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Secret other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.replication_ != null) { + if (replication_ == null) { + Replication = new global::Google.Cloud.SecretManager.V1Beta2.Replication(); + } + Replication.MergeFrom(other.Replication); + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + labels_.MergeFrom(other.labels_); + topics_.Add(other.topics_); + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + if (other.rotation_ != null) { + if (rotation_ == null) { + Rotation = new global::Google.Cloud.SecretManager.V1Beta2.Rotation(); + } + Rotation.MergeFrom(other.Rotation); + } + 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.V1Beta2.CustomerManagedEncryption(); + } + CustomerManagedEncryption.MergeFrom(other.CustomerManagedEncryption); + } + switch (other.ExpirationCase) { + case ExpirationOneofCase.ExpireTime: + if (ExpireTime == null) { + ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpireTime.MergeFrom(other.ExpireTime); + break; + case ExpirationOneofCase.Ttl: + if (Ttl == null) { + Ttl = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + Ttl.MergeFrom(other.Ttl); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (replication_ == null) { + Replication = new global::Google.Cloud.SecretManager.V1Beta2.Replication(); + } + input.ReadMessage(Replication); + break; + } + case 26: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(input, _map_labels_codec); + break; + } + case 42: { + topics_.AddEntriesFrom(input, _repeated_topics_codec); + break; + } + case 50: { + global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + if (expirationCase_ == ExpirationOneofCase.ExpireTime) { + subBuilder.MergeFrom(ExpireTime); + } + input.ReadMessage(subBuilder); + ExpireTime = subBuilder; + break; + } + case 58: { + global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration(); + if (expirationCase_ == ExpirationOneofCase.Ttl) { + subBuilder.MergeFrom(Ttl); + } + input.ReadMessage(subBuilder); + Ttl = subBuilder; + break; + } + case 66: { + Etag = input.ReadString(); + break; + } + case 74: { + if (rotation_ == null) { + Rotation = new global::Google.Cloud.SecretManager.V1Beta2.Rotation(); + } + input.ReadMessage(Rotation); + break; + } + case 90: { + versionAliases_.AddEntriesFrom(input, _map_versionAliases_codec); + break; + } + case 106: { + 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.V1Beta2.CustomerManagedEncryption(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (replication_ == null) { + Replication = new global::Google.Cloud.SecretManager.V1Beta2.Replication(); + } + input.ReadMessage(Replication); + break; + } + case 26: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 34: { + labels_.AddEntriesFrom(ref input, _map_labels_codec); + break; + } + case 42: { + topics_.AddEntriesFrom(ref input, _repeated_topics_codec); + break; + } + case 50: { + global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + if (expirationCase_ == ExpirationOneofCase.ExpireTime) { + subBuilder.MergeFrom(ExpireTime); + } + input.ReadMessage(subBuilder); + ExpireTime = subBuilder; + break; + } + case 58: { + global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration(); + if (expirationCase_ == ExpirationOneofCase.Ttl) { + subBuilder.MergeFrom(Ttl); + } + input.ReadMessage(subBuilder); + Ttl = subBuilder; + break; + } + case 66: { + Etag = input.ReadString(); + break; + } + case 74: { + if (rotation_ == null) { + Rotation = new global::Google.Cloud.SecretManager.V1Beta2.Rotation(); + } + input.ReadMessage(Rotation); + break; + } + case 90: { + versionAliases_.AddEntriesFrom(ref input, _map_versionAliases_codec); + break; + } + case 106: { + 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.V1Beta2.CustomerManagedEncryption(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + } + #endif + + } + + /// + /// A secret version resource in the Secret Manager API. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SecretVersion : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SecretVersion()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ResourcesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecretVersion() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecretVersion(SecretVersion other) : this() { + name_ = other.name_; + createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null; + destroyTime_ = other.destroyTime_ != null ? other.destroyTime_.Clone() : null; + state_ = other.state_; + 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); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecretVersion Clone() { + return new SecretVersion(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Output only. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*`. + /// + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] IDs in a + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] start at 1 and are + /// incremented for each subsequent version of the secret. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "create_time" field. + public const int CreateTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_; + /// + /// Output only. The time at which the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] was + /// created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime { + get { return createTime_; } + set { + createTime_ = value; + } + } + + /// Field number for the "destroy_time" field. + public const int DestroyTimeFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Timestamp destroyTime_; + /// + /// Output only. The time this + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] was + /// destroyed. Only present if + /// [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] is + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp DestroyTime { + get { return destroyTime_; } + set { + destroyTime_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Types.State state_ = global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Types.State.Unspecified; + /// + /// Output only. The current state of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Types.State State { + get { return state_; } + set { + state_ = value; + } + } + + /// Field number for the "replication_status" field. + public const int ReplicationStatusFieldNumber = 5; + private global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus replicationStatus_; + /// + /// The replication status of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus ReplicationStatus { + get { return replicationStatus_; } + set { + replicationStatus_ = value; + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 6; + private string etag_ = ""; + /// + /// Output only. Etag of the currently stored + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "client_specified_payload_checksum" field. + public const int ClientSpecifiedPayloadChecksumFieldNumber = 7; + private bool clientSpecifiedPayloadChecksum_; + /// + /// Output only. True if payload checksum specified in + /// [SecretPayload][google.cloud.secretmanager.v1beta2.SecretPayload] object + /// has been received by + /// [SecretManagerService][google.cloud.secretmanager.v1beta2.SecretManagerService] + /// on + /// [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ClientSpecifiedPayloadChecksum { + get { return clientSpecifiedPayloadChecksum_; } + set { + clientSpecifiedPayloadChecksum_ = value; + } + } + + /// 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, version is moved to disabled state and it is scheduled for + /// destruction 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.V1Beta2.CustomerManagedEncryptionStatus customerManagedEncryption_; + /// + /// Output only. The customer-managed encryption status of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. Only + /// populated if customer-managed encryption is used and + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] is a Regionalised + /// Secret. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.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) { + return Equals(other as SecretVersion); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SecretVersion other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(CreateTime, other.CreateTime)) return false; + if (!object.Equals(DestroyTime, other.DestroyTime)) return false; + if (State != other.State) return false; + 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); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (createTime_ != null) hash ^= CreateTime.GetHashCode(); + if (destroyTime_ != null) hash ^= DestroyTime.GetHashCode(); + if (State != global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Types.State.Unspecified) hash ^= State.GetHashCode(); + 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(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (destroyTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(DestroyTime); + } + if (State != global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (replicationStatus_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ReplicationStatus); + } + if (Etag.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Etag); + } + if (ClientSpecifiedPayloadChecksum != false) { + 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); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (createTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CreateTime); + } + if (destroyTime_ != null) { + output.WriteRawTag(26); + output.WriteMessage(DestroyTime); + } + if (State != global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Types.State.Unspecified) { + output.WriteRawTag(32); + output.WriteEnum((int) State); + } + if (replicationStatus_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ReplicationStatus); + } + if (Etag.Length != 0) { + output.WriteRawTag(50); + output.WriteString(Etag); + } + if (ClientSpecifiedPayloadChecksum != false) { + 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); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (createTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime); + } + if (destroyTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DestroyTime); + } + if (State != global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Types.State.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State); + } + if (replicationStatus_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReplicationStatus); + } + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + 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(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SecretVersion other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.createTime_ != null) { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreateTime.MergeFrom(other.CreateTime); + } + if (other.destroyTime_ != null) { + if (destroyTime_ == null) { + DestroyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + DestroyTime.MergeFrom(other.DestroyTime); + } + if (other.State != global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Types.State.Unspecified) { + State = other.State; + } + if (other.replicationStatus_ != null) { + if (replicationStatus_ == null) { + ReplicationStatus = new global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus(); + } + ReplicationStatus.MergeFrom(other.ReplicationStatus); + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + 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.V1Beta2.CustomerManagedEncryptionStatus(); + } + CustomerManagedEncryption.MergeFrom(other.CustomerManagedEncryption); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (destroyTime_ == null) { + DestroyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DestroyTime); + break; + } + case 32: { + State = (global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Types.State) input.ReadEnum(); + break; + } + case 42: { + if (replicationStatus_ == null) { + ReplicationStatus = new global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus(); + } + input.ReadMessage(ReplicationStatus); + break; + } + case 50: { + Etag = input.ReadString(); + break; + } + case 56: { + 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.V1Beta2.CustomerManagedEncryptionStatus(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (createTime_ == null) { + CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreateTime); + break; + } + case 26: { + if (destroyTime_ == null) { + DestroyTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(DestroyTime); + break; + } + case 32: { + State = (global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Types.State) input.ReadEnum(); + break; + } + case 42: { + if (replicationStatus_ == null) { + ReplicationStatus = new global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus(); + } + input.ReadMessage(ReplicationStatus); + break; + } + case 50: { + Etag = input.ReadString(); + break; + } + case 56: { + 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.V1Beta2.CustomerManagedEncryptionStatus(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the SecretVersion message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The state of a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion], + /// indicating if it can be accessed. + /// + public enum State { + /// + /// Not specified. This value is unused and invalid. + /// + [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0, + /// + /// The [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] may + /// be accessed. + /// + [pbr::OriginalName("ENABLED")] Enabled = 1, + /// + /// The [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] may + /// not be accessed, but the secret data is still available and can be placed + /// back into the + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED] + /// state. + /// + [pbr::OriginalName("DISABLED")] Disabled = 2, + /// + /// The [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] is + /// destroyed and the secret data is no longer stored. A version may not + /// leave this state once entered. + /// + [pbr::OriginalName("DESTROYED")] Destroyed = 3, + } + + } + #endregion + + } + + /// + /// A policy that defines the replication and encryption configuration of data. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Replication : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Replication()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ResourcesReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Replication() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Replication(Replication other) : this() { + switch (other.ReplicationCase) { + case ReplicationOneofCase.Automatic: + Automatic = other.Automatic.Clone(); + break; + case ReplicationOneofCase.UserManaged: + UserManaged = other.UserManaged.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Replication Clone() { + return new Replication(this); + } + + /// Field number for the "automatic" field. + public const int AutomaticFieldNumber = 1; + /// + /// The [Secret][google.cloud.secretmanager.v1beta2.Secret] will + /// automatically be replicated without any restrictions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.Automatic Automatic { + get { return replicationCase_ == ReplicationOneofCase.Automatic ? (global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.Automatic) replication_ : null; } + set { + replication_ = value; + replicationCase_ = value == null ? ReplicationOneofCase.None : ReplicationOneofCase.Automatic; + } + } + + /// Field number for the "user_managed" field. + public const int UserManagedFieldNumber = 2; + /// + /// The [Secret][google.cloud.secretmanager.v1beta2.Secret] will only be + /// replicated into the locations specified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.UserManaged UserManaged { + get { return replicationCase_ == ReplicationOneofCase.UserManaged ? (global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.UserManaged) replication_ : null; } + set { + replication_ = value; + replicationCase_ = value == null ? ReplicationOneofCase.None : ReplicationOneofCase.UserManaged; + } + } + + private object replication_; + /// Enum of possible cases for the "replication" oneof. + public enum ReplicationOneofCase { + None = 0, + Automatic = 1, + UserManaged = 2, + } + private ReplicationOneofCase replicationCase_ = ReplicationOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicationOneofCase ReplicationCase { + get { return replicationCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReplication() { + replicationCase_ = ReplicationOneofCase.None; + replication_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Replication); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Replication other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Automatic, other.Automatic)) return false; + if (!object.Equals(UserManaged, other.UserManaged)) return false; + if (ReplicationCase != other.ReplicationCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (replicationCase_ == ReplicationOneofCase.Automatic) hash ^= Automatic.GetHashCode(); + if (replicationCase_ == ReplicationOneofCase.UserManaged) hash ^= UserManaged.GetHashCode(); + hash ^= (int) replicationCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (replicationCase_ == ReplicationOneofCase.Automatic) { + output.WriteRawTag(10); + output.WriteMessage(Automatic); + } + if (replicationCase_ == ReplicationOneofCase.UserManaged) { + output.WriteRawTag(18); + output.WriteMessage(UserManaged); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (replicationCase_ == ReplicationOneofCase.Automatic) { + output.WriteRawTag(10); + output.WriteMessage(Automatic); + } + if (replicationCase_ == ReplicationOneofCase.UserManaged) { + output.WriteRawTag(18); + output.WriteMessage(UserManaged); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (replicationCase_ == ReplicationOneofCase.Automatic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Automatic); + } + if (replicationCase_ == ReplicationOneofCase.UserManaged) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserManaged); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Replication other) { + if (other == null) { + return; + } + switch (other.ReplicationCase) { + case ReplicationOneofCase.Automatic: + if (Automatic == null) { + Automatic = new global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.Automatic(); + } + Automatic.MergeFrom(other.Automatic); + break; + case ReplicationOneofCase.UserManaged: + if (UserManaged == null) { + UserManaged = new global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.UserManaged(); + } + UserManaged.MergeFrom(other.UserManaged); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.Automatic subBuilder = new global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.Automatic(); + if (replicationCase_ == ReplicationOneofCase.Automatic) { + subBuilder.MergeFrom(Automatic); + } + input.ReadMessage(subBuilder); + Automatic = subBuilder; + break; + } + case 18: { + global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.UserManaged subBuilder = new global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.UserManaged(); + if (replicationCase_ == ReplicationOneofCase.UserManaged) { + subBuilder.MergeFrom(UserManaged); + } + input.ReadMessage(subBuilder); + UserManaged = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.Automatic subBuilder = new global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.Automatic(); + if (replicationCase_ == ReplicationOneofCase.Automatic) { + subBuilder.MergeFrom(Automatic); + } + input.ReadMessage(subBuilder); + Automatic = subBuilder; + break; + } + case 18: { + global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.UserManaged subBuilder = new global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.UserManaged(); + if (replicationCase_ == ReplicationOneofCase.UserManaged) { + subBuilder.MergeFrom(UserManaged); + } + input.ReadMessage(subBuilder); + UserManaged = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the Replication message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// A replication policy that replicates the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] payload without any + /// restrictions. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Automatic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Automatic()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.Replication.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Automatic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Automatic(Automatic other) : this() { + customerManagedEncryption_ = other.customerManagedEncryption_ != null ? other.customerManagedEncryption_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Automatic Clone() { + return new Automatic(this); + } + + /// Field number for the "customer_managed_encryption" field. + public const int CustomerManagedEncryptionFieldNumber = 1; + private global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryption customerManagedEncryption_; + /// + /// Optional. The customer-managed encryption configuration of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. If no configuration + /// is provided, Google-managed default encryption is used. + /// + /// Updates to the [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// encryption configuration only apply to + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] added + /// afterwards. They do not apply retroactively to existing + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryption CustomerManagedEncryption { + get { return customerManagedEncryption_; } + set { + customerManagedEncryption_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Automatic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Automatic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CustomerManagedEncryption, other.CustomerManagedEncryption)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (customerManagedEncryption_ != null) hash ^= CustomerManagedEncryption.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (customerManagedEncryption_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CustomerManagedEncryption); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (customerManagedEncryption_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CustomerManagedEncryption); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (customerManagedEncryption_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerManagedEncryption); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Automatic other) { + if (other == null) { + return; + } + if (other.customerManagedEncryption_ != null) { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryption(); + } + CustomerManagedEncryption.MergeFrom(other.CustomerManagedEncryption); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryption(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryption(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + } + #endif + + } + + /// + /// A replication policy that replicates the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] payload into the + /// locations specified in + /// [Replication.UserManaged.replicas][google.cloud.secretmanager.v1beta2.Replication.UserManaged.replicas] + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UserManaged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserManaged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.Replication.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserManaged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserManaged(UserManaged other) : this() { + replicas_ = other.replicas_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserManaged Clone() { + return new UserManaged(this); + } + + /// Field number for the "replicas" field. + public const int ReplicasFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_replicas_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.UserManaged.Types.Replica.Parser); + private readonly pbc::RepeatedField replicas_ = new pbc::RepeatedField(); + /// + /// Required. The list of Replicas for this + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// Cannot be empty. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Replicas { + get { return replicas_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UserManaged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserManaged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!replicas_.Equals(other.replicas_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= replicas_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + replicas_.WriteTo(output, _repeated_replicas_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + replicas_.WriteTo(ref output, _repeated_replicas_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += replicas_.CalculateSize(_repeated_replicas_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserManaged other) { + if (other == null) { + return; + } + replicas_.Add(other.replicas_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + replicas_.AddEntriesFrom(input, _repeated_replicas_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + replicas_.AddEntriesFrom(ref input, _repeated_replicas_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the UserManaged message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Represents a Replica for this + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Replica : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Replica()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.Replication.Types.UserManaged.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Replica() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Replica(Replica other) : this() { + location_ = other.location_; + customerManagedEncryption_ = other.customerManagedEncryption_ != null ? other.customerManagedEncryption_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Replica Clone() { + return new Replica(this); + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 1; + private string location_ = ""; + /// + /// The canonical IDs of the location to replicate data. + /// For example: `"us-east1"`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Location { + get { return location_; } + set { + location_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "customer_managed_encryption" field. + public const int CustomerManagedEncryptionFieldNumber = 2; + private global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryption customerManagedEncryption_; + /// + /// Optional. The customer-managed encryption configuration of the + /// [User-Managed Replica][Replication.UserManaged.Replica]. If no + /// configuration is provided, Google-managed default encryption is used. + /// + /// Updates to the [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// encryption configuration only apply to + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] + /// added afterwards. They do not apply retroactively to existing + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryption CustomerManagedEncryption { + get { return customerManagedEncryption_; } + set { + customerManagedEncryption_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Replica); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Replica other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Location != other.Location) return false; + if (!object.Equals(CustomerManagedEncryption, other.CustomerManagedEncryption)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Location.Length != 0) hash ^= Location.GetHashCode(); + if (customerManagedEncryption_ != null) hash ^= CustomerManagedEncryption.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Location.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Location); + } + if (customerManagedEncryption_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CustomerManagedEncryption); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Location.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Location); + } + if (customerManagedEncryption_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CustomerManagedEncryption); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Location.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Location); + } + if (customerManagedEncryption_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerManagedEncryption); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Replica other) { + if (other == null) { + return; + } + if (other.Location.Length != 0) { + Location = other.Location; + } + if (other.customerManagedEncryption_ != null) { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryption(); + } + CustomerManagedEncryption.MergeFrom(other.CustomerManagedEncryption); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Location = input.ReadString(); + break; + } + case 18: { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryption(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Location = input.ReadString(); + break; + } + case 18: { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryption(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// Configuration for encrypting secret payloads using customer-managed + /// encryption keys (CMEK). + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CustomerManagedEncryption : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerManagedEncryption()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ResourcesReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomerManagedEncryption() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomerManagedEncryption(CustomerManagedEncryption other) : this() { + kmsKeyName_ = other.kmsKeyName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomerManagedEncryption Clone() { + return new CustomerManagedEncryption(this); + } + + /// Field number for the "kms_key_name" field. + public const int KmsKeyNameFieldNumber = 1; + private string kmsKeyName_ = ""; + /// + /// Required. The resource name of the Cloud KMS CryptoKey used to encrypt + /// secret payloads. + /// + /// For secrets using the + /// [UserManaged][google.cloud.secretmanager.v1beta2.Replication.UserManaged] + /// replication policy type, Cloud KMS CryptoKeys must reside in the same + /// location as the [replica location][Secret.UserManaged.Replica.location]. + /// + /// For secrets using the + /// [Automatic][google.cloud.secretmanager.v1beta2.Replication.Automatic] + /// replication policy type, Cloud KMS CryptoKeys must reside in `global`. + /// + /// The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KmsKeyName { + get { return kmsKeyName_; } + set { + kmsKeyName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CustomerManagedEncryption); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CustomerManagedEncryption other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KmsKeyName != other.KmsKeyName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (KmsKeyName.Length != 0) hash ^= KmsKeyName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (KmsKeyName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKeyName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (KmsKeyName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKeyName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (KmsKeyName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KmsKeyName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CustomerManagedEncryption other) { + if (other == null) { + return; + } + if (other.KmsKeyName.Length != 0) { + KmsKeyName = other.KmsKeyName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + KmsKeyName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + KmsKeyName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// The replication status of a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ReplicationStatus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReplicationStatus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ResourcesReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicationStatus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicationStatus(ReplicationStatus other) : this() { + switch (other.ReplicationStatusCase) { + case ReplicationStatusOneofCase.Automatic: + Automatic = other.Automatic.Clone(); + break; + case ReplicationStatusOneofCase.UserManaged: + UserManaged = other.UserManaged.Clone(); + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicationStatus Clone() { + return new ReplicationStatus(this); + } + + /// Field number for the "automatic" field. + public const int AutomaticFieldNumber = 1; + /// + /// Describes the replication status of a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] with + /// automatic replication. + /// + /// Only populated if the parent + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] has an automatic + /// replication policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.AutomaticStatus Automatic { + get { return replicationStatusCase_ == ReplicationStatusOneofCase.Automatic ? (global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.AutomaticStatus) replicationStatus_ : null; } + set { + replicationStatus_ = value; + replicationStatusCase_ = value == null ? ReplicationStatusOneofCase.None : ReplicationStatusOneofCase.Automatic; + } + } + + /// Field number for the "user_managed" field. + public const int UserManagedFieldNumber = 2; + /// + /// Describes the replication status of a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] with + /// user-managed replication. + /// + /// Only populated if the parent + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] has a user-managed + /// replication policy. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.UserManagedStatus UserManaged { + get { return replicationStatusCase_ == ReplicationStatusOneofCase.UserManaged ? (global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.UserManagedStatus) replicationStatus_ : null; } + set { + replicationStatus_ = value; + replicationStatusCase_ = value == null ? ReplicationStatusOneofCase.None : ReplicationStatusOneofCase.UserManaged; + } + } + + private object replicationStatus_; + /// Enum of possible cases for the "replication_status" oneof. + public enum ReplicationStatusOneofCase { + None = 0, + Automatic = 1, + UserManaged = 2, + } + private ReplicationStatusOneofCase replicationStatusCase_ = ReplicationStatusOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicationStatusOneofCase ReplicationStatusCase { + get { return replicationStatusCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearReplicationStatus() { + replicationStatusCase_ = ReplicationStatusOneofCase.None; + replicationStatus_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ReplicationStatus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReplicationStatus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Automatic, other.Automatic)) return false; + if (!object.Equals(UserManaged, other.UserManaged)) return false; + if (ReplicationStatusCase != other.ReplicationStatusCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (replicationStatusCase_ == ReplicationStatusOneofCase.Automatic) hash ^= Automatic.GetHashCode(); + if (replicationStatusCase_ == ReplicationStatusOneofCase.UserManaged) hash ^= UserManaged.GetHashCode(); + hash ^= (int) replicationStatusCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (replicationStatusCase_ == ReplicationStatusOneofCase.Automatic) { + output.WriteRawTag(10); + output.WriteMessage(Automatic); + } + if (replicationStatusCase_ == ReplicationStatusOneofCase.UserManaged) { + output.WriteRawTag(18); + output.WriteMessage(UserManaged); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (replicationStatusCase_ == ReplicationStatusOneofCase.Automatic) { + output.WriteRawTag(10); + output.WriteMessage(Automatic); + } + if (replicationStatusCase_ == ReplicationStatusOneofCase.UserManaged) { + output.WriteRawTag(18); + output.WriteMessage(UserManaged); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (replicationStatusCase_ == ReplicationStatusOneofCase.Automatic) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Automatic); + } + if (replicationStatusCase_ == ReplicationStatusOneofCase.UserManaged) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserManaged); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReplicationStatus other) { + if (other == null) { + return; + } + switch (other.ReplicationStatusCase) { + case ReplicationStatusOneofCase.Automatic: + if (Automatic == null) { + Automatic = new global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.AutomaticStatus(); + } + Automatic.MergeFrom(other.Automatic); + break; + case ReplicationStatusOneofCase.UserManaged: + if (UserManaged == null) { + UserManaged = new global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.UserManagedStatus(); + } + UserManaged.MergeFrom(other.UserManaged); + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.AutomaticStatus subBuilder = new global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.AutomaticStatus(); + if (replicationStatusCase_ == ReplicationStatusOneofCase.Automatic) { + subBuilder.MergeFrom(Automatic); + } + input.ReadMessage(subBuilder); + Automatic = subBuilder; + break; + } + case 18: { + global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.UserManagedStatus subBuilder = new global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.UserManagedStatus(); + if (replicationStatusCase_ == ReplicationStatusOneofCase.UserManaged) { + subBuilder.MergeFrom(UserManaged); + } + input.ReadMessage(subBuilder); + UserManaged = subBuilder; + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.AutomaticStatus subBuilder = new global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.AutomaticStatus(); + if (replicationStatusCase_ == ReplicationStatusOneofCase.Automatic) { + subBuilder.MergeFrom(Automatic); + } + input.ReadMessage(subBuilder); + Automatic = subBuilder; + break; + } + case 18: { + global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.UserManagedStatus subBuilder = new global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.UserManagedStatus(); + if (replicationStatusCase_ == ReplicationStatusOneofCase.UserManaged) { + subBuilder.MergeFrom(UserManaged); + } + input.ReadMessage(subBuilder); + UserManaged = subBuilder; + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the ReplicationStatus message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// The replication status of a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] using + /// automatic replication. + /// + /// Only populated if the parent + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] has an automatic + /// replication policy. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AutomaticStatus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AutomaticStatus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutomaticStatus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutomaticStatus(AutomaticStatus other) : this() { + customerManagedEncryption_ = other.customerManagedEncryption_ != null ? other.customerManagedEncryption_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AutomaticStatus Clone() { + return new AutomaticStatus(this); + } + + /// Field number for the "customer_managed_encryption" field. + public const int CustomerManagedEncryptionFieldNumber = 1; + private global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryptionStatus customerManagedEncryption_; + /// + /// Output only. The customer-managed encryption status of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. Only + /// populated if customer-managed encryption is used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.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) { + return Equals(other as AutomaticStatus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AutomaticStatus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CustomerManagedEncryption, other.CustomerManagedEncryption)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (customerManagedEncryption_ != null) hash ^= CustomerManagedEncryption.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (customerManagedEncryption_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CustomerManagedEncryption); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (customerManagedEncryption_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CustomerManagedEncryption); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (customerManagedEncryption_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerManagedEncryption); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AutomaticStatus other) { + if (other == null) { + return; + } + if (other.customerManagedEncryption_ != null) { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryptionStatus(); + } + CustomerManagedEncryption.MergeFrom(other.CustomerManagedEncryption); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryptionStatus(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryptionStatus(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + } + #endif + + } + + /// + /// The replication status of a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] using + /// user-managed replication. + /// + /// Only populated if the parent + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] has a user-managed + /// replication policy. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UserManagedStatus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserManagedStatus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserManagedStatus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserManagedStatus(UserManagedStatus other) : this() { + replicas_ = other.replicas_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserManagedStatus Clone() { + return new UserManagedStatus(this); + } + + /// Field number for the "replicas" field. + public const int ReplicasFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_replicas_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.UserManagedStatus.Types.ReplicaStatus.Parser); + private readonly pbc::RepeatedField replicas_ = new pbc::RepeatedField(); + /// + /// Output only. The list of replica statuses for the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Replicas { + get { return replicas_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UserManagedStatus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserManagedStatus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!replicas_.Equals(other.replicas_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= replicas_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + replicas_.WriteTo(output, _repeated_replicas_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + replicas_.WriteTo(ref output, _repeated_replicas_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += replicas_.CalculateSize(_repeated_replicas_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserManagedStatus other) { + if (other == null) { + return; + } + replicas_.Add(other.replicas_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + replicas_.AddEntriesFrom(input, _repeated_replicas_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + replicas_.AddEntriesFrom(ref input, _repeated_replicas_codec); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the UserManagedStatus message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Describes the status of a user-managed replica for the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ReplicaStatus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReplicaStatus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ReplicationStatus.Types.UserManagedStatus.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicaStatus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicaStatus(ReplicaStatus other) : this() { + location_ = other.location_; + customerManagedEncryption_ = other.customerManagedEncryption_ != null ? other.customerManagedEncryption_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ReplicaStatus Clone() { + return new ReplicaStatus(this); + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 1; + private string location_ = ""; + /// + /// Output only. The canonical ID of the replica location. + /// For example: `"us-east1"`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Location { + get { return location_; } + set { + location_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "customer_managed_encryption" field. + public const int CustomerManagedEncryptionFieldNumber = 2; + private global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryptionStatus customerManagedEncryption_; + /// + /// Output only. The customer-managed encryption status of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. Only + /// populated if customer-managed encryption is used. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.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) { + return Equals(other as ReplicaStatus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ReplicaStatus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Location != other.Location) return false; + if (!object.Equals(CustomerManagedEncryption, other.CustomerManagedEncryption)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Location.Length != 0) hash ^= Location.GetHashCode(); + if (customerManagedEncryption_ != null) hash ^= CustomerManagedEncryption.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Location.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Location); + } + if (customerManagedEncryption_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CustomerManagedEncryption); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Location.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Location); + } + if (customerManagedEncryption_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CustomerManagedEncryption); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Location.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Location); + } + if (customerManagedEncryption_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerManagedEncryption); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ReplicaStatus other) { + if (other == null) { + return; + } + if (other.Location.Length != 0) { + Location = other.Location; + } + if (other.customerManagedEncryption_ != null) { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryptionStatus(); + } + CustomerManagedEncryption.MergeFrom(other.CustomerManagedEncryption); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Location = input.ReadString(); + break; + } + case 18: { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryptionStatus(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Location = input.ReadString(); + break; + } + case 18: { + if (customerManagedEncryption_ == null) { + CustomerManagedEncryption = new global::Google.Cloud.SecretManager.V1Beta2.CustomerManagedEncryptionStatus(); + } + input.ReadMessage(CustomerManagedEncryption); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + } + #endregion + + } + + /// + /// Describes the status of customer-managed encryption. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CustomerManagedEncryptionStatus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerManagedEncryptionStatus()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ResourcesReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomerManagedEncryptionStatus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomerManagedEncryptionStatus(CustomerManagedEncryptionStatus other) : this() { + kmsKeyVersionName_ = other.kmsKeyVersionName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomerManagedEncryptionStatus Clone() { + return new CustomerManagedEncryptionStatus(this); + } + + /// Field number for the "kms_key_version_name" field. + public const int KmsKeyVersionNameFieldNumber = 1; + private string kmsKeyVersionName_ = ""; + /// + /// Required. The resource name of the Cloud KMS CryptoKeyVersion used to + /// encrypt the secret payload, in the following format: + /// `projects/*/locations/*/keyRings/*/cryptoKeys/*/versions/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KmsKeyVersionName { + get { return kmsKeyVersionName_; } + set { + kmsKeyVersionName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CustomerManagedEncryptionStatus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CustomerManagedEncryptionStatus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KmsKeyVersionName != other.KmsKeyVersionName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (KmsKeyVersionName.Length != 0) hash ^= KmsKeyVersionName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (KmsKeyVersionName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKeyVersionName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (KmsKeyVersionName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KmsKeyVersionName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (KmsKeyVersionName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KmsKeyVersionName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CustomerManagedEncryptionStatus other) { + if (other == null) { + return; + } + if (other.KmsKeyVersionName.Length != 0) { + KmsKeyVersionName = other.KmsKeyVersionName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + KmsKeyVersionName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + KmsKeyVersionName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// A Pub/Sub topic which Secret Manager will publish to when control plane + /// events occur on this secret. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Topic : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Topic()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ResourcesReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Topic() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Topic(Topic other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Topic Clone() { + return new Topic(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// 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 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)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Topic); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Topic other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Topic other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// The rotation time and period for a + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. At next_rotation_time, + /// Secret Manager will send a Pub/Sub notification to the topics configured on + /// the Secret. [Secret.topics][google.cloud.secretmanager.v1beta2.Secret.topics] + /// must be set to configure rotation. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Rotation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Rotation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ResourcesReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Rotation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Rotation(Rotation other) : this() { + nextRotationTime_ = other.nextRotationTime_ != null ? other.nextRotationTime_.Clone() : null; + rotationPeriod_ = other.rotationPeriod_ != null ? other.rotationPeriod_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Rotation Clone() { + return new Rotation(this); + } + + /// Field number for the "next_rotation_time" field. + public const int NextRotationTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp nextRotationTime_; + /// + /// Optional. Timestamp in UTC at which the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] is scheduled to rotate. + /// Cannot be set to less than 300s (5 min) in the future and at most + /// 3153600000s (100 years). + /// + /// [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time] + /// MUST be set if + /// [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period] + /// is set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp NextRotationTime { + get { return nextRotationTime_; } + set { + nextRotationTime_ = value; + } + } + + /// Field number for the "rotation_period" field. + public const int RotationPeriodFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Duration rotationPeriod_; + /// + /// Input only. The Duration between rotation notifications. Must be in seconds + /// and at least 3600s (1h) and at most 3153600000s (100 years). + /// + /// If + /// [rotation_period][google.cloud.secretmanager.v1beta2.Rotation.rotation_period] + /// is set, + /// [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time] + /// must be set. + /// [next_rotation_time][google.cloud.secretmanager.v1beta2.Rotation.next_rotation_time] + /// will be advanced by this period when the service automatically sends + /// rotation notifications. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration RotationPeriod { + get { return rotationPeriod_; } + set { + rotationPeriod_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Rotation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Rotation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(NextRotationTime, other.NextRotationTime)) return false; + if (!object.Equals(RotationPeriod, other.RotationPeriod)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (nextRotationTime_ != null) hash ^= NextRotationTime.GetHashCode(); + if (rotationPeriod_ != null) hash ^= RotationPeriod.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (nextRotationTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(NextRotationTime); + } + if (rotationPeriod_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RotationPeriod); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (nextRotationTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(NextRotationTime); + } + if (rotationPeriod_ != null) { + output.WriteRawTag(18); + output.WriteMessage(RotationPeriod); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (nextRotationTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(NextRotationTime); + } + if (rotationPeriod_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RotationPeriod); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Rotation other) { + if (other == null) { + return; + } + if (other.nextRotationTime_ != null) { + if (nextRotationTime_ == null) { + NextRotationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + NextRotationTime.MergeFrom(other.NextRotationTime); + } + if (other.rotationPeriod_ != null) { + if (rotationPeriod_ == null) { + RotationPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + RotationPeriod.MergeFrom(other.RotationPeriod); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (nextRotationTime_ == null) { + NextRotationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(NextRotationTime); + break; + } + case 18: { + if (rotationPeriod_ == null) { + RotationPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(RotationPeriod); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (nextRotationTime_ == null) { + NextRotationTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(NextRotationTime); + break; + } + case 18: { + if (rotationPeriod_ == null) { + RotationPeriod = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(RotationPeriod); + break; + } + } + } + } + #endif + + } + + /// + /// A secret payload resource in the Secret Manager API. This contains the + /// sensitive secret payload that is associated with a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SecretPayload : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SecretPayload()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ResourcesReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecretPayload() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecretPayload(SecretPayload other) : this() { + _hasBits0 = other._hasBits0; + data_ = other.data_; + dataCrc32C_ = other.dataCrc32C_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SecretPayload Clone() { + return new SecretPayload(this); + } + + /// Field number for the "data" field. + public const int DataFieldNumber = 1; + private pb::ByteString data_ = pb::ByteString.Empty; + /// + /// The secret data. Must be no larger than 64KiB. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Data { + get { return data_; } + set { + data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "data_crc32c" field. + public const int DataCrc32CFieldNumber = 2; + private readonly static long DataCrc32CDefaultValue = 0L; + + private long dataCrc32C_; + /// + /// Optional. If specified, + /// [SecretManagerService][google.cloud.secretmanager.v1beta2.SecretManagerService] + /// will verify the integrity of the received + /// [data][google.cloud.secretmanager.v1beta2.SecretPayload.data] on + /// [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion] + /// calls using the crc32c checksum and store it to include in future + /// [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion] + /// responses. If a checksum is not provided in the + /// [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion] + /// request, the + /// [SecretManagerService][google.cloud.secretmanager.v1beta2.SecretManagerService] + /// will generate and store one for you. + /// + /// The CRC32C value is encoded as a Int64 for compatibility, and can be + /// safely downconverted to uint32 in languages that support this type. + /// https://cloud.google.com/apis/design/design_patterns#integer_types + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DataCrc32C { + get { if ((_hasBits0 & 1) != 0) { return dataCrc32C_; } else { return DataCrc32CDefaultValue; } } + set { + _hasBits0 |= 1; + dataCrc32C_ = value; + } + } + /// Gets whether the "data_crc32c" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasDataCrc32C { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "data_crc32c" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearDataCrc32C() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SecretPayload); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SecretPayload other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Data != other.Data) return false; + if (DataCrc32C != other.DataCrc32C) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Data.Length != 0) hash ^= Data.GetHashCode(); + if (HasDataCrc32C) hash ^= DataCrc32C.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Data.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Data); + } + if (HasDataCrc32C) { + output.WriteRawTag(16); + output.WriteInt64(DataCrc32C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Data.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Data); + } + if (HasDataCrc32C) { + output.WriteRawTag(16); + output.WriteInt64(DataCrc32C); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Data.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); + } + if (HasDataCrc32C) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DataCrc32C); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SecretPayload other) { + if (other == null) { + return; + } + if (other.Data.Length != 0) { + Data = other.Data; + } + if (other.HasDataCrc32C) { + DataCrc32C = other.DataCrc32C; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Data = input.ReadBytes(); + break; + } + case 16: { + DataCrc32C = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Data = input.ReadBytes(); + break; + } + case 16: { + DataCrc32C = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ResourcesResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ResourcesResourceNames.g.cs new file mode 100755 index 000000000000..bac63be059be --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ResourcesResourceNames.g.cs @@ -0,0 +1,874 @@ +// Copyright 2025 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! + +#pragma warning disable CS8981 +using gax = Google.Api.Gax; +using gcsv = Google.Cloud.SecretManager.V1Beta2; +using sys = System; + +namespace Google.Cloud.SecretManager.V1Beta2 +{ + /// Resource name for the Secret resource. + public sealed partial class SecretName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// 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. + /// + /// A new instance of containing the provided . + /// + public static SecretName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new SecretName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern projects/{project}/secrets/{secret}. + /// + /// The Project 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 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}. + /// + /// The Project 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}/secrets/{secret}. + /// + public static string Format(string projectId, string secretId) => FormatProjectSecret(projectId, secretId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/secrets/{secret}. + /// + /// The Project 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}/secrets/{secret}. + /// + 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. + /// The parsed if successful. + public static SecretName Parse(string secretName) => Parse(secretName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// 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. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static SecretName Parse(string secretName, bool allowUnparsed) => + TryParse(secretName, allowUnparsed, out SecretName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse 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. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string secretName, out SecretName result) => TryParse(secretName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// 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. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string secretName, bool allowUnparsed, out SecretName result) + { + gax::GaxPreconditions.CheckNotNull(secretName, nameof(secretName)); + gax::TemplatedResourceName resourceName; + if (s_projectSecret.TryParseName(secretName, out resourceName)) + { + 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)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + 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; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/secrets/{secret} + /// + /// The Project ID. Must not be null or empty. + /// The Secret ID. Must not be null or empty. + public SecretName(string projectId, string secretId) : this(ResourceNameType.ProjectSecret, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), secretId: gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// 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. May be null, depending on which resource name is contained by this instance. + /// + public string SecretId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + 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."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as SecretName); + + /// + public bool Equals(SecretName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(SecretName a, SecretName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(SecretName a, SecretName b) => !(a == b); + } + + /// Resource name for the SecretVersion resource. + public sealed partial class SecretVersionName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// + /// 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. + /// + /// A new instance of containing the provided + /// . + /// + public static SecretVersionName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new SecretVersionName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern + /// projects/{project}/secrets/{secret}/versions/{secret_version}. + /// + /// The Project 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 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}. + /// + /// The Project 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}/secrets/{secret}/versions/{secret_version}. + /// + public static string Format(string projectId, string secretId, string secretVersionId) => + FormatProjectSecretSecretVersion(projectId, secretId, secretVersionId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/secrets/{secret}/versions/{secret_version}. + /// + /// The Project 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}/secrets/{secret}/versions/{secret_version}. + /// + 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. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// 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. + /// The parsed if successful. + public static SecretVersionName Parse(string secretVersionName) => Parse(secretVersionName, false); + + /// + /// Parses the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// 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. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static SecretVersionName Parse(string secretVersionName, bool allowUnparsed) => + TryParse(secretVersionName, allowUnparsed, out SecretVersionName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse 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}/versions/{secret_version} + /// + /// + /// + /// projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version} + /// + /// + /// + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string secretVersionName, out SecretVersionName result) => + TryParse(secretVersionName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; + /// optionally allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// + /// + /// 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. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string secretVersionName, bool allowUnparsed, out SecretVersionName result) + { + gax::GaxPreconditions.CheckNotNull(secretVersionName, nameof(secretVersionName)); + gax::TemplatedResourceName resourceName; + if (s_projectSecretSecretVersion.TryParseName(secretVersionName, out resourceName)) + { + 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)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + 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; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/secrets/{secret}/versions/{secret_version} + /// + /// The Project 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. + public SecretVersionName(string projectId, string secretId, string secretVersionId) : this(ResourceNameType.ProjectSecretSecretVersion, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), secretId: gax::GaxPreconditions.CheckNotNullOrEmpty(secretId, nameof(secretId)), secretVersionId: gax::GaxPreconditions.CheckNotNullOrEmpty(secretVersionId, nameof(secretVersionId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// 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. May be null, depending on which resource name is contained by this instance. + /// + public string SecretId { get; } + + /// + /// The SecretVersion ID. May be null, depending on which resource name is contained by this + /// instance. + /// + public string SecretVersionId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + 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."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as SecretVersionName); + + /// + public bool Equals(SecretVersionName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(SecretVersionName a, SecretVersionName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(SecretVersionName a, SecretVersionName b) => !(a == b); + } + + /// Resource name for the Topic resource. + public sealed partial class TopicName : gax::IResourceName, sys::IEquatable + { + /// The possible contents of . + public enum ResourceNameType + { + /// An unparsed resource name. + Unparsed = 0, + + /// A resource name with pattern projects/{project}/topics/{topic}. + ProjectTopic = 1, + } + + private static gax::PathTemplate s_projectTopic = new gax::PathTemplate("projects/{project}/topics/{topic}"); + + /// Creates a containing an unparsed resource name. + /// The unparsed resource name. Must not be null. + /// + /// A new instance of containing the provided . + /// + public static TopicName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new TopicName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + + /// + /// Creates a with the pattern projects/{project}/topics/{topic}. + /// + /// The Project ID. Must not be null or empty. + /// The Topic ID. Must not be null or empty. + /// A new instance of constructed from the provided ids. + public static TopicName FromProjectTopic(string projectId, string topicId) => + new TopicName(ResourceNameType.ProjectTopic, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), topicId: gax::GaxPreconditions.CheckNotNullOrEmpty(topicId, nameof(topicId))); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/topics/{topic}. + /// + /// The Project ID. Must not be null or empty. + /// The Topic ID. Must not be null or empty. + /// + /// The string representation of this with pattern projects/{project}/topics/{topic} + /// . + /// + public static string Format(string projectId, string topicId) => FormatProjectTopic(projectId, topicId); + + /// + /// Formats the IDs into the string representation of this with pattern + /// projects/{project}/topics/{topic}. + /// + /// The Project ID. Must not be null or empty. + /// The Topic ID. Must not be null or empty. + /// + /// The string representation of this with pattern projects/{project}/topics/{topic} + /// . + /// + public static string FormatProjectTopic(string projectId, string topicId) => + s_projectTopic.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), gax::GaxPreconditions.CheckNotNullOrEmpty(topicId, nameof(topicId))); + + /// 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}/topics/{topic} + /// + /// The resource name in string form. Must not be null. + /// The parsed if successful. + public static TopicName Parse(string topicName) => Parse(topicName, false); + + /// + /// Parses the given resource name string into a new instance; optionally allowing an + /// unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// projects/{project}/topics/{topic} + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// The parsed if successful. + public static TopicName Parse(string topicName, bool allowUnparsed) => + TryParse(topicName, allowUnparsed, out TopicName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + + /// + /// Tries to parse 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}/topics/{topic} + /// + /// The resource name in string form. Must not be null. + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string topicName, out TopicName result) => TryParse(topicName, false, out result); + + /// + /// Tries to parse the given resource name string into a new instance; optionally + /// allowing an unparseable resource name. + /// + /// + /// To parse successfully, the resource name must be formatted as one of the following: + /// projects/{project}/topics/{topic} + /// Or may be in any format if is true. + /// + /// The resource name in string form. Must not be null. + /// + /// If true will successfully store an unparseable resource name into the + /// property; otherwise will throw an if an unparseable resource name is + /// specified. + /// + /// + /// When this method returns, the parsed , or null if parsing failed. + /// + /// true if the name was parsed successfully; false otherwise. + public static bool TryParse(string topicName, bool allowUnparsed, out TopicName result) + { + gax::GaxPreconditions.CheckNotNull(topicName, nameof(topicName)); + gax::TemplatedResourceName resourceName; + if (s_projectTopic.TryParseName(topicName, out resourceName)) + { + result = FromProjectTopic(resourceName[0], resourceName[1]); + return true; + } + if (allowUnparsed) + { + if (gax::UnparsedResourceName.TryParse(topicName, out gax::UnparsedResourceName unparsedResourceName)) + { + result = FromUnparsed(unparsedResourceName); + return true; + } + } + result = null; + return false; + } + + private TopicName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string projectId = null, string topicId = null) + { + Type = type; + UnparsedResource = unparsedResourceName; + ProjectId = projectId; + TopicId = topicId; + } + + /// + /// Constructs a new instance of a class from the component parts of pattern + /// projects/{project}/topics/{topic} + /// + /// The Project ID. Must not be null or empty. + /// The Topic ID. Must not be null or empty. + public TopicName(string projectId, string topicId) : this(ResourceNameType.ProjectTopic, projectId: gax::GaxPreconditions.CheckNotNullOrEmpty(projectId, nameof(projectId)), topicId: gax::GaxPreconditions.CheckNotNullOrEmpty(topicId, nameof(topicId))) + { + } + + /// The of the contained resource name. + public ResourceNameType Type { get; } + + /// + /// The contained . Only non-null if this instance contains an + /// unparsed resource name. + /// + public gax::UnparsedResourceName UnparsedResource { get; } + + /// + /// The Project ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string ProjectId { get; } + + /// + /// The Topic ID. Will not be null, unless this instance contains an unparsed resource name. + /// + public string TopicId { get; } + + /// Whether this instance contains a resource name with a known pattern. + public bool IsKnownPattern => Type != ResourceNameType.Unparsed; + + /// The string representation of the resource name. + /// The string representation of the resource name. + public override string ToString() + { + switch (Type) + { + case ResourceNameType.Unparsed: return UnparsedResource.ToString(); + case ResourceNameType.ProjectTopic: return s_projectTopic.Expand(ProjectId, TopicId); + default: throw new sys::InvalidOperationException("Unrecognized resource-type."); + } + } + + /// Returns a hash code for this resource name. + public override int GetHashCode() => ToString().GetHashCode(); + + /// + public override bool Equals(object obj) => Equals(obj as TopicName); + + /// + public bool Equals(TopicName other) => ToString() == other?.ToString(); + + /// Determines whether two specified resource names have the same value. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is the same as the value of ; otherwise, + /// false. + /// + public static bool operator ==(TopicName a, TopicName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + + /// Determines whether two specified resource names have different values. + /// The first resource name to compare, or null. + /// The second resource name to compare, or null. + /// + /// true if the value of is different from the value of ; otherwise, + /// false. + /// + public static bool operator !=(TopicName a, TopicName b) => !(a == b); + } + + public partial class Secret + { + /// + /// -typed view over the resource name property. + /// + public gcsv::SecretName SecretName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::SecretName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class SecretVersion + { + /// + /// -typed view over the resource name property. + /// + public gcsv::SecretVersionName SecretVersionName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::SecretVersionName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class Topic + { + /// + /// -typed view over the resource name property. + /// + public gcsv::TopicName TopicName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::TopicName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/SecretManagerServiceClient.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/SecretManagerServiceClient.g.cs new file mode 100755 index 000000000000..5a25e2fe8808 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/SecretManagerServiceClient.g.cs @@ -0,0 +1,3318 @@ +// Copyright 2025 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! + +#pragma warning disable CS8981 +using gagr = Google.Api.Gax.ResourceNames; +using gax = Google.Api.Gax; +using gaxgrpc = Google.Api.Gax.Grpc; +using gciv = Google.Cloud.Iam.V1; +using gcl = Google.Cloud.Location; +using grpccore = Grpc.Core; +using grpcinter = Grpc.Core.Interceptors; +using mel = Microsoft.Extensions.Logging; +using proto = Google.Protobuf; +using sc = System.Collections; +using scg = System.Collections.Generic; +using sco = System.Collections.ObjectModel; +using st = System.Threading; +using stt = System.Threading.Tasks; +using sys = System; +using wkt = Google.Protobuf.WellKnownTypes; + +namespace Google.Cloud.SecretManager.V1Beta2 +{ + /// Settings for instances. + public sealed partial class SecretManagerServiceSettings : gaxgrpc::ServiceSettingsBase + { + /// Get a new instance of the default . + /// A new instance of the default . + public static SecretManagerServiceSettings GetDefault() => new SecretManagerServiceSettings(); + + /// Constructs a new object with default settings. + public SecretManagerServiceSettings() + { + } + + private SecretManagerServiceSettings(SecretManagerServiceSettings existing) : base(existing) + { + gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); + ListSecretsSettings = existing.ListSecretsSettings; + CreateSecretSettings = existing.CreateSecretSettings; + AddSecretVersionSettings = existing.AddSecretVersionSettings; + GetSecretSettings = existing.GetSecretSettings; + UpdateSecretSettings = existing.UpdateSecretSettings; + DeleteSecretSettings = existing.DeleteSecretSettings; + ListSecretVersionsSettings = existing.ListSecretVersionsSettings; + GetSecretVersionSettings = existing.GetSecretVersionSettings; + AccessSecretVersionSettings = existing.AccessSecretVersionSettings; + DisableSecretVersionSettings = existing.DisableSecretVersionSettings; + EnableSecretVersionSettings = existing.EnableSecretVersionSettings; + DestroySecretVersionSettings = existing.DestroySecretVersionSettings; + SetIamPolicySettings = existing.SetIamPolicySettings; + GetIamPolicySettings = existing.GetIamPolicySettings; + TestIamPermissionsSettings = existing.TestIamPermissionsSettings; + LocationsSettings = existing.LocationsSettings; + OnCopy(existing); + } + + partial void OnCopy(SecretManagerServiceSettings existing); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.ListSecrets and SecretManagerServiceClient.ListSecretsAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListSecretsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.CreateSecret and SecretManagerServiceClient.CreateSecretAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings CreateSecretSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.AddSecretVersion and SecretManagerServiceClient.AddSecretVersionAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings AddSecretVersionSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.GetSecret and SecretManagerServiceClient.GetSecretAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetSecretSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.UpdateSecret and SecretManagerServiceClient.UpdateSecretAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings UpdateSecretSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.DeleteSecret and SecretManagerServiceClient.DeleteSecretAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings DeleteSecretSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.ListSecretVersions and + /// SecretManagerServiceClient.ListSecretVersionsAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings ListSecretVersionsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.GetSecretVersion and SecretManagerServiceClient.GetSecretVersionAsync + /// . + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetSecretVersionSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.AccessSecretVersion and + /// SecretManagerServiceClient.AccessSecretVersionAsync. + /// + /// + /// + /// Initial retry delay: 2000 milliseconds. + /// Retry delay multiplier: 2 + /// Retry maximum delay: 60000 milliseconds. + /// Maximum attempts: 5 + /// + /// + /// Retriable status codes: , + /// . + /// + /// + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings AccessSecretVersionSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(2000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 2, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.ResourceExhausted))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.DisableSecretVersion and + /// SecretManagerServiceClient.DisableSecretVersionAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings DisableSecretVersionSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.EnableSecretVersion and + /// SecretManagerServiceClient.EnableSecretVersionAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings EnableSecretVersionSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.DestroySecretVersion and + /// SecretManagerServiceClient.DestroySecretVersionAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings DestroySecretVersionSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.SetIamPolicy and SecretManagerServiceClient.SetIamPolicyAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings SetIamPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.GetIamPolicy and SecretManagerServiceClient.GetIamPolicyAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + public gaxgrpc::CallSettings GetIamPolicySettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))); + + /// + /// for synchronous and asynchronous calls to + /// SecretManagerServiceClient.TestIamPermissions and + /// SecretManagerServiceClient.TestIamPermissionsAsync. + /// + /// + /// + /// This call will not be retried. + /// Timeout: 60 seconds. + /// + /// + 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); + } + + /// + /// Builder class for to provide simple configuration of credentials, + /// endpoint etc. + /// + public sealed partial class SecretManagerServiceClientBuilder : gaxgrpc::ClientBuilderBase + { + /// The settings to use for RPCs, or null for the default settings. + public SecretManagerServiceSettings Settings { get; set; } + + /// Creates a new builder with default settings. + public SecretManagerServiceClientBuilder() : base(SecretManagerServiceClient.ServiceMetadata) + { + } + + partial void InterceptBuild(ref SecretManagerServiceClient client); + + partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); + + /// Builds the resulting client. + public override SecretManagerServiceClient Build() + { + SecretManagerServiceClient client = null; + InterceptBuild(ref client); + return client ?? BuildImpl(); + } + + /// Builds the resulting client asynchronously. + public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) + { + stt::Task task = null; + InterceptBuildAsync(cancellationToken, ref task); + return task ?? BuildAsyncImpl(cancellationToken); + } + + private SecretManagerServiceClient BuildImpl() + { + Validate(); + grpccore::CallInvoker callInvoker = CreateCallInvoker(); + return SecretManagerServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) + { + Validate(); + grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); + return SecretManagerServiceClient.Create(callInvoker, GetEffectiveSettings(Settings?.Clone()), Logger); + } + + /// Returns the channel pool to use when no other options are specified. + protected override gaxgrpc::ChannelPool GetChannelPool() => SecretManagerServiceClient.ChannelPool; + } + + /// SecretManagerService client wrapper, for convenient use. + /// + /// Secret Manager Service + /// + /// Manages secrets and operations using those secrets. Implements a REST + /// model with the following objects: + /// + /// * [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// * [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// + public abstract partial class SecretManagerServiceClient + { + /// + /// The default endpoint for the SecretManagerService service, which is a host of "secretmanager.googleapis.com" + /// and a port of 443. + /// + public static string DefaultEndpoint { get; } = "secretmanager.googleapis.com:443"; + + /// The default SecretManagerService scopes. + /// + /// The default SecretManagerService scopes are: + /// + /// https://www.googleapis.com/auth/cloud-platform + /// + /// + public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] + { + "https://www.googleapis.com/auth/cloud-platform", + }); + + /// The service metadata associated with this client type. + public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(SecretManagerService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc | gax::ApiTransports.Rest, PackageApiMetadata.ApiMetadata); + + internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); + + /// + /// Asynchronously creates a using the default credentials, endpoint + /// and settings. To specify custom credentials or other settings, use + /// . + /// + /// + /// The to use while creating the client. + /// + /// The task representing the created . + public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => + new SecretManagerServiceClientBuilder().BuildAsync(cancellationToken); + + /// + /// Synchronously creates a using the default credentials, endpoint and + /// settings. To specify custom credentials or other settings, use + /// . + /// + /// The created . + public static SecretManagerServiceClient Create() => new SecretManagerServiceClientBuilder().Build(); + + /// + /// Creates a which uses the specified call invoker for remote + /// operations. + /// + /// + /// The for remote operations. Must not be null. + /// + /// Optional . + /// Optional . + /// The created . + internal static SecretManagerServiceClient Create(grpccore::CallInvoker callInvoker, SecretManagerServiceSettings settings = null, mel::ILogger logger = null) + { + gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); + grpcinter::Interceptor interceptor = settings?.Interceptor; + if (interceptor != null) + { + callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); + } + SecretManagerService.SecretManagerServiceClient grpcClient = new SecretManagerService.SecretManagerServiceClient(callInvoker); + return new SecretManagerServiceClientImpl(grpcClient, settings, logger); + } + + /// + /// Shuts down any channels automatically created by and + /// . Channels which weren't automatically created are not + /// affected. + /// + /// + /// After calling this method, further calls to and + /// will create new channels, which could in turn be shut down + /// by another call to this method. + /// + /// A task representing the asynchronous shutdown operation. + public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); + + /// 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.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListSecrets(ListSecretsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListSecretsAsync(ListSecretsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1beta2.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(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListSecretsRequest request = new ListSecretsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSecrets(request, callSettings); + } + + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1beta2.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(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListSecretsRequest request = new ListSecretsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSecretsAsync(request, callSettings); + } + + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1beta2.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::ProjectName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListSecretsRequest request = new ListSecretsRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSecrets(request, callSettings); + } + + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1beta2.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::ProjectName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListSecretsRequest request = new ListSecretsRequest + { + ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSecretsAsync(request, callSettings); + } + + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1beta2.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) + { + ListSecretsRequest request = new ListSecretsRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSecrets(request, callSettings); + } + + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1beta2.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) + { + ListSecretsRequest request = new ListSecretsRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSecretsAsync(request, callSettings); + } + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Secret CreateSecret(CreateSecretRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateSecretAsync(CreateSecretRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateSecretAsync(CreateSecretRequest request, st::CancellationToken cancellationToken) => + CreateSecretAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1beta2.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.v1beta2.Secret] with + /// initial field values. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Secret CreateSecret(string parent, string secretId, Secret secret, gaxgrpc::CallSettings callSettings = null) => + CreateSecret(new CreateSecretRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(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.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1beta2.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.v1beta2.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(string parent, string secretId, Secret secret, gaxgrpc::CallSettings callSettings = null) => + CreateSecretAsync(new CreateSecretRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(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.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1beta2.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.v1beta2.Secret] with + /// initial field values. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateSecretAsync(string parent, string secretId, Secret secret, st::CancellationToken cancellationToken) => + CreateSecretAsync(parent, secretId, secret, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1beta2.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.v1beta2.Secret] with + /// initial field values. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Secret CreateSecret(gagr::ProjectName parent, string secretId, Secret secret, gaxgrpc::CallSettings callSettings = null) => + CreateSecret(new CreateSecretRequest + { + ParentAsProjectName = 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.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1beta2.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.v1beta2.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::ProjectName parent, string secretId, Secret secret, gaxgrpc::CallSettings callSettings = null) => + CreateSecretAsync(new CreateSecretRequest + { + ParentAsProjectName = 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.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1beta2.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.v1beta2.Secret] with + /// initial field values. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + 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.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1beta2.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.v1beta2.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.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1beta2.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.v1beta2.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.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1beta2.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.v1beta2.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.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion AddSecretVersion(AddSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task AddSecretVersionAsync(AddSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task AddSecretVersionAsync(AddSecretVersionRequest request, st::CancellationToken cancellationToken) => + AddSecretVersionAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion AddSecretVersion(string parent, SecretPayload payload, gaxgrpc::CallSettings callSettings = null) => + AddSecretVersion(new AddSecretVersionRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + Payload = gax::GaxPreconditions.CheckNotNull(payload, nameof(payload)), + }, callSettings); + + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task AddSecretVersionAsync(string parent, SecretPayload payload, gaxgrpc::CallSettings callSettings = null) => + AddSecretVersionAsync(new AddSecretVersionRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + Payload = gax::GaxPreconditions.CheckNotNull(payload, nameof(payload)), + }, callSettings); + + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task AddSecretVersionAsync(string parent, SecretPayload payload, st::CancellationToken cancellationToken) => + AddSecretVersionAsync(parent, payload, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion AddSecretVersion(SecretName parent, SecretPayload payload, gaxgrpc::CallSettings callSettings = null) => + AddSecretVersion(new AddSecretVersionRequest + { + ParentAsSecretName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + Payload = gax::GaxPreconditions.CheckNotNull(payload, nameof(payload)), + }, callSettings); + + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task AddSecretVersionAsync(SecretName parent, SecretPayload payload, gaxgrpc::CallSettings callSettings = null) => + AddSecretVersionAsync(new AddSecretVersionRequest + { + ParentAsSecretName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + Payload = gax::GaxPreconditions.CheckNotNull(payload, nameof(payload)), + }, callSettings); + + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task AddSecretVersionAsync(SecretName parent, SecretPayload payload, st::CancellationToken cancellationToken) => + AddSecretVersionAsync(parent, payload, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Secret GetSecret(GetSecretRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSecretAsync(GetSecretRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSecretAsync(GetSecretRequest request, st::CancellationToken cancellationToken) => + GetSecretAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret], in the format + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Secret GetSecret(string name, gaxgrpc::CallSettings callSettings = null) => + GetSecret(new GetSecretRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret], in the format + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSecretAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetSecretAsync(new GetSecretRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret], in the format + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSecretAsync(string name, st::CancellationToken cancellationToken) => + GetSecretAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret], in the format + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Secret GetSecret(SecretName name, gaxgrpc::CallSettings callSettings = null) => + GetSecret(new GetSecretRequest + { + SecretName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret], in the format + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSecretAsync(SecretName name, gaxgrpc::CallSettings callSettings = null) => + GetSecretAsync(new GetSecretRequest + { + SecretName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret], in the format + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSecretAsync(SecretName name, st::CancellationToken cancellationToken) => + GetSecretAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Secret UpdateSecret(UpdateSecretRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateSecretAsync(UpdateSecretRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateSecretAsync(UpdateSecretRequest request, st::CancellationToken cancellationToken) => + UpdateSecretAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. [Secret][google.cloud.secretmanager.v1beta2.Secret] with updated + /// field values. + /// + /// + /// Required. Specifies the fields to be updated. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Secret UpdateSecret(Secret secret, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateSecret(new UpdateSecretRequest + { + Secret = gax::GaxPreconditions.CheckNotNull(secret, nameof(secret)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. [Secret][google.cloud.secretmanager.v1beta2.Secret] with updated + /// field values. + /// + /// + /// Required. Specifies the fields to be updated. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateSecretAsync(Secret secret, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateSecretAsync(new UpdateSecretRequest + { + Secret = gax::GaxPreconditions.CheckNotNull(secret, nameof(secret)), + UpdateMask = gax::GaxPreconditions.CheckNotNull(updateMask, nameof(updateMask)), + }, callSettings); + + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. [Secret][google.cloud.secretmanager.v1beta2.Secret] with updated + /// field values. + /// + /// + /// Required. Specifies the fields to be updated. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateSecretAsync(Secret secret, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateSecretAsync(secret, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteSecret(DeleteSecretRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteSecretAsync(DeleteSecretRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteSecretAsync(DeleteSecretRequest request, st::CancellationToken cancellationToken) => + DeleteSecretAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to delete in the format + /// `projects/*/secrets/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteSecret(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteSecret(new DeleteSecretRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to delete in the format + /// `projects/*/secrets/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteSecretAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteSecretAsync(new DeleteSecretRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to delete in the format + /// `projects/*/secrets/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteSecretAsync(string name, st::CancellationToken cancellationToken) => + DeleteSecretAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to delete in the format + /// `projects/*/secrets/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteSecret(SecretName name, gaxgrpc::CallSettings callSettings = null) => + DeleteSecret(new DeleteSecretRequest + { + SecretName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to delete in the format + /// `projects/*/secrets/*`. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteSecretAsync(SecretName name, gaxgrpc::CallSettings callSettings = null) => + DeleteSecretAsync(new DeleteSecretRequest + { + SecretName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to delete in the format + /// `projects/*/secrets/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteSecretAsync(SecretName name, st::CancellationToken cancellationToken) => + DeleteSecretAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// This call does not return secret data. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public virtual gax::PagedEnumerable ListSecretVersions(ListSecretVersionsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// This call does not return secret data. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public virtual gax::PagedAsyncEnumerable ListSecretVersionsAsync(ListSecretVersionsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// This call does not return secret data. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] associated with the + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] to list, + /// in 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 + /// 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 ListSecretVersions(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListSecretVersionsRequest request = new ListSecretVersionsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSecretVersions(request, callSettings); + } + + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// This call does not return secret data. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] associated with the + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] to list, + /// in 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 + /// 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 ListSecretVersionsAsync(string parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListSecretVersionsRequest request = new ListSecretVersionsRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSecretVersionsAsync(request, callSettings); + } + + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// This call does not return secret data. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] associated with the + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] to list, + /// in 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 + /// 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 ListSecretVersions(SecretName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListSecretVersionsRequest request = new ListSecretVersionsRequest + { + ParentAsSecretName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSecretVersions(request, callSettings); + } + + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// This call does not return secret data. + /// + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] associated with the + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] to list, + /// in 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 + /// 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 ListSecretVersionsAsync(SecretName parent, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) + { + ListSecretVersionsRequest request = new ListSecretVersionsRequest + { + ParentAsSecretName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + }; + if (pageToken != null) + { + request.PageToken = pageToken; + } + if (pageSize != null) + { + request.PageSize = pageSize.Value; + } + return ListSecretVersionsAsync(request, callSettings); + } + + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion GetSecretVersion(GetSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSecretVersionAsync(GetSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSecretVersionAsync(GetSecretVersionRequest request, st::CancellationToken cancellationToken) => + GetSecretVersionAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion GetSecretVersion(string name, gaxgrpc::CallSettings callSettings = null) => + GetSecretVersion(new GetSecretVersionRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSecretVersionAsync(string name, gaxgrpc::CallSettings callSettings = null) => + GetSecretVersionAsync(new GetSecretVersionRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSecretVersionAsync(string name, st::CancellationToken cancellationToken) => + GetSecretVersionAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion GetSecretVersion(SecretVersionName name, gaxgrpc::CallSettings callSettings = null) => + GetSecretVersion(new GetSecretVersionRequest + { + SecretVersionName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetSecretVersionAsync(SecretVersionName name, gaxgrpc::CallSettings callSettings = null) => + GetSecretVersionAsync(new GetSecretVersionRequest + { + SecretVersionName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetSecretVersionAsync(SecretVersionName name, st::CancellationToken cancellationToken) => + GetSecretVersionAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AccessSecretVersionResponse AccessSecretVersion(AccessSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task AccessSecretVersionAsync(AccessSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task AccessSecretVersionAsync(AccessSecretVersionRequest request, st::CancellationToken cancellationToken) => + AccessSecretVersionAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AccessSecretVersionResponse AccessSecretVersion(string name, gaxgrpc::CallSettings callSettings = null) => + AccessSecretVersion(new AccessSecretVersionRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task AccessSecretVersionAsync(string name, gaxgrpc::CallSettings callSettings = null) => + AccessSecretVersionAsync(new AccessSecretVersionRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task AccessSecretVersionAsync(string name, st::CancellationToken cancellationToken) => + AccessSecretVersionAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual AccessSecretVersionResponse AccessSecretVersion(SecretVersionName name, gaxgrpc::CallSettings callSettings = null) => + AccessSecretVersion(new AccessSecretVersionRequest + { + SecretVersionName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task AccessSecretVersionAsync(SecretVersionName name, gaxgrpc::CallSettings callSettings = null) => + AccessSecretVersionAsync(new AccessSecretVersionRequest + { + SecretVersionName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task AccessSecretVersionAsync(SecretVersionName name, st::CancellationToken cancellationToken) => + AccessSecretVersionAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion DisableSecretVersion(DisableSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DisableSecretVersionAsync(DisableSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DisableSecretVersionAsync(DisableSecretVersionRequest request, st::CancellationToken cancellationToken) => + DisableSecretVersionAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// disable in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion DisableSecretVersion(string name, gaxgrpc::CallSettings callSettings = null) => + DisableSecretVersion(new DisableSecretVersionRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// disable in 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. + public virtual stt::Task DisableSecretVersionAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DisableSecretVersionAsync(new DisableSecretVersionRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// disable in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DisableSecretVersionAsync(string name, st::CancellationToken cancellationToken) => + DisableSecretVersionAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// disable in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion DisableSecretVersion(SecretVersionName name, gaxgrpc::CallSettings callSettings = null) => + DisableSecretVersion(new DisableSecretVersionRequest + { + SecretVersionName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// disable in 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. + public virtual stt::Task DisableSecretVersionAsync(SecretVersionName name, gaxgrpc::CallSettings callSettings = null) => + DisableSecretVersionAsync(new DisableSecretVersionRequest + { + SecretVersionName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// disable in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DisableSecretVersionAsync(SecretVersionName name, st::CancellationToken cancellationToken) => + DisableSecretVersionAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion EnableSecretVersion(EnableSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task EnableSecretVersionAsync(EnableSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task EnableSecretVersionAsync(EnableSecretVersionRequest request, st::CancellationToken cancellationToken) => + EnableSecretVersionAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to enable + /// in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion EnableSecretVersion(string name, gaxgrpc::CallSettings callSettings = null) => + EnableSecretVersion(new EnableSecretVersionRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to enable + /// in 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. + public virtual stt::Task EnableSecretVersionAsync(string name, gaxgrpc::CallSettings callSettings = null) => + EnableSecretVersionAsync(new EnableSecretVersionRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to enable + /// in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task EnableSecretVersionAsync(string name, st::CancellationToken cancellationToken) => + EnableSecretVersionAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to enable + /// in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion EnableSecretVersion(SecretVersionName name, gaxgrpc::CallSettings callSettings = null) => + EnableSecretVersion(new EnableSecretVersionRequest + { + SecretVersionName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to enable + /// in 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. + public virtual stt::Task EnableSecretVersionAsync(SecretVersionName name, gaxgrpc::CallSettings callSettings = null) => + EnableSecretVersionAsync(new EnableSecretVersionRequest + { + SecretVersionName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to enable + /// in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task EnableSecretVersionAsync(SecretVersionName name, st::CancellationToken cancellationToken) => + EnableSecretVersionAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion DestroySecretVersion(DestroySecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DestroySecretVersionAsync(DestroySecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DestroySecretVersionAsync(DestroySecretVersionRequest request, st::CancellationToken cancellationToken) => + DestroySecretVersionAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// destroy in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion DestroySecretVersion(string name, gaxgrpc::CallSettings callSettings = null) => + DestroySecretVersion(new DestroySecretVersionRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// destroy in 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. + public virtual stt::Task DestroySecretVersionAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DestroySecretVersionAsync(new DestroySecretVersionRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// destroy in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DestroySecretVersionAsync(string name, st::CancellationToken cancellationToken) => + DestroySecretVersionAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// destroy in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual SecretVersion DestroySecretVersion(SecretVersionName name, gaxgrpc::CallSettings callSettings = null) => + DestroySecretVersion(new DestroySecretVersionRequest + { + SecretVersionName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// destroy in 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. + public virtual stt::Task DestroySecretVersionAsync(SecretVersionName name, gaxgrpc::CallSettings callSettings = null) => + DestroySecretVersionAsync(new DestroySecretVersionRequest + { + SecretVersionName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// destroy in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DestroySecretVersionAsync(SecretVersionName name, st::CancellationToken cancellationToken) => + DestroySecretVersionAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Sets the access control policy on the specified secret. Replaces any + /// existing policy. + /// + /// Permissions on + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] are + /// enforced according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy SetIamPolicy(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Sets the access control policy on the specified secret. Replaces any + /// existing policy. + /// + /// Permissions on + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] are + /// enforced according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Sets the access control policy on the specified secret. Replaces any + /// existing policy. + /// + /// Permissions on + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] are + /// enforced according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task SetIamPolicyAsync(gciv::SetIamPolicyRequest request, st::CancellationToken cancellationToken) => + SetIamPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Gets the access control policy for a secret. + /// Returns empty policy if the secret exists and does not have a policy set. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::Policy GetIamPolicy(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the access control policy for a secret. + /// Returns empty policy if the secret exists and does not have a policy set. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Gets the access control policy for a secret. + /// Returns empty policy if the secret exists and does not have a policy set. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task GetIamPolicyAsync(gciv::GetIamPolicyRequest request, st::CancellationToken cancellationToken) => + GetIamPolicyAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Returns permissions that a caller has for the specified secret. + /// If the secret does not exist, this call returns an empty set of + /// permissions, not a NOT_FOUND error. + /// + /// Note: This operation is designed to be used for building permission-aware + /// UIs and command-line tools, not for authorization checking. This operation + /// may "fail open" without warning. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual gciv::TestIamPermissionsResponse TestIamPermissions(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns permissions that a caller has for the specified secret. + /// If the secret does not exist, this call returns an empty set of + /// permissions, not a NOT_FOUND error. + /// + /// Note: This operation is designed to be used for building permission-aware + /// UIs and command-line tools, not for authorization checking. This operation + /// may "fail open" without warning. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Returns permissions that a caller has for the specified secret. + /// If the secret does not exist, this call returns an empty set of + /// permissions, not a NOT_FOUND error. + /// + /// Note: This operation is designed to be used for building permission-aware + /// UIs and command-line tools, not for authorization checking. This operation + /// may "fail open" without warning. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task TestIamPermissionsAsync(gciv::TestIamPermissionsRequest request, st::CancellationToken cancellationToken) => + TestIamPermissionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + } + + /// SecretManagerService client wrapper implementation, for convenient use. + /// + /// Secret Manager Service + /// + /// Manages secrets and operations using those secrets. Implements a REST + /// model with the following objects: + /// + /// * [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// * [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// + public sealed partial class SecretManagerServiceClientImpl : SecretManagerServiceClient + { + private readonly gaxgrpc::ApiCall _callListSecrets; + + private readonly gaxgrpc::ApiCall _callCreateSecret; + + private readonly gaxgrpc::ApiCall _callAddSecretVersion; + + private readonly gaxgrpc::ApiCall _callGetSecret; + + private readonly gaxgrpc::ApiCall _callUpdateSecret; + + private readonly gaxgrpc::ApiCall _callDeleteSecret; + + private readonly gaxgrpc::ApiCall _callListSecretVersions; + + private readonly gaxgrpc::ApiCall _callGetSecretVersion; + + private readonly gaxgrpc::ApiCall _callAccessSecretVersion; + + private readonly gaxgrpc::ApiCall _callDisableSecretVersion; + + private readonly gaxgrpc::ApiCall _callEnableSecretVersion; + + private readonly gaxgrpc::ApiCall _callDestroySecretVersion; + + private readonly gaxgrpc::ApiCall _callSetIamPolicy; + + private readonly gaxgrpc::ApiCall _callGetIamPolicy; + + private readonly gaxgrpc::ApiCall _callTestIamPermissions; + + /// + /// Constructs a client wrapper for the SecretManagerService service, with the specified gRPC client and + /// settings. + /// + /// The underlying gRPC client. + /// The base used within this client. + /// Optional to use within this client. + public SecretManagerServiceClientImpl(SecretManagerService.SecretManagerServiceClient grpcClient, SecretManagerServiceSettings settings, mel::ILogger logger) + { + GrpcClient = grpcClient; + SecretManagerServiceSettings effectiveSettings = settings ?? SecretManagerServiceSettings.GetDefault(); + gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(new gaxgrpc::ClientHelper.Options + { + 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); + _callCreateSecret = clientHelper.BuildApiCall("CreateSecret", grpcClient.CreateSecretAsync, grpcClient.CreateSecret, effectiveSettings.CreateSecretSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateSecret); + Modify_CreateSecretApiCall(ref _callCreateSecret); + _callAddSecretVersion = clientHelper.BuildApiCall("AddSecretVersion", grpcClient.AddSecretVersionAsync, grpcClient.AddSecretVersion, effectiveSettings.AddSecretVersionSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callAddSecretVersion); + Modify_AddSecretVersionApiCall(ref _callAddSecretVersion); + _callGetSecret = clientHelper.BuildApiCall("GetSecret", grpcClient.GetSecretAsync, grpcClient.GetSecret, effectiveSettings.GetSecretSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetSecret); + Modify_GetSecretApiCall(ref _callGetSecret); + _callUpdateSecret = clientHelper.BuildApiCall("UpdateSecret", grpcClient.UpdateSecretAsync, grpcClient.UpdateSecret, effectiveSettings.UpdateSecretSettings).WithGoogleRequestParam("secret.name", request => request.Secret?.Name); + Modify_ApiCall(ref _callUpdateSecret); + Modify_UpdateSecretApiCall(ref _callUpdateSecret); + _callDeleteSecret = clientHelper.BuildApiCall("DeleteSecret", grpcClient.DeleteSecretAsync, grpcClient.DeleteSecret, effectiveSettings.DeleteSecretSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteSecret); + Modify_DeleteSecretApiCall(ref _callDeleteSecret); + _callListSecretVersions = clientHelper.BuildApiCall("ListSecretVersions", grpcClient.ListSecretVersionsAsync, grpcClient.ListSecretVersions, effectiveSettings.ListSecretVersionsSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callListSecretVersions); + Modify_ListSecretVersionsApiCall(ref _callListSecretVersions); + _callGetSecretVersion = clientHelper.BuildApiCall("GetSecretVersion", grpcClient.GetSecretVersionAsync, grpcClient.GetSecretVersion, effectiveSettings.GetSecretVersionSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callGetSecretVersion); + Modify_GetSecretVersionApiCall(ref _callGetSecretVersion); + _callAccessSecretVersion = clientHelper.BuildApiCall("AccessSecretVersion", grpcClient.AccessSecretVersionAsync, grpcClient.AccessSecretVersion, effectiveSettings.AccessSecretVersionSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callAccessSecretVersion); + Modify_AccessSecretVersionApiCall(ref _callAccessSecretVersion); + _callDisableSecretVersion = clientHelper.BuildApiCall("DisableSecretVersion", grpcClient.DisableSecretVersionAsync, grpcClient.DisableSecretVersion, effectiveSettings.DisableSecretVersionSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDisableSecretVersion); + Modify_DisableSecretVersionApiCall(ref _callDisableSecretVersion); + _callEnableSecretVersion = clientHelper.BuildApiCall("EnableSecretVersion", grpcClient.EnableSecretVersionAsync, grpcClient.EnableSecretVersion, effectiveSettings.EnableSecretVersionSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callEnableSecretVersion); + Modify_EnableSecretVersionApiCall(ref _callEnableSecretVersion); + _callDestroySecretVersion = clientHelper.BuildApiCall("DestroySecretVersion", grpcClient.DestroySecretVersionAsync, grpcClient.DestroySecretVersion, effectiveSettings.DestroySecretVersionSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDestroySecretVersion); + Modify_DestroySecretVersionApiCall(ref _callDestroySecretVersion); + _callSetIamPolicy = clientHelper.BuildApiCall("SetIamPolicy", grpcClient.SetIamPolicyAsync, grpcClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings).WithGoogleRequestParam("resource", request => request.Resource); + Modify_ApiCall(ref _callSetIamPolicy); + Modify_SetIamPolicyApiCall(ref _callSetIamPolicy); + _callGetIamPolicy = clientHelper.BuildApiCall("GetIamPolicy", grpcClient.GetIamPolicyAsync, grpcClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings).WithGoogleRequestParam("resource", request => request.Resource); + Modify_ApiCall(ref _callGetIamPolicy); + Modify_GetIamPolicyApiCall(ref _callGetIamPolicy); + _callTestIamPermissions = clientHelper.BuildApiCall("TestIamPermissions", grpcClient.TestIamPermissionsAsync, grpcClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings).WithGoogleRequestParam("resource", request => request.Resource); + Modify_ApiCall(ref _callTestIamPermissions); + Modify_TestIamPermissionsApiCall(ref _callTestIamPermissions); + OnConstruction(grpcClient, effectiveSettings, clientHelper); + } + + partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; + + partial void Modify_ListSecretsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_CreateSecretApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_AddSecretVersionApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetSecretApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateSecretApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteSecretApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_ListSecretVersionsApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetSecretVersionApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_AccessSecretVersionApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DisableSecretVersionApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_EnableSecretVersionApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DestroySecretVersionApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_SetIamPolicyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_GetIamPolicyApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_TestIamPermissionsApiCall(ref gaxgrpc::ApiCall call); + + partial void OnConstruction(SecretManagerService.SecretManagerServiceClient grpcClient, SecretManagerServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); + + /// 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); + + partial void Modify_AddSecretVersionRequest(ref AddSecretVersionRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetSecretRequest(ref GetSecretRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateSecretRequest(ref UpdateSecretRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteSecretRequest(ref DeleteSecretRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_ListSecretVersionsRequest(ref ListSecretVersionsRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetSecretVersionRequest(ref GetSecretVersionRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_AccessSecretVersionRequest(ref AccessSecretVersionRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DisableSecretVersionRequest(ref DisableSecretVersionRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_EnableSecretVersionRequest(ref EnableSecretVersionRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DestroySecretVersionRequest(ref DestroySecretVersionRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_SetIamPolicyRequest(ref gciv::SetIamPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_GetIamPolicyRequest(ref gciv::GetIamPolicyRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_TestIamPermissionsRequest(ref gciv::TestIamPermissionsRequest request, ref gaxgrpc::CallSettings settings); + + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListSecrets(ListSecretsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListSecretsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListSecrets, request, callSettings); + } + + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListSecretsAsync(ListSecretsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListSecretsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListSecrets, request, callSettings); + } + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Secret CreateSecret(CreateSecretRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateSecretRequest(ref request, ref callSettings); + return _callCreateSecret.Sync(request, callSettings); + } + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task CreateSecretAsync(CreateSecretRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateSecretRequest(ref request, ref callSettings); + return _callCreateSecret.Async(request, callSettings); + } + + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override SecretVersion AddSecretVersion(AddSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_AddSecretVersionRequest(ref request, ref callSettings); + return _callAddSecretVersion.Sync(request, callSettings); + } + + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task AddSecretVersionAsync(AddSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_AddSecretVersionRequest(ref request, ref callSettings); + return _callAddSecretVersion.Async(request, callSettings); + } + + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Secret GetSecret(GetSecretRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetSecretRequest(ref request, ref callSettings); + return _callGetSecret.Sync(request, callSettings); + } + + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetSecretAsync(GetSecretRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetSecretRequest(ref request, ref callSettings); + return _callGetSecret.Async(request, callSettings); + } + + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Secret UpdateSecret(UpdateSecretRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateSecretRequest(ref request, ref callSettings); + return _callUpdateSecret.Sync(request, callSettings); + } + + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task UpdateSecretAsync(UpdateSecretRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateSecretRequest(ref request, ref callSettings); + return _callUpdateSecret.Async(request, callSettings); + } + + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override void DeleteSecret(DeleteSecretRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteSecretRequest(ref request, ref callSettings); + _callDeleteSecret.Sync(request, callSettings); + } + + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DeleteSecretAsync(DeleteSecretRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteSecretRequest(ref request, ref callSettings); + return _callDeleteSecret.Async(request, callSettings); + } + + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// This call does not return secret data. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable sequence of resources. + public override gax::PagedEnumerable ListSecretVersions(ListSecretVersionsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListSecretVersionsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedEnumerable(_callListSecretVersions, request, callSettings); + } + + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// This call does not return secret data. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A pageable asynchronous sequence of resources. + public override gax::PagedAsyncEnumerable ListSecretVersionsAsync(ListSecretVersionsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_ListSecretVersionsRequest(ref request, ref callSettings); + return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListSecretVersions, request, callSettings); + } + + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override SecretVersion GetSecretVersion(GetSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetSecretVersionRequest(ref request, ref callSettings); + return _callGetSecretVersion.Sync(request, callSettings); + } + + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetSecretVersionAsync(GetSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetSecretVersionRequest(ref request, ref callSettings); + return _callGetSecretVersion.Async(request, callSettings); + } + + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override AccessSecretVersionResponse AccessSecretVersion(AccessSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_AccessSecretVersionRequest(ref request, ref callSettings); + return _callAccessSecretVersion.Sync(request, callSettings); + } + + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task AccessSecretVersionAsync(AccessSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_AccessSecretVersionRequest(ref request, ref callSettings); + return _callAccessSecretVersion.Async(request, callSettings); + } + + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override SecretVersion DisableSecretVersion(DisableSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DisableSecretVersionRequest(ref request, ref callSettings); + return _callDisableSecretVersion.Sync(request, callSettings); + } + + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DisableSecretVersionAsync(DisableSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DisableSecretVersionRequest(ref request, ref callSettings); + return _callDisableSecretVersion.Async(request, callSettings); + } + + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override SecretVersion EnableSecretVersion(EnableSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_EnableSecretVersionRequest(ref request, ref callSettings); + return _callEnableSecretVersion.Sync(request, callSettings); + } + + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task EnableSecretVersionAsync(EnableSecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_EnableSecretVersionRequest(ref request, ref callSettings); + return _callEnableSecretVersion.Async(request, callSettings); + } + + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override SecretVersion DestroySecretVersion(DestroySecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DestroySecretVersionRequest(ref request, ref callSettings); + return _callDestroySecretVersion.Sync(request, callSettings); + } + + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DestroySecretVersionAsync(DestroySecretVersionRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DestroySecretVersionRequest(ref request, ref callSettings); + return _callDestroySecretVersion.Async(request, callSettings); + } + + /// + /// Sets the access control policy on the specified secret. Replaces any + /// existing policy. + /// + /// Permissions on + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] are + /// enforced according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override gciv::Policy SetIamPolicy(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SetIamPolicyRequest(ref request, ref callSettings); + return _callSetIamPolicy.Sync(request, callSettings); + } + + /// + /// Sets the access control policy on the specified secret. Replaces any + /// existing policy. + /// + /// Permissions on + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] are + /// enforced according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task SetIamPolicyAsync(gciv::SetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_SetIamPolicyRequest(ref request, ref callSettings); + return _callSetIamPolicy.Async(request, callSettings); + } + + /// + /// Gets the access control policy for a secret. + /// Returns empty policy if the secret exists and does not have a policy set. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override gciv::Policy GetIamPolicy(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetIamPolicyRequest(ref request, ref callSettings); + return _callGetIamPolicy.Sync(request, callSettings); + } + + /// + /// Gets the access control policy for a secret. + /// Returns empty policy if the secret exists and does not have a policy set. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task GetIamPolicyAsync(gciv::GetIamPolicyRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_GetIamPolicyRequest(ref request, ref callSettings); + return _callGetIamPolicy.Async(request, callSettings); + } + + /// + /// Returns permissions that a caller has for the specified secret. + /// If the secret does not exist, this call returns an empty set of + /// permissions, not a NOT_FOUND error. + /// + /// Note: This operation is designed to be used for building permission-aware + /// UIs and command-line tools, not for authorization checking. This operation + /// may "fail open" without warning. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override gciv::TestIamPermissionsResponse TestIamPermissions(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_TestIamPermissionsRequest(ref request, ref callSettings); + return _callTestIamPermissions.Sync(request, callSettings); + } + + /// + /// Returns permissions that a caller has for the specified secret. + /// If the secret does not exist, this call returns an empty set of + /// permissions, not a NOT_FOUND error. + /// + /// Note: This operation is designed to be used for building permission-aware + /// UIs and command-line tools, not for authorization checking. This operation + /// may "fail open" without warning. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task TestIamPermissionsAsync(gciv::TestIamPermissionsRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_TestIamPermissionsRequest(ref request, ref callSettings); + return _callTestIamPermissions.Async(request, callSettings); + } + } + + public partial class ListSecretsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListSecretVersionsRequest : gaxgrpc::IPageRequest + { + } + + public partial class ListSecretsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => Secrets.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); + } + + public partial class ListSecretVersionsResponse : gaxgrpc::IPageResponse + { + /// Returns an enumerator that iterates through the resources in this response. + public scg::IEnumerator GetEnumerator() => Versions.GetEnumerator(); + + sc::IEnumerator sc::IEnumerable.GetEnumerator() => 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/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/Service.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/Service.g.cs new file mode 100755 index 000000000000..8b3040cd984e --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/Service.g.cs @@ -0,0 +1,4027 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1beta2/service.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Google.Cloud.SecretManager.V1Beta2 { + + /// Holder for reflection information generated from google/cloud/secretmanager/v1beta2/service.proto + public static partial class ServiceReflection { + + #region Descriptor + /// File descriptor for google/cloud/secretmanager/v1beta2/service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjBnb29nbGUvY2xvdWQvc2VjcmV0bWFuYWdlci92MWJldGEyL3NlcnZpY2Uu", + "cHJvdG8SImdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0YTIaHGdv", + "b2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50", + "LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29n", + "bGUvYXBpL3Jlc291cmNlLnByb3RvGjJnb29nbGUvY2xvdWQvc2VjcmV0bWFu", + "YWdlci92MWJldGEyL3Jlc291cmNlcy5wcm90bxoeZ29vZ2xlL2lhbS92MS9p", + "YW1fcG9saWN5LnByb3RvGhpnb29nbGUvaWFtL3YxL3BvbGljeS5wcm90bxob", + "Z29vZ2xlL3Byb3RvYnVmL2VtcHR5LnByb3RvGiBnb29nbGUvcHJvdG9idWYv", + "ZmllbGRfbWFzay5wcm90byKXAQoSTGlzdFNlY3JldHNSZXF1ZXN0EjsKBnBh", + "cmVudBgBIAEoCUIr4EEC+kElEiNzZWNyZXRtYW5hZ2VyLmdvb2dsZWFwaXMu", + "Y29tL1NlY3JldBIWCglwYWdlX3NpemUYAiABKAVCA+BBARIXCgpwYWdlX3Rv", + "a2VuGAMgASgJQgPgQQESEwoGZmlsdGVyGAQgASgJQgPgQQEifwoTTGlzdFNl", + "Y3JldHNSZXNwb25zZRI7CgdzZWNyZXRzGAEgAygLMiouZ29vZ2xlLmNsb3Vk", + "LnNlY3JldG1hbmFnZXIudjFiZXRhMi5TZWNyZXQSFwoPbmV4dF9wYWdlX3Rv", + "a2VuGAIgASgJEhIKCnRvdGFsX3NpemUYAyABKAUiqwEKE0NyZWF0ZVNlY3Jl", + "dFJlcXVlc3QSOwoGcGFyZW50GAEgASgJQivgQQL6QSUSI3NlY3JldG1hbmFn", + "ZXIuZ29vZ2xlYXBpcy5jb20vU2VjcmV0EhYKCXNlY3JldF9pZBgCIAEoCUID", + "4EECEj8KBnNlY3JldBgDIAEoCzIqLmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5h", + "Z2VyLnYxYmV0YTIuU2VjcmV0QgPgQQIinwEKF0FkZFNlY3JldFZlcnNpb25S", + "ZXF1ZXN0EjsKBnBhcmVudBgBIAEoCUIr4EEC+kElCiNzZWNyZXRtYW5hZ2Vy", + "Lmdvb2dsZWFwaXMuY29tL1NlY3JldBJHCgdwYXlsb2FkGAIgASgLMjEuZ29v", + "Z2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMi5TZWNyZXRQYXlsb2Fk", + "QgPgQQIiTQoQR2V0U2VjcmV0UmVxdWVzdBI5CgRuYW1lGAEgASgJQivgQQL6", + "QSUKI3NlY3JldG1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vU2VjcmV0Ip4BChlM", + "aXN0U2VjcmV0VmVyc2lvbnNSZXF1ZXN0EjsKBnBhcmVudBgBIAEoCUIr4EEC", + "+kElCiNzZWNyZXRtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1NlY3JldBIWCglw", + "YWdlX3NpemUYAiABKAVCA+BBARIXCgpwYWdlX3Rva2VuGAMgASgJQgPgQQES", + "EwoGZmlsdGVyGAQgASgJQgPgQQEijgEKGkxpc3RTZWNyZXRWZXJzaW9uc1Jl", + "c3BvbnNlEkMKCHZlcnNpb25zGAEgAygLMjEuZ29vZ2xlLmNsb3VkLnNlY3Jl", + "dG1hbmFnZXIudjFiZXRhMi5TZWNyZXRWZXJzaW9uEhcKD25leHRfcGFnZV90", + "b2tlbhgCIAEoCRISCgp0b3RhbF9zaXplGAMgASgFIlsKF0dldFNlY3JldFZl", + "cnNpb25SZXF1ZXN0EkAKBG5hbWUYASABKAlCMuBBAvpBLAoqc2VjcmV0bWFu", + "YWdlci5nb29nbGVhcGlzLmNvbS9TZWNyZXRWZXJzaW9uIowBChNVcGRhdGVT", + "ZWNyZXRSZXF1ZXN0Ej8KBnNlY3JldBgBIAEoCzIqLmdvb2dsZS5jbG91ZC5z", + "ZWNyZXRtYW5hZ2VyLnYxYmV0YTIuU2VjcmV0QgPgQQISNAoLdXBkYXRlX21h", + "c2sYAiABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQIiXgoa", + "QWNjZXNzU2VjcmV0VmVyc2lvblJlcXVlc3QSQAoEbmFtZRgBIAEoCUIy4EEC", + "+kEsCipzZWNyZXRtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL1NlY3JldFZlcnNp", + "b24ioAEKG0FjY2Vzc1NlY3JldFZlcnNpb25SZXNwb25zZRI9CgRuYW1lGAEg", + "ASgJQi/6QSwKKnNlY3JldG1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vU2VjcmV0", + "VmVyc2lvbhJCCgdwYXlsb2FkGAIgASgLMjEuZ29vZ2xlLmNsb3VkLnNlY3Jl", + "dG1hbmFnZXIudjFiZXRhMi5TZWNyZXRQYXlsb2FkImMKE0RlbGV0ZVNlY3Jl", + "dFJlcXVlc3QSOQoEbmFtZRgBIAEoCUIr4EEC+kElCiNzZWNyZXRtYW5hZ2Vy", + "Lmdvb2dsZWFwaXMuY29tL1NlY3JldBIRCgRldGFnGAIgASgJQgPgQQEicgob", + "RGlzYWJsZVNlY3JldFZlcnNpb25SZXF1ZXN0EkAKBG5hbWUYASABKAlCMuBB", + "AvpBLAoqc2VjcmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbS9TZWNyZXRWZXJz", + "aW9uEhEKBGV0YWcYAiABKAlCA+BBASJxChpFbmFibGVTZWNyZXRWZXJzaW9u", + "UmVxdWVzdBJACgRuYW1lGAEgASgJQjLgQQL6QSwKKnNlY3JldG1hbmFnZXIu", + "Z29vZ2xlYXBpcy5jb20vU2VjcmV0VmVyc2lvbhIRCgRldGFnGAIgASgJQgPg", + "QQEicgobRGVzdHJveVNlY3JldFZlcnNpb25SZXF1ZXN0EkAKBG5hbWUYASAB", + "KAlCMuBBAvpBLAoqc2VjcmV0bWFuYWdlci5nb29nbGVhcGlzLmNvbS9TZWNy", + "ZXRWZXJzaW9uEhEKBGV0YWcYAiABKAlCA+BBATL3HgoUU2VjcmV0TWFuYWdl", + "clNlcnZpY2US6QEKC0xpc3RTZWNyZXRzEjYuZ29vZ2xlLmNsb3VkLnNlY3Jl", + "dG1hbmFnZXIudjFiZXRhMi5MaXN0U2VjcmV0c1JlcXVlc3QaNy5nb29nbGUu", + "Y2xvdWQuc2VjcmV0bWFuYWdlci52MWJldGEyLkxpc3RTZWNyZXRzUmVzcG9u", + "c2UiadpBBnBhcmVudILT5JMCWhIkL3YxYmV0YTIve3BhcmVudD1wcm9qZWN0", + "cy8qfS9zZWNyZXRzWjISMC92MWJldGEyL3twYXJlbnQ9cHJvamVjdHMvKi9s", + "b2NhdGlvbnMvKn0vc2VjcmV0cxKAAgoMQ3JlYXRlU2VjcmV0EjcuZ29vZ2xl", + "LmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMi5DcmVhdGVTZWNyZXRSZXF1", + "ZXN0GiouZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMi5TZWNy", + "ZXQiigHaQRdwYXJlbnQsc2VjcmV0X2lkLHNlY3JldILT5JMCaiIkL3YxYmV0", + "YTIve3BhcmVudD1wcm9qZWN0cy8qfS9zZWNyZXRzOgZzZWNyZXRaOiIwL3Yx", + "YmV0YTIve3BhcmVudD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qfS9zZWNyZXRz", + "OgZzZWNyZXQSlgIKEEFkZFNlY3JldFZlcnNpb24SOy5nb29nbGUuY2xvdWQu", + "c2VjcmV0bWFuYWdlci52MWJldGEyLkFkZFNlY3JldFZlcnNpb25SZXF1ZXN0", + "GjEuZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMi5TZWNyZXRW", + "ZXJzaW9uIpEB2kEOcGFyZW50LHBheWxvYWSC0+STAnoiMS92MWJldGEyL3tw", + "YXJlbnQ9cHJvamVjdHMvKi9zZWNyZXRzLyp9OmFkZFZlcnNpb246ASpaQiI9", + "L3YxYmV0YTIve3BhcmVudD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlY3Jl", + "dHMvKn06YWRkVmVyc2lvbjoBKhLWAQoJR2V0U2VjcmV0EjQuZ29vZ2xlLmNs", + "b3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMi5HZXRTZWNyZXRSZXF1ZXN0Giou", + "Z29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMi5TZWNyZXQiZ9pB", + "BG5hbWWC0+STAloSJC92MWJldGEyL3tuYW1lPXByb2plY3RzLyovc2VjcmV0", + "cy8qfVoyEjAvdjFiZXRhMi97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8q", + "L3NlY3JldHMvKn0SiQIKDFVwZGF0ZVNlY3JldBI3Lmdvb2dsZS5jbG91ZC5z", + "ZWNyZXRtYW5hZ2VyLnYxYmV0YTIuVXBkYXRlU2VjcmV0UmVxdWVzdBoqLmdv", + "b2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0YTIuU2VjcmV0IpMB2kES", + "c2VjcmV0LHVwZGF0ZV9tYXNrgtPkkwJ4MisvdjFiZXRhMi97c2VjcmV0Lm5h", + "bWU9cHJvamVjdHMvKi9zZWNyZXRzLyp9OgZzZWNyZXRaQTI3L3YxYmV0YTIv", + "e3NlY3JldC5uYW1lPXByb2plY3RzLyovbG9jYXRpb25zLyovc2VjcmV0cy8q", + "fToGc2VjcmV0EsgBCgxEZWxldGVTZWNyZXQSNy5nb29nbGUuY2xvdWQuc2Vj", + "cmV0bWFuYWdlci52MWJldGEyLkRlbGV0ZVNlY3JldFJlcXVlc3QaFi5nb29n", + "bGUucHJvdG9idWYuRW1wdHkiZ9pBBG5hbWWC0+STAloqJC92MWJldGEyL3tu", + "YW1lPXByb2plY3RzLyovc2VjcmV0cy8qfVoyKjAvdjFiZXRhMi97bmFtZT1w", + "cm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlY3JldHMvKn0SlAIKEkxpc3RTZWNy", + "ZXRWZXJzaW9ucxI9Lmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0", + "YTIuTGlzdFNlY3JldFZlcnNpb25zUmVxdWVzdBo+Lmdvb2dsZS5jbG91ZC5z", + "ZWNyZXRtYW5hZ2VyLnYxYmV0YTIuTGlzdFNlY3JldFZlcnNpb25zUmVzcG9u", + "c2Uif9pBBnBhcmVudILT5JMCcBIvL3YxYmV0YTIve3BhcmVudD1wcm9qZWN0", + "cy8qL3NlY3JldHMvKn0vdmVyc2lvbnNaPRI7L3YxYmV0YTIve3BhcmVudD1w", + "cm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlY3JldHMvKn0vdmVyc2lvbnMSgQIK", + "EEdldFNlY3JldFZlcnNpb24SOy5nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdl", + "ci52MWJldGEyLkdldFNlY3JldFZlcnNpb25SZXF1ZXN0GjEuZ29vZ2xlLmNs", + "b3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMi5TZWNyZXRWZXJzaW9uIn3aQQRu", + "YW1lgtPkkwJwEi8vdjFiZXRhMi97bmFtZT1wcm9qZWN0cy8qL3NlY3JldHMv", + "Ki92ZXJzaW9ucy8qfVo9EjsvdjFiZXRhMi97bmFtZT1wcm9qZWN0cy8qL2xv", + "Y2F0aW9ucy8qL3NlY3JldHMvKi92ZXJzaW9ucy8qfRKkAgoTQWNjZXNzU2Vj", + "cmV0VmVyc2lvbhI+Lmdvb2dsZS5jbG91ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0", + "YTIuQWNjZXNzU2VjcmV0VmVyc2lvblJlcXVlc3QaPy5nb29nbGUuY2xvdWQu", + "c2VjcmV0bWFuYWdlci52MWJldGEyLkFjY2Vzc1NlY3JldFZlcnNpb25SZXNw", + "b25zZSKLAdpBBG5hbWWC0+STAn4SNi92MWJldGEyL3tuYW1lPXByb2plY3Rz", + "Lyovc2VjcmV0cy8qL3ZlcnNpb25zLyp9OmFjY2Vzc1pEEkIvdjFiZXRhMi97", + "bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlY3JldHMvKi92ZXJzaW9u", + "cy8qfTphY2Nlc3MSoQIKFERpc2FibGVTZWNyZXRWZXJzaW9uEj8uZ29vZ2xl", + "LmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMi5EaXNhYmxlU2VjcmV0VmVy", + "c2lvblJlcXVlc3QaMS5nb29nbGUuY2xvdWQuc2VjcmV0bWFuYWdlci52MWJl", + "dGEyLlNlY3JldFZlcnNpb24ilAHaQQRuYW1lgtPkkwKGASI3L3YxYmV0YTIv", + "e25hbWU9cHJvamVjdHMvKi9zZWNyZXRzLyovdmVyc2lvbnMvKn06ZGlzYWJs", + "ZToBKlpIIkMvdjFiZXRhMi97bmFtZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8q", + "L3NlY3JldHMvKi92ZXJzaW9ucy8qfTpkaXNhYmxlOgEqEp0CChNFbmFibGVT", + "ZWNyZXRWZXJzaW9uEj4uZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjFi", + "ZXRhMi5FbmFibGVTZWNyZXRWZXJzaW9uUmVxdWVzdBoxLmdvb2dsZS5jbG91", + "ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0YTIuU2VjcmV0VmVyc2lvbiKSAdpBBG5h", + "bWWC0+STAoQBIjYvdjFiZXRhMi97bmFtZT1wcm9qZWN0cy8qL3NlY3JldHMv", + "Ki92ZXJzaW9ucy8qfTplbmFibGU6ASpaRyJCL3YxYmV0YTIve25hbWU9cHJv", + "amVjdHMvKi9sb2NhdGlvbnMvKi9zZWNyZXRzLyovdmVyc2lvbnMvKn06ZW5h", + "YmxlOgEqEqECChREZXN0cm95U2VjcmV0VmVyc2lvbhI/Lmdvb2dsZS5jbG91", + "ZC5zZWNyZXRtYW5hZ2VyLnYxYmV0YTIuRGVzdHJveVNlY3JldFZlcnNpb25S", + "ZXF1ZXN0GjEuZ29vZ2xlLmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMi5T", + "ZWNyZXRWZXJzaW9uIpQB2kEEbmFtZYLT5JMChgEiNy92MWJldGEyL3tuYW1l", + "PXByb2plY3RzLyovc2VjcmV0cy8qL3ZlcnNpb25zLyp9OmRlc3Ryb3k6ASpa", + "SCJDL3YxYmV0YTIve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZWNy", + "ZXRzLyovdmVyc2lvbnMvKn06ZGVzdHJveToBKhLVAQoMU2V0SWFtUG9saWN5", + "EiIuZ29vZ2xlLmlhbS52MS5TZXRJYW1Qb2xpY3lSZXF1ZXN0GhUuZ29vZ2xl", + "LmlhbS52MS5Qb2xpY3kiiQGC0+STAoIBIjUvdjFiZXRhMi97cmVzb3VyY2U9", + "cHJvamVjdHMvKi9zZWNyZXRzLyp9OnNldElhbVBvbGljeToBKlpGIkEvdjFi", + "ZXRhMi97cmVzb3VyY2U9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9zZWNyZXRz", + "Lyp9OnNldElhbVBvbGljeToBKhLOAQoMR2V0SWFtUG9saWN5EiIuZ29vZ2xl", + "LmlhbS52MS5HZXRJYW1Qb2xpY3lSZXF1ZXN0GhUuZ29vZ2xlLmlhbS52MS5Q", + "b2xpY3kiggGC0+STAnwSNS92MWJldGEyL3tyZXNvdXJjZT1wcm9qZWN0cy8q", + "L3NlY3JldHMvKn06Z2V0SWFtUG9saWN5WkMSQS92MWJldGEyL3tyZXNvdXJj", + "ZT1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3NlY3JldHMvKn06Z2V0SWFtUG9s", + "aWN5EoECChJUZXN0SWFtUGVybWlzc2lvbnMSKC5nb29nbGUuaWFtLnYxLlRl", + "c3RJYW1QZXJtaXNzaW9uc1JlcXVlc3QaKS5nb29nbGUuaWFtLnYxLlRlc3RJ", + "YW1QZXJtaXNzaW9uc1Jlc3BvbnNlIpUBgtPkkwKOASI7L3YxYmV0YTIve3Jl", + "c291cmNlPXByb2plY3RzLyovc2VjcmV0cy8qfTp0ZXN0SWFtUGVybWlzc2lv", + "bnM6ASpaTCJHL3YxYmV0YTIve3Jlc291cmNlPXByb2plY3RzLyovbG9jYXRp", + "b25zLyovc2VjcmV0cy8qfTp0ZXN0SWFtUGVybWlzc2lvbnM6ASoaUMpBHHNl", + "Y3JldG1hbmFnZXIuZ29vZ2xlYXBpcy5jb23SQS5odHRwczovL3d3dy5nb29n", + "bGVhcGlzLmNvbS9hdXRoL2Nsb3VkLXBsYXRmb3JtQv4BCiZjb20uZ29vZ2xl", + "LmNsb3VkLnNlY3JldG1hbmFnZXIudjFiZXRhMkIMU2VydmljZVByb3RvUAFa", + "TGNsb3VkLmdvb2dsZS5jb20vZ28vc2VjcmV0bWFuYWdlci9hcGl2MWJldGEy", + "L3NlY3JldG1hbmFnZXJwYjtzZWNyZXRtYW5hZ2VycGKiAgNHU02qAiJHb29n", + "bGUuQ2xvdWQuU2VjcmV0TWFuYWdlci5WMUJldGEyygIiR29vZ2xlXENsb3Vk", + "XFNlY3JldE1hbmFnZXJcVjFiZXRhMuoCJUdvb2dsZTo6Q2xvdWQ6OlNlY3Jl", + "dE1hbmFnZXI6OlYxYmV0YTJiBnByb3RvMw==")); + 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.V1Beta2.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[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest), global::Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.ListSecretsResponse), global::Google.Cloud.SecretManager.V1Beta2.ListSecretsResponse.Parser, new[]{ "Secrets", "NextPageToken", "TotalSize" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.CreateSecretRequest), global::Google.Cloud.SecretManager.V1Beta2.CreateSecretRequest.Parser, new[]{ "Parent", "SecretId", "Secret" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.AddSecretVersionRequest), global::Google.Cloud.SecretManager.V1Beta2.AddSecretVersionRequest.Parser, new[]{ "Parent", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.GetSecretRequest), global::Google.Cloud.SecretManager.V1Beta2.GetSecretRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest), global::Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsResponse), global::Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsResponse.Parser, new[]{ "Versions", "NextPageToken", "TotalSize" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.GetSecretVersionRequest), global::Google.Cloud.SecretManager.V1Beta2.GetSecretVersionRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.UpdateSecretRequest), global::Google.Cloud.SecretManager.V1Beta2.UpdateSecretRequest.Parser, new[]{ "Secret", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionRequest), global::Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionResponse), global::Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionResponse.Parser, new[]{ "Name", "Payload" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest), global::Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest.Parser, new[]{ "Name", "Etag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.DisableSecretVersionRequest), global::Google.Cloud.SecretManager.V1Beta2.DisableSecretVersionRequest.Parser, new[]{ "Name", "Etag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.EnableSecretVersionRequest), global::Google.Cloud.SecretManager.V1Beta2.EnableSecretVersionRequest.Parser, new[]{ "Name", "Etag" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecretManager.V1Beta2.DestroySecretVersionRequest), global::Google.Cloud.SecretManager.V1Beta2.DestroySecretVersionRequest.Parser, new[]{ "Name", "Etag" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Request message for + /// [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListSecretsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListSecretsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSecretsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSecretsRequest(ListSecretsRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSecretsRequest Clone() { + return new ListSecretsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the project associated with the + /// [Secrets][google.cloud.secretmanager.v1beta2.Secret], in the format + /// `projects/*` or `projects/*/locations/*` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Optional. The maximum number of results to be returned in a single page. If + /// set to 0, the server decides the number of results to return. If the + /// number is greater than 25000, it is capped at 25000. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 3; + private string pageToken_ = ""; + /// + /// Optional. Pagination token, returned earlier via + /// [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1beta2.ListSecretsResponse.next_page_token]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "filter" field. + public const int FilterFieldNumber = 4; + private string filter_ = ""; + /// + /// Optional. Filter string, adhering to the rules in + /// [List-operation + /// filtering](https://cloud.google.com/secret-manager/docs/filtering). List + /// only secrets matching the filter. If filter is empty, all secrets are + /// listed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListSecretsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListSecretsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + if (Filter != other.Filter) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (Filter.Length != 0) hash ^= Filter.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (Filter.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Filter); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (Filter.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Filter); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (Filter.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Filter); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListSecretsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + if (other.Filter.Length != 0) { + Filter = other.Filter; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListSecretsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListSecretsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSecretsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSecretsResponse(ListSecretsResponse other) : this() { + secrets_ = other.secrets_.Clone(); + nextPageToken_ = other.nextPageToken_; + totalSize_ = other.totalSize_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSecretsResponse Clone() { + return new ListSecretsResponse(this); + } + + /// Field number for the "secrets" field. + public const int SecretsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_secrets_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecretManager.V1Beta2.Secret.Parser); + private readonly pbc::RepeatedField secrets_ = new pbc::RepeatedField(); + /// + /// The list of [Secrets][google.cloud.secretmanager.v1beta2.Secret] sorted in + /// reverse by create_time (newest first). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Secrets { + get { return secrets_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token to retrieve the next page of results. Pass this value in + /// [ListSecretsRequest.page_token][google.cloud.secretmanager.v1beta2.ListSecretsRequest.page_token] + /// to retrieve the next page. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "total_size" field. + public const int TotalSizeFieldNumber = 3; + private int totalSize_; + /// + /// The total number of [Secrets][google.cloud.secretmanager.v1beta2.Secret] + /// but 0 when the + /// [ListSecretsRequest.filter][google.cloud.secretmanager.v1beta2.ListSecretsRequest.filter] + /// field is set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TotalSize { + get { return totalSize_; } + set { + totalSize_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListSecretsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListSecretsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!secrets_.Equals(other.secrets_)) return false; + if (NextPageToken != other.NextPageToken) return false; + if (TotalSize != other.TotalSize) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= secrets_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (TotalSize != 0) hash ^= TotalSize.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + secrets_.WriteTo(output, _repeated_secrets_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (TotalSize != 0) { + output.WriteRawTag(24); + output.WriteInt32(TotalSize); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + secrets_.WriteTo(ref output, _repeated_secrets_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (TotalSize != 0) { + output.WriteRawTag(24); + output.WriteInt32(TotalSize); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += secrets_.CalculateSize(_repeated_secrets_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (TotalSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TotalSize); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListSecretsResponse other) { + if (other == null) { + return; + } + secrets_.Add(other.secrets_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + if (other.TotalSize != 0) { + TotalSize = other.TotalSize; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + secrets_.AddEntriesFrom(input, _repeated_secrets_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 24: { + TotalSize = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + secrets_.AddEntriesFrom(ref input, _repeated_secrets_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 24: { + TotalSize = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.CreateSecret][google.cloud.secretmanager.v1beta2.SecretManagerService.CreateSecret]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateSecretRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateSecretRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateSecretRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateSecretRequest(CreateSecretRequest other) : this() { + parent_ = other.parent_; + secretId_ = other.secretId_; + secret_ = other.secret_ != null ? other.secret_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateSecretRequest Clone() { + return new CreateSecretRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the project to associate with the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret], in the format + /// `projects/*` or `projects/*/locations/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "secret_id" field. + public const int SecretIdFieldNumber = 2; + private string secretId_ = ""; + /// + /// 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. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SecretId { + get { return secretId_; } + set { + secretId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "secret" field. + public const int SecretFieldNumber = 3; + private global::Google.Cloud.SecretManager.V1Beta2.Secret secret_; + /// + /// Required. A [Secret][google.cloud.secretmanager.v1beta2.Secret] with + /// initial field values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.Secret Secret { + get { return secret_; } + set { + secret_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateSecretRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateSecretRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (SecretId != other.SecretId) return false; + if (!object.Equals(Secret, other.Secret)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (SecretId.Length != 0) hash ^= SecretId.GetHashCode(); + if (secret_ != null) hash ^= Secret.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (SecretId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SecretId); + } + if (secret_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Secret); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (SecretId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(SecretId); + } + if (secret_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Secret); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (SecretId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SecretId); + } + if (secret_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Secret); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateSecretRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.SecretId.Length != 0) { + SecretId = other.SecretId; + } + if (other.secret_ != null) { + if (secret_ == null) { + Secret = new global::Google.Cloud.SecretManager.V1Beta2.Secret(); + } + Secret.MergeFrom(other.Secret); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + SecretId = input.ReadString(); + break; + } + case 26: { + if (secret_ == null) { + Secret = new global::Google.Cloud.SecretManager.V1Beta2.Secret(); + } + input.ReadMessage(Secret); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + SecretId = input.ReadString(); + break; + } + case 26: { + if (secret_ == null) { + Secret = new global::Google.Cloud.SecretManager.V1Beta2.Secret(); + } + input.ReadMessage(Secret); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AddSecretVersionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddSecretVersionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddSecretVersionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddSecretVersionRequest(AddSecretVersionRequest other) : this() { + parent_ = other.parent_; + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddSecretVersionRequest Clone() { + return new AddSecretVersionRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to associate with the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 2; + private global::Google.Cloud.SecretManager.V1Beta2.SecretPayload payload_; + /// + /// Required. The secret payload of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.SecretPayload Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AddSecretVersionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddSecretVersionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(Payload, other.Payload)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (payload_ != null) hash ^= Payload.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (payload_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (payload_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddSecretVersionRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Cloud.SecretManager.V1Beta2.SecretPayload(); + } + Payload.MergeFrom(other.Payload); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (payload_ == null) { + Payload = new global::Google.Cloud.SecretManager.V1Beta2.SecretPayload(); + } + input.ReadMessage(Payload); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (payload_ == null) { + Payload = new global::Google.Cloud.SecretManager.V1Beta2.SecretPayload(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.GetSecret][google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecret]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetSecretRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSecretRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSecretRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSecretRequest(GetSecretRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSecretRequest Clone() { + return new GetSecretRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret], in the format + /// `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetSecretRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSecretRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSecretRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecretVersions]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListSecretVersionsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListSecretVersionsRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSecretVersionsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSecretVersionsRequest(ListSecretVersionsRequest other) : this() { + parent_ = other.parent_; + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + filter_ = other.filter_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSecretVersionsRequest Clone() { + return new ListSecretVersionsRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] associated with the + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] to list, + /// in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 2; + private int pageSize_; + /// + /// Optional. The maximum number of results to be returned in a single page. If + /// set to 0, the server decides the number of results to return. If the + /// number is greater than 25000, it is capped at 25000. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 3; + private string pageToken_ = ""; + /// + /// Optional. Pagination token, returned earlier via + /// ListSecretVersionsResponse.next_page_token][]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "filter" field. + public const int FilterFieldNumber = 4; + private string filter_ = ""; + /// + /// Optional. Filter string, adhering to the rules in + /// [List-operation + /// filtering](https://cloud.google.com/secret-manager/docs/filtering). List + /// only secret versions matching the filter. If filter is empty, all secret + /// versions are listed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Filter { + get { return filter_; } + set { + filter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListSecretVersionsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListSecretVersionsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + if (Filter != other.Filter) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (Filter.Length != 0) hash ^= Filter.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (Filter.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Filter); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (PageSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(26); + output.WriteString(PageToken); + } + if (Filter.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Filter); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (Filter.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Filter); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListSecretVersionsRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + if (other.Filter.Length != 0) { + Filter = other.Filter; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 16: { + PageSize = input.ReadInt32(); + break; + } + case 26: { + PageToken = input.ReadString(); + break; + } + case 34: { + Filter = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecretVersions]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ListSecretVersionsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListSecretVersionsResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSecretVersionsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSecretVersionsResponse(ListSecretVersionsResponse other) : this() { + versions_ = other.versions_.Clone(); + nextPageToken_ = other.nextPageToken_; + totalSize_ = other.totalSize_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListSecretVersionsResponse Clone() { + return new ListSecretVersionsResponse(this); + } + + /// Field number for the "versions" field. + public const int VersionsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_versions_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Parser); + private readonly pbc::RepeatedField versions_ = new pbc::RepeatedField(); + /// + /// The list of + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] sorted + /// in reverse by create_time (newest first). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Versions { + get { return versions_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// A token to retrieve the next page of results. Pass this value in + /// [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1beta2.ListSecretVersionsRequest.page_token] + /// to retrieve the next page. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NextPageToken { + get { return nextPageToken_; } + set { + nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "total_size" field. + public const int TotalSizeFieldNumber = 3; + private int totalSize_; + /// + /// The total number of + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] but 0 + /// when the + /// [ListSecretsRequest.filter][google.cloud.secretmanager.v1beta2.ListSecretsRequest.filter] + /// field is set. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TotalSize { + get { return totalSize_; } + set { + totalSize_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListSecretVersionsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListSecretVersionsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!versions_.Equals(other.versions_)) return false; + if (NextPageToken != other.NextPageToken) return false; + if (TotalSize != other.TotalSize) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= versions_.GetHashCode(); + if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); + if (TotalSize != 0) hash ^= TotalSize.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + versions_.WriteTo(output, _repeated_versions_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (TotalSize != 0) { + output.WriteRawTag(24); + output.WriteInt32(TotalSize); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + versions_.WriteTo(ref output, _repeated_versions_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(NextPageToken); + } + if (TotalSize != 0) { + output.WriteRawTag(24); + output.WriteInt32(TotalSize); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += versions_.CalculateSize(_repeated_versions_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (TotalSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TotalSize); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListSecretVersionsResponse other) { + if (other == null) { + return; + } + versions_.Add(other.versions_); + if (other.NextPageToken.Length != 0) { + NextPageToken = other.NextPageToken; + } + if (other.TotalSize != 0) { + TotalSize = other.TotalSize; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + versions_.AddEntriesFrom(input, _repeated_versions_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 24: { + TotalSize = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + versions_.AddEntriesFrom(ref input, _repeated_versions_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + case 24: { + TotalSize = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.GetSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecretVersion]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetSecretVersionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSecretVersionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSecretVersionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSecretVersionRequest(GetSecretVersionRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetSecretVersionRequest Clone() { + return new GetSecretVersionRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetSecretVersionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetSecretVersionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetSecretVersionRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.UpdateSecret][google.cloud.secretmanager.v1beta2.SecretManagerService.UpdateSecret]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateSecretRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateSecretRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateSecretRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateSecretRequest(UpdateSecretRequest other) : this() { + secret_ = other.secret_ != null ? other.secret_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateSecretRequest Clone() { + return new UpdateSecretRequest(this); + } + + /// Field number for the "secret" field. + public const int SecretFieldNumber = 1; + private global::Google.Cloud.SecretManager.V1Beta2.Secret secret_; + /// + /// Required. [Secret][google.cloud.secretmanager.v1beta2.Secret] with updated + /// field values. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.Secret Secret { + get { return secret_; } + set { + secret_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Required. Specifies the fields to be updated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateSecretRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateSecretRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Secret, other.Secret)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (secret_ != null) hash ^= Secret.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (secret_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Secret); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (secret_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Secret); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (secret_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Secret); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateSecretRequest other) { + if (other == null) { + return; + } + if (other.secret_ != null) { + if (secret_ == null) { + Secret = new global::Google.Cloud.SecretManager.V1Beta2.Secret(); + } + Secret.MergeFrom(other.Secret); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (secret_ == null) { + Secret = new global::Google.Cloud.SecretManager.V1Beta2.Secret(); + } + input.ReadMessage(Secret); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (secret_ == null) { + Secret = new global::Google.Cloud.SecretManager.V1Beta2.Secret(); + } + input.ReadMessage(Secret); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AccessSecretVersionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccessSecretVersionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessSecretVersionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessSecretVersionRequest(AccessSecretVersionRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessSecretVersionRequest Clone() { + return new AccessSecretVersionRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + /// `projects/*/secrets/*/versions/latest` or + /// `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most + /// recently created + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AccessSecretVersionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AccessSecretVersionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AccessSecretVersionRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Response message for + /// [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AccessSecretVersionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccessSecretVersionResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessSecretVersionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessSecretVersionResponse(AccessSecretVersionResponse other) : this() { + name_ = other.name_; + payload_ = other.payload_ != null ? other.payload_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccessSecretVersionResponse Clone() { + return new AccessSecretVersionResponse(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the + /// format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "payload" field. + public const int PayloadFieldNumber = 2; + private global::Google.Cloud.SecretManager.V1Beta2.SecretPayload payload_; + /// + /// Secret payload + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.SecretManager.V1Beta2.SecretPayload Payload { + get { return payload_; } + set { + payload_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AccessSecretVersionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AccessSecretVersionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(Payload, other.Payload)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (payload_ != null) hash ^= Payload.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (payload_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (payload_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Payload); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (payload_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AccessSecretVersionResponse other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.payload_ != null) { + if (payload_ == null) { + Payload = new global::Google.Cloud.SecretManager.V1Beta2.SecretPayload(); + } + Payload.MergeFrom(other.Payload); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (payload_ == null) { + Payload = new global::Google.Cloud.SecretManager.V1Beta2.SecretPayload(); + } + input.ReadMessage(Payload); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + if (payload_ == null) { + Payload = new global::Google.Cloud.SecretManager.V1Beta2.SecretPayload(); + } + input.ReadMessage(Payload); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.DeleteSecret][google.cloud.secretmanager.v1beta2.SecretManagerService.DeleteSecret]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteSecretRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteSecretRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteSecretRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteSecretRequest(DeleteSecretRequest other) : this() { + name_ = other.name_; + etag_ = other.etag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteSecretRequest Clone() { + return new DeleteSecretRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name of the + /// [Secret][google.cloud.secretmanager.v1beta2.Secret] to delete in the format + /// `projects/*/secrets/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 2; + private string etag_ = ""; + /// + /// Optional. Etag of the [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// The request succeeds if it matches the etag of the currently stored secret + /// object. If the etag is omitted, the request succeeds. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteSecretRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteSecretRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Etag != other.Etag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteSecretRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.DisableSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.DisableSecretVersion]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DisableSecretVersionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisableSecretVersionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DisableSecretVersionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DisableSecretVersionRequest(DisableSecretVersionRequest other) : this() { + name_ = other.name_; + etag_ = other.etag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DisableSecretVersionRequest Clone() { + return new DisableSecretVersionRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// disable in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 2; + private string etag_ = ""; + /// + /// Optional. Etag of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. The + /// request succeeds if it matches the etag of the currently stored secret + /// version object. If the etag is omitted, the request succeeds. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DisableSecretVersionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DisableSecretVersionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Etag != other.Etag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DisableSecretVersionRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.EnableSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.EnableSecretVersion]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EnableSecretVersionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnableSecretVersionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableSecretVersionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableSecretVersionRequest(EnableSecretVersionRequest other) : this() { + name_ = other.name_; + etag_ = other.etag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EnableSecretVersionRequest Clone() { + return new EnableSecretVersionRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to enable + /// in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 2; + private string etag_ = ""; + /// + /// Optional. Etag of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. The + /// request succeeds if it matches the etag of the currently stored secret + /// version object. If the etag is omitted, the request succeeds. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EnableSecretVersionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EnableSecretVersionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Etag != other.Etag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EnableSecretVersionRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Request message for + /// [SecretManagerService.DestroySecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.DestroySecretVersion]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DestroySecretVersionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DestroySecretVersionRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DestroySecretVersionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DestroySecretVersionRequest(DestroySecretVersionRequest other) : this() { + name_ = other.name_; + etag_ = other.etag_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DestroySecretVersionRequest Clone() { + return new DestroySecretVersionRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. The resource name of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// destroy in the format `projects/*/secrets/*/versions/*` or + /// `projects/*/locations/*/secrets/*/versions/*`. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "etag" field. + public const int EtagFieldNumber = 2; + private string etag_ = ""; + /// + /// Optional. Etag of the + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. The + /// request succeeds if it matches the etag of the currently stored secret + /// version object. If the etag is omitted, the request succeeds. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Etag { + get { return etag_; } + set { + etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DestroySecretVersionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DestroySecretVersionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Etag != other.Etag) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Etag.Length != 0) hash ^= Etag.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (Etag.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Etag); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (Etag.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DestroySecretVersionRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.Etag.Length != 0) { + Etag = other.Etag; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 18: { + Etag = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ServiceCollectionExtensions.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ServiceCollectionExtensions.g.cs new file mode 100755 index 000000000000..787a76abca15 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ServiceCollectionExtensions.g.cs @@ -0,0 +1,67 @@ +// Copyright 2025 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! + +#pragma warning disable CS8981 +using gaxgrpc = Google.Api.Gax.Grpc; +using gcl = Google.Cloud.Location; +using gcsv = Google.Cloud.SecretManager.V1Beta2; +using gpr = Google.Protobuf.Reflection; +using proto = Google.Protobuf; +using scg = System.Collections.Generic; +using sys = System; + +namespace Microsoft.Extensions.DependencyInjection +{ + /// Static class to provide extension methods to configure API clients. + public static partial class ServiceCollectionExtensions + { + /// + /// Adds a singleton to . + /// + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddSecretManagerServiceClient(this IServiceCollection services, sys::Action action = null) => + services.AddSingleton(provider => + { + gcsv::SecretManagerServiceClientBuilder builder = new gcsv::SecretManagerServiceClientBuilder(); + action?.Invoke(builder); + return builder.Build(provider); + }); + + /// + /// Adds a singleton to . + /// + /// + /// The service collection to add the client to. The services are used to configure the client when requested. + /// + /// + /// An optional action to invoke on the client builder. This is invoked before services from + /// are used. + /// + public static IServiceCollection AddSecretManagerServiceClient(this IServiceCollection services, sys::Action action) => + services.AddSingleton(provider => + { + gcsv::SecretManagerServiceClientBuilder builder = new gcsv::SecretManagerServiceClientBuilder(); + action?.Invoke(provider, builder); + return builder.Build(provider); + }); + } +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ServiceGrpc.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ServiceGrpc.g.cs new file mode 100755 index 000000000000..d6bb46c11761 --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ServiceGrpc.g.cs @@ -0,0 +1,1465 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/secretmanager/v1beta2/service.proto +// +// Original file comments: +// 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 +// +// http://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. +// +#pragma warning disable 0414, 1591, 8981, 0612 +#region Designer generated code + +using grpc = global::Grpc.Core; + +namespace Google.Cloud.SecretManager.V1Beta2 { + /// + /// Secret Manager Service + /// + /// Manages secrets and operations using those secrets. Implements a REST + /// model with the following objects: + /// + /// * [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// * [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// + public static partial class SecretManagerService + { + static readonly string __ServiceName = "google.cloud.secretmanager.v1beta2.SecretManagerService"; + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (message is global::Google.Protobuf.IBufferMessage) + { + context.SetPayloadLength(message.CalculateSize()); + global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); + context.Complete(); + return; + } + #endif + context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static class __Helper_MessageCache + { + public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage + { + #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION + if (__Helper_MessageCache.IsBufferMessage) + { + return parser.ParseFrom(context.PayloadAsReadOnlySequence()); + } + #endif + return parser.ParseFrom(context.PayloadAsNewBuffer()); + } + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_ListSecretsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_ListSecretsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.ListSecretsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_CreateSecretRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.CreateSecretRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_Secret = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.Secret.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_AddSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.AddSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_SecretVersion = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.SecretVersion.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_GetSecretRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.GetSecretRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_UpdateSecretRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.UpdateSecretRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_DeleteSecretRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_ListSecretVersionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_ListSecretVersionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_GetSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.GetSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_AccessSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_AccessSecretVersionResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_DisableSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.DisableSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_EnableSecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.EnableSecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_secretmanager_v1beta2_DestroySecretVersionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.SecretManager.V1Beta2.DestroySecretVersionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_SetIamPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.SetIamPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_Policy = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.Policy.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_GetIamPolicyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.GetIamPolicyRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_TestIamPermissionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.TestIamPermissionsRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_iam_v1_TestIamPermissionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.Iam.V1.TestIamPermissionsResponse.Parser)); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListSecrets = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListSecrets", + __Marshaller_google_cloud_secretmanager_v1beta2_ListSecretsRequest, + __Marshaller_google_cloud_secretmanager_v1beta2_ListSecretsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateSecret = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateSecret", + __Marshaller_google_cloud_secretmanager_v1beta2_CreateSecretRequest, + __Marshaller_google_cloud_secretmanager_v1beta2_Secret); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_AddSecretVersion = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "AddSecretVersion", + __Marshaller_google_cloud_secretmanager_v1beta2_AddSecretVersionRequest, + __Marshaller_google_cloud_secretmanager_v1beta2_SecretVersion); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetSecret = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetSecret", + __Marshaller_google_cloud_secretmanager_v1beta2_GetSecretRequest, + __Marshaller_google_cloud_secretmanager_v1beta2_Secret); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateSecret = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateSecret", + __Marshaller_google_cloud_secretmanager_v1beta2_UpdateSecretRequest, + __Marshaller_google_cloud_secretmanager_v1beta2_Secret); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteSecret = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteSecret", + __Marshaller_google_cloud_secretmanager_v1beta2_DeleteSecretRequest, + __Marshaller_google_protobuf_Empty); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ListSecretVersions = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ListSecretVersions", + __Marshaller_google_cloud_secretmanager_v1beta2_ListSecretVersionsRequest, + __Marshaller_google_cloud_secretmanager_v1beta2_ListSecretVersionsResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetSecretVersion = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetSecretVersion", + __Marshaller_google_cloud_secretmanager_v1beta2_GetSecretVersionRequest, + __Marshaller_google_cloud_secretmanager_v1beta2_SecretVersion); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_AccessSecretVersion = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "AccessSecretVersion", + __Marshaller_google_cloud_secretmanager_v1beta2_AccessSecretVersionRequest, + __Marshaller_google_cloud_secretmanager_v1beta2_AccessSecretVersionResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DisableSecretVersion = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DisableSecretVersion", + __Marshaller_google_cloud_secretmanager_v1beta2_DisableSecretVersionRequest, + __Marshaller_google_cloud_secretmanager_v1beta2_SecretVersion); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_EnableSecretVersion = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "EnableSecretVersion", + __Marshaller_google_cloud_secretmanager_v1beta2_EnableSecretVersionRequest, + __Marshaller_google_cloud_secretmanager_v1beta2_SecretVersion); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DestroySecretVersion = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DestroySecretVersion", + __Marshaller_google_cloud_secretmanager_v1beta2_DestroySecretVersionRequest, + __Marshaller_google_cloud_secretmanager_v1beta2_SecretVersion); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_SetIamPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "SetIamPolicy", + __Marshaller_google_iam_v1_SetIamPolicyRequest, + __Marshaller_google_iam_v1_Policy); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetIamPolicy = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetIamPolicy", + __Marshaller_google_iam_v1_GetIamPolicyRequest, + __Marshaller_google_iam_v1_Policy); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_TestIamPermissions = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "TestIamPermissions", + __Marshaller_google_iam_v1_TestIamPermissionsRequest, + __Marshaller_google_iam_v1_TestIamPermissionsResponse); + + /// Service descriptor + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Google.Cloud.SecretManager.V1Beta2.ServiceReflection.Descriptor.Services[0]; } + } + + /// Base class for server-side implementations of SecretManagerService + [grpc::BindServiceMethod(typeof(SecretManagerService), "BindService")] + public abstract partial class SecretManagerServiceBase + { + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListSecrets(global::Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateSecret(global::Google.Cloud.SecretManager.V1Beta2.CreateSecretRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task AddSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.AddSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetSecret(global::Google.Cloud.SecretManager.V1Beta2.GetSecretRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateSecret(global::Google.Cloud.SecretManager.V1Beta2.UpdateSecretRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteSecret(global::Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// This call does not return secret data. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ListSecretVersions(global::Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.GetSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task AccessSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DisableSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.DisableSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task EnableSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.EnableSecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DestroySecretVersion(global::Google.Cloud.SecretManager.V1Beta2.DestroySecretVersionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Sets the access control policy on the specified secret. Replaces any + /// existing policy. + /// + /// Permissions on + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] are + /// enforced according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task SetIamPolicy(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Gets the access control policy for a secret. + /// Returns empty policy if the secret exists and does not have a policy set. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetIamPolicy(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Returns permissions that a caller has for the specified secret. + /// If the secret does not exist, this call returns an empty set of + /// permissions, not a NOT_FOUND error. + /// + /// Note: This operation is designed to be used for building permission-aware + /// UIs and command-line tools, not for authorization checking. This operation + /// may "fail open" without warning. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task TestIamPermissions(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + } + + /// Client for SecretManagerService + public partial class SecretManagerServiceClient : grpc::ClientBase + { + /// Creates a new client for SecretManagerService + /// The channel to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public SecretManagerServiceClient(grpc::ChannelBase channel) : base(channel) + { + } + /// Creates a new client for SecretManagerService that uses a custom CallInvoker. + /// The callInvoker to use to make remote calls. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public SecretManagerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) + { + } + /// Protected parameterless constructor to allow creation of test doubles. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected SecretManagerServiceClient() : base() + { + } + /// Protected constructor to allow creation of configured clients. + /// The client configuration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected SecretManagerServiceClient(ClientBaseConfiguration configuration) : base(configuration) + { + } + + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.ListSecretsResponse ListSecrets(global::Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListSecrets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.ListSecretsResponse ListSecrets(global::Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListSecrets, null, options, request); + } + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListSecretsAsync(global::Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListSecretsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListSecretsAsync(global::Google.Cloud.SecretManager.V1Beta2.ListSecretsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListSecrets, null, options, request); + } + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.Secret CreateSecret(global::Google.Cloud.SecretManager.V1Beta2.CreateSecretRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateSecret(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.Secret CreateSecret(global::Google.Cloud.SecretManager.V1Beta2.CreateSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateSecret, null, options, request); + } + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateSecretAsync(global::Google.Cloud.SecretManager.V1Beta2.CreateSecretRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateSecretAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new [Secret][google.cloud.secretmanager.v1beta2.Secret] + /// containing no + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateSecretAsync(global::Google.Cloud.SecretManager.V1Beta2.CreateSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateSecret, null, options, request); + } + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.SecretVersion AddSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.AddSecretVersionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return AddSecretVersion(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.SecretVersion AddSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.AddSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_AddSecretVersion, null, options, request); + } + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall AddSecretVersionAsync(global::Google.Cloud.SecretManager.V1Beta2.AddSecretVersionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return AddSecretVersionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] + /// containing secret data and attaches it to an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall AddSecretVersionAsync(global::Google.Cloud.SecretManager.V1Beta2.AddSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_AddSecretVersion, null, options, request); + } + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.Secret GetSecret(global::Google.Cloud.SecretManager.V1Beta2.GetSecretRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetSecret(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.Secret GetSecret(global::Google.Cloud.SecretManager.V1Beta2.GetSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetSecret, null, options, request); + } + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetSecretAsync(global::Google.Cloud.SecretManager.V1Beta2.GetSecretRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetSecretAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets metadata for a given + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetSecretAsync(global::Google.Cloud.SecretManager.V1Beta2.GetSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetSecret, null, options, request); + } + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.Secret UpdateSecret(global::Google.Cloud.SecretManager.V1Beta2.UpdateSecretRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateSecret(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.Secret UpdateSecret(global::Google.Cloud.SecretManager.V1Beta2.UpdateSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateSecret, null, options, request); + } + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateSecretAsync(global::Google.Cloud.SecretManager.V1Beta2.UpdateSecretRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateSecretAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Updates metadata of an existing + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateSecretAsync(global::Google.Cloud.SecretManager.V1Beta2.UpdateSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateSecret, null, options, request); + } + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteSecret(global::Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteSecret(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteSecret(global::Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteSecret, null, options, request); + } + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteSecretAsync(global::Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteSecretAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteSecretAsync(global::Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteSecret, null, options, request); + } + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// This call does not return secret data. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsResponse ListSecretVersions(global::Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListSecretVersions(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// This call does not return secret data. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsResponse ListSecretVersions(global::Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ListSecretVersions, null, options, request); + } + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// This call does not return secret data. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListSecretVersionsAsync(global::Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ListSecretVersionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// This call does not return secret data. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ListSecretVersionsAsync(global::Google.Cloud.SecretManager.V1Beta2.ListSecretVersionsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ListSecretVersions, null, options, request); + } + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.SecretVersion GetSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.GetSecretVersionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetSecretVersion(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.SecretVersion GetSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.GetSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetSecretVersion, null, options, request); + } + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetSecretVersionAsync(global::Google.Cloud.SecretManager.V1Beta2.GetSecretVersionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetSecretVersionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets metadata for a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetSecretVersionAsync(global::Google.Cloud.SecretManager.V1Beta2.GetSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetSecretVersion, null, options, request); + } + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionResponse AccessSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return AccessSecretVersion(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionResponse AccessSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_AccessSecretVersion, null, options, request); + } + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall AccessSecretVersionAsync(global::Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return AccessSecretVersionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Accesses a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This + /// call returns the secret data. + /// + /// `projects/*/secrets/*/versions/latest` is an alias to the most recently + /// created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall AccessSecretVersionAsync(global::Google.Cloud.SecretManager.V1Beta2.AccessSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_AccessSecretVersion, null, options, request); + } + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.SecretVersion DisableSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.DisableSecretVersionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DisableSecretVersion(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.SecretVersion DisableSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.DisableSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DisableSecretVersion, null, options, request); + } + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DisableSecretVersionAsync(global::Google.Cloud.SecretManager.V1Beta2.DisableSecretVersionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DisableSecretVersionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Disables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED]. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DisableSecretVersionAsync(global::Google.Cloud.SecretManager.V1Beta2.DisableSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DisableSecretVersion, null, options, request); + } + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.SecretVersion EnableSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.EnableSecretVersionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return EnableSecretVersion(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.SecretVersion EnableSecretVersion(global::Google.Cloud.SecretManager.V1Beta2.EnableSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_EnableSecretVersion, null, options, request); + } + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall EnableSecretVersionAsync(global::Google.Cloud.SecretManager.V1Beta2.EnableSecretVersionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return EnableSecretVersionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Enables a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED]. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall EnableSecretVersionAsync(global::Google.Cloud.SecretManager.V1Beta2.EnableSecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_EnableSecretVersion, null, options, request); + } + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.SecretVersion DestroySecretVersion(global::Google.Cloud.SecretManager.V1Beta2.DestroySecretVersionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DestroySecretVersion(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.SecretManager.V1Beta2.SecretVersion DestroySecretVersion(global::Google.Cloud.SecretManager.V1Beta2.DestroySecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DestroySecretVersion, null, options, request); + } + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DestroySecretVersionAsync(global::Google.Cloud.SecretManager.V1Beta2.DestroySecretVersionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DestroySecretVersionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Destroys a + /// [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. + /// + /// Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of + /// the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to + /// [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] + /// and irrevocably destroys the secret data. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DestroySecretVersionAsync(global::Google.Cloud.SecretManager.V1Beta2.DestroySecretVersionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DestroySecretVersion, null, options, request); + } + /// + /// Sets the access control policy on the specified secret. Replaces any + /// existing policy. + /// + /// Permissions on + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] are + /// enforced according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.Policy SetIamPolicy(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SetIamPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Sets the access control policy on the specified secret. Replaces any + /// existing policy. + /// + /// Permissions on + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] are + /// enforced according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.Policy SetIamPolicy(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_SetIamPolicy, null, options, request); + } + /// + /// Sets the access control policy on the specified secret. Replaces any + /// existing policy. + /// + /// Permissions on + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] are + /// enforced according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SetIamPolicyAsync(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return SetIamPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Sets the access control policy on the specified secret. Replaces any + /// existing policy. + /// + /// Permissions on + /// [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] are + /// enforced according to the policy set on the associated + /// [Secret][google.cloud.secretmanager.v1beta2.Secret]. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall SetIamPolicyAsync(global::Google.Cloud.Iam.V1.SetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_SetIamPolicy, null, options, request); + } + /// + /// Gets the access control policy for a secret. + /// Returns empty policy if the secret exists and does not have a policy set. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.Policy GetIamPolicy(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetIamPolicy(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the access control policy for a secret. + /// Returns empty policy if the secret exists and does not have a policy set. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.Policy GetIamPolicy(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetIamPolicy, null, options, request); + } + /// + /// Gets the access control policy for a secret. + /// Returns empty policy if the secret exists and does not have a policy set. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetIamPolicyAsync(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetIamPolicyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Gets the access control policy for a secret. + /// Returns empty policy if the secret exists and does not have a policy set. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetIamPolicyAsync(global::Google.Cloud.Iam.V1.GetIamPolicyRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetIamPolicy, null, options, request); + } + /// + /// Returns permissions that a caller has for the specified secret. + /// If the secret does not exist, this call returns an empty set of + /// permissions, not a NOT_FOUND error. + /// + /// Note: This operation is designed to be used for building permission-aware + /// UIs and command-line tools, not for authorization checking. This operation + /// may "fail open" without warning. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.TestIamPermissionsResponse TestIamPermissions(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return TestIamPermissions(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns permissions that a caller has for the specified secret. + /// If the secret does not exist, this call returns an empty set of + /// permissions, not a NOT_FOUND error. + /// + /// Note: This operation is designed to be used for building permission-aware + /// UIs and command-line tools, not for authorization checking. This operation + /// may "fail open" without warning. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.Iam.V1.TestIamPermissionsResponse TestIamPermissions(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_TestIamPermissions, null, options, request); + } + /// + /// Returns permissions that a caller has for the specified secret. + /// If the secret does not exist, this call returns an empty set of + /// permissions, not a NOT_FOUND error. + /// + /// Note: This operation is designed to be used for building permission-aware + /// UIs and command-line tools, not for authorization checking. This operation + /// may "fail open" without warning. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall TestIamPermissionsAsync(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return TestIamPermissionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Returns permissions that a caller has for the specified secret. + /// If the secret does not exist, this call returns an empty set of + /// permissions, not a NOT_FOUND error. + /// + /// Note: This operation is designed to be used for building permission-aware + /// UIs and command-line tools, not for authorization checking. This operation + /// may "fail open" without warning. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall TestIamPermissionsAsync(global::Google.Cloud.Iam.V1.TestIamPermissionsRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_TestIamPermissions, null, options, request); + } + /// Creates a new instance of client from given ClientBaseConfiguration. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + protected override SecretManagerServiceClient NewInstance(ClientBaseConfiguration configuration) + { + return new SecretManagerServiceClient(configuration); + } + } + + /// Creates service definition that can be registered with a server + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static grpc::ServerServiceDefinition BindService(SecretManagerServiceBase serviceImpl) + { + return grpc::ServerServiceDefinition.CreateBuilder() + .AddMethod(__Method_ListSecrets, serviceImpl.ListSecrets) + .AddMethod(__Method_CreateSecret, serviceImpl.CreateSecret) + .AddMethod(__Method_AddSecretVersion, serviceImpl.AddSecretVersion) + .AddMethod(__Method_GetSecret, serviceImpl.GetSecret) + .AddMethod(__Method_UpdateSecret, serviceImpl.UpdateSecret) + .AddMethod(__Method_DeleteSecret, serviceImpl.DeleteSecret) + .AddMethod(__Method_ListSecretVersions, serviceImpl.ListSecretVersions) + .AddMethod(__Method_GetSecretVersion, serviceImpl.GetSecretVersion) + .AddMethod(__Method_AccessSecretVersion, serviceImpl.AccessSecretVersion) + .AddMethod(__Method_DisableSecretVersion, serviceImpl.DisableSecretVersion) + .AddMethod(__Method_EnableSecretVersion, serviceImpl.EnableSecretVersion) + .AddMethod(__Method_DestroySecretVersion, serviceImpl.DestroySecretVersion) + .AddMethod(__Method_SetIamPolicy, serviceImpl.SetIamPolicy) + .AddMethod(__Method_GetIamPolicy, serviceImpl.GetIamPolicy) + .AddMethod(__Method_TestIamPermissions, serviceImpl.TestIamPermissions).Build(); + } + + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Note: this method is part of an experimental API that can change or be removed without any prior notice. + /// Service methods will be bound by calling AddMethod on this object. + /// An object implementing the server-side handling logic. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public static void BindService(grpc::ServiceBinderBase serviceBinder, SecretManagerServiceBase serviceImpl) + { + serviceBinder.AddMethod(__Method_ListSecrets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListSecrets)); + serviceBinder.AddMethod(__Method_CreateSecret, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateSecret)); + serviceBinder.AddMethod(__Method_AddSecretVersion, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddSecretVersion)); + serviceBinder.AddMethod(__Method_GetSecret, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetSecret)); + serviceBinder.AddMethod(__Method_UpdateSecret, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateSecret)); + serviceBinder.AddMethod(__Method_DeleteSecret, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteSecret)); + serviceBinder.AddMethod(__Method_ListSecretVersions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListSecretVersions)); + serviceBinder.AddMethod(__Method_GetSecretVersion, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetSecretVersion)); + serviceBinder.AddMethod(__Method_AccessSecretVersion, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AccessSecretVersion)); + serviceBinder.AddMethod(__Method_DisableSecretVersion, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DisableSecretVersion)); + serviceBinder.AddMethod(__Method_EnableSecretVersion, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.EnableSecretVersion)); + serviceBinder.AddMethod(__Method_DestroySecretVersion, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DestroySecretVersion)); + serviceBinder.AddMethod(__Method_SetIamPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SetIamPolicy)); + serviceBinder.AddMethod(__Method_GetIamPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetIamPolicy)); + serviceBinder.AddMethod(__Method_TestIamPermissions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.TestIamPermissions)); + } + + } +} +#endregion diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ServiceResourceNames.g.cs b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ServiceResourceNames.g.cs new file mode 100755 index 000000000000..e809186e30ec --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/Google.Cloud.SecretManager.V1Beta2/ServiceResourceNames.g.cs @@ -0,0 +1,229 @@ +// Copyright 2025 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! + +#pragma warning disable CS8981 +using gagr = Google.Api.Gax.ResourceNames; +using gax = Google.Api.Gax; +using gcsv = Google.Cloud.SecretManager.V1Beta2; + +namespace Google.Cloud.SecretManager.V1Beta2 +{ + public partial class ListSecretsRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::ProjectName ParentAsProjectName + { + 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 + { + /// + /// -typed view over the resource name property. + /// + public gagr::ProjectName ParentAsProjectName + { + 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 + { + /// -typed view over the resource name property. + public SecretName ParentAsSecretName + { + get => string.IsNullOrEmpty(Parent) ? null : SecretName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetSecretRequest + { + /// + /// -typed view over the resource name property. + /// + public gcsv::SecretName SecretName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::SecretName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class ListSecretVersionsRequest + { + /// -typed view over the resource name property. + public SecretName ParentAsSecretName + { + get => string.IsNullOrEmpty(Parent) ? null : SecretName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + + public partial class GetSecretVersionRequest + { + /// + /// -typed view over the resource name property. + /// + public gcsv::SecretVersionName SecretVersionName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::SecretVersionName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class AccessSecretVersionRequest + { + /// + /// -typed view over the resource name property. + /// + public gcsv::SecretVersionName SecretVersionName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::SecretVersionName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class AccessSecretVersionResponse + { + /// + /// -typed view over the resource name property. + /// + public gcsv::SecretVersionName SecretVersionName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::SecretVersionName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class DeleteSecretRequest + { + /// + /// -typed view over the resource name property. + /// + public gcsv::SecretName SecretName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::SecretName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class DisableSecretVersionRequest + { + /// + /// -typed view over the resource name property. + /// + public gcsv::SecretVersionName SecretVersionName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::SecretVersionName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class EnableSecretVersionRequest + { + /// + /// -typed view over the resource name property. + /// + public gcsv::SecretVersionName SecretVersionName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::SecretVersionName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } + + public partial class DestroySecretVersionRequest + { + /// + /// -typed view over the resource name property. + /// + public gcsv::SecretVersionName SecretVersionName + { + get => string.IsNullOrEmpty(Name) ? null : gcsv::SecretVersionName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } +} diff --git a/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/gapic_metadata.json b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/gapic_metadata.json new file mode 100755 index 000000000000..e7e63626785a --- /dev/null +++ b/owl-bot-staging/Google.Cloud.SecretManager.V1Beta2/gapic_metadata.json @@ -0,0 +1,108 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "csharp", + "protoPackage": "google.cloud.secretmanager.v1beta2", + "libraryPackage": "Google.Cloud.SecretManager.V1Beta2", + "services": { + "SecretManagerService": { + "clients": { + "grpc": { + "libraryClient": "SecretManagerServiceClient", + "rpcs": { + "AccessSecretVersion": { + "methods": [ + "AccessSecretVersion", + "AccessSecretVersionAsync" + ] + }, + "AddSecretVersion": { + "methods": [ + "AddSecretVersion", + "AddSecretVersionAsync" + ] + }, + "CreateSecret": { + "methods": [ + "CreateSecret", + "CreateSecretAsync" + ] + }, + "DeleteSecret": { + "methods": [ + "DeleteSecret", + "DeleteSecretAsync" + ] + }, + "DestroySecretVersion": { + "methods": [ + "DestroySecretVersion", + "DestroySecretVersionAsync" + ] + }, + "DisableSecretVersion": { + "methods": [ + "DisableSecretVersion", + "DisableSecretVersionAsync" + ] + }, + "EnableSecretVersion": { + "methods": [ + "EnableSecretVersion", + "EnableSecretVersionAsync" + ] + }, + "GetIamPolicy": { + "methods": [ + "GetIamPolicy", + "GetIamPolicyAsync" + ] + }, + "GetSecret": { + "methods": [ + "GetSecret", + "GetSecretAsync" + ] + }, + "GetSecretVersion": { + "methods": [ + "GetSecretVersion", + "GetSecretVersionAsync" + ] + }, + "ListSecretVersions": { + "methods": [ + "ListSecretVersions", + "ListSecretVersionsAsync" + ] + }, + "ListSecrets": { + "methods": [ + "ListSecrets", + "ListSecretsAsync" + ] + }, + "SetIamPolicy": { + "methods": [ + "SetIamPolicy", + "SetIamPolicyAsync" + ] + }, + "TestIamPermissions": { + "methods": [ + "TestIamPermissions", + "TestIamPermissionsAsync" + ] + }, + "UpdateSecret": { + "methods": [ + "UpdateSecret", + "UpdateSecretAsync" + ] + } + } + } + } + } + } +}